Browse Source

CHART-12940 下拉框样式

feature/big-screen
白岳 5 years ago
parent
commit
4d4a90a06d
  1. 4
      designer-chart/src/main/java/com/fr/design/chartx/component/TableTreeComboBox.java

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

@ -2,7 +2,6 @@ package com.fr.design.chartx.component;
import com.fr.design.gui.icombobox.FRTreeComboBox; import com.fr.design.gui.icombobox.FRTreeComboBox;
import com.fr.design.gui.itextfield.UITextField; import com.fr.design.gui.itextfield.UITextField;
import com.fr.general.IOUtils;
import com.fr.plugin.chart.map.server.ChartGEOJSONHelper; import com.fr.plugin.chart.map.server.ChartGEOJSONHelper;
import javax.swing.JTextField; import javax.swing.JTextField;
@ -86,9 +85,6 @@ public class TableTreeComboBox extends FRTreeComboBox {
if (value instanceof DefaultMutableTreeNode) { if (value instanceof DefaultMutableTreeNode) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode) value; DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
Object userObj = node.getUserObject(); Object userObj = node.getUserObject();
if (node.getChildCount() > 0) {
this.setIcon(IOUtils.readIcon("com/fr/design/images/m_insert/expandCell.gif"));
}
if (userObj != null) { if (userObj != null) {
this.setText(ChartGEOJSONHelper.getPresentNameWithPath(userObj.toString())); this.setText(ChartGEOJSONHelper.getPresentNameWithPath(userObj.toString()));
} }

Loading…
Cancel
Save