Browse Source

Merge pull request #1510 in DESIGN/design from ~BJORN/design:release/10.0 to release/10.0

* commit 'aa0519150a7476c80ae496a3cf7c1667b4ebba89':
  代码质量
  CHART-12820 地图边界丢失 && CHART-13035 钻取地图下拉匹配样式修改
feature/big-screen
Bjorn 5 years ago
parent
commit
700c257c1e
  1. 4
      designer-chart/src/main/java/com/fr/design/chartx/component/MatchAreaTable.java
  2. 4
      designer-chart/src/main/java/com/fr/design/chartx/component/TableTreeComboBox.java
  3. 4
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/MapPlotPane.java

4
designer-chart/src/main/java/com/fr/design/chartx/component/MatchAreaTable.java

@ -113,7 +113,9 @@ public class MatchAreaTable extends JTable {
} }
private void initComboBox(Object value, boolean editor) { private void initComboBox(Object value, boolean editor) {
comboBox = new TableTreeComboBox(new JTree(root)); //地图不显示第一层,钻取地图显示第一层。
boolean showRoot = root.getUserObject() != null;
comboBox = new TableTreeComboBox(new JTree(root), showRoot);
comboBox.setEditable(true); comboBox.setEditable(true);
comboBox.setSelectedItem(value); comboBox.setSelectedItem(value);

4
designer-chart/src/main/java/com/fr/design/chartx/component/TableTreeComboBox.java

@ -32,8 +32,8 @@ public class TableTreeComboBox extends FRTreeComboBox {
private JTextField textField; private JTextField textField;
public TableTreeComboBox(JTree tree) { public TableTreeComboBox(JTree tree, boolean showRoot) {
super(tree, null); super(tree, null, showRoot, false);
textField = (JTextField) (this.getEditor().getEditorComponent()); textField = (JTextField) (this.getEditor().getEditorComponent());
textField.addKeyListener(treeKeyListener); textField.addKeyListener(treeKeyListener);
tree.setCellRenderer(tableNameTreeRenderer); tree.setCellRenderer(tableNameTreeRenderer);

4
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/MapPlotPane.java

@ -67,6 +67,10 @@ public class MapPlotPane extends AbstractDeprecatedChartTypePane {
return new String[0]; return new String[0];
} }
public void reLayout(String chartID) {
}
/** /**
* 界面标题 * 界面标题
* @return 界面标题 * @return 界面标题

Loading…
Cancel
Save