|
|
@ -4,7 +4,6 @@ import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.general.GeneralUtils; |
|
|
|
import com.fr.general.GeneralUtils; |
|
|
|
import com.fr.plugin.chart.map.server.ChartGEOJSONHelper; |
|
|
|
import com.fr.plugin.chart.map.server.ChartGEOJSONHelper; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.AbstractCellEditor; |
|
|
|
import javax.swing.AbstractCellEditor; |
|
|
|
import javax.swing.JTable; |
|
|
|
import javax.swing.JTable; |
|
|
@ -115,8 +114,8 @@ public class MatchAreaTable extends JTable { |
|
|
|
|
|
|
|
|
|
|
|
private void initComboBox(Object value, boolean editor) { |
|
|
|
private void initComboBox(Object value, boolean editor) { |
|
|
|
//地图不显示第一层,钻取地图显示第一层。
|
|
|
|
//地图不显示第一层,钻取地图显示第一层。
|
|
|
|
boolean showRoot = root.getUserObject() !=null && StringUtils.isNotEmpty(root.getUserObject().toString()); |
|
|
|
boolean showRoot = root.getUserObject() != null; |
|
|
|
comboBox = new TableTreeComboBox(new JTree(root),showRoot); |
|
|
|
comboBox = new TableTreeComboBox(new JTree(root), showRoot); |
|
|
|
comboBox.setEditable(true); |
|
|
|
comboBox.setEditable(true); |
|
|
|
|
|
|
|
|
|
|
|
comboBox.setSelectedItem(value); |
|
|
|
comboBox.setSelectedItem(value); |
|
|
|