|
|
@ -18,6 +18,7 @@ import com.fr.form.ui.TreeEditor; |
|
|
|
import com.fr.form.ui.tree.LayerConfig; |
|
|
|
import com.fr.form.ui.tree.LayerConfig; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.NameObject; |
|
|
|
import com.fr.general.NameObject; |
|
|
|
|
|
|
|
import edu.emory.mathcs.backport.java.util.Arrays; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.*; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.*; |
|
|
@ -133,7 +134,7 @@ public class TreeSettingPane extends BasicPane implements DataCreatorUI { |
|
|
|
for (LayerConfig layerConfig : layerConfigList) { |
|
|
|
for (LayerConfig layerConfig : layerConfigList) { |
|
|
|
layerConfigs[i++] = layerConfig; |
|
|
|
layerConfigs[i++] = layerConfig; |
|
|
|
} |
|
|
|
} |
|
|
|
this.layerDataControlPane.populate(new NameObject("tree", layerConfigs)); |
|
|
|
this.layerDataControlPane.populate(new NameObject("Tree Layer Data", layerConfigs)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
buildBox.setSelectedIndex(2); |
|
|
|
buildBox.setSelectedIndex(2); |
|
|
|
} |
|
|
|
} |
|
|
@ -154,10 +155,12 @@ public class TreeSettingPane extends BasicPane implements DataCreatorUI { |
|
|
|
if (buildBox.getSelectedIndex() == 1) { |
|
|
|
if (buildBox.getSelectedIndex() == 1) { |
|
|
|
TableDataDictionary dictionary = this.autoBuildPane.update(); |
|
|
|
TableDataDictionary dictionary = this.autoBuildPane.update(); |
|
|
|
te.setAutoBuild(true); |
|
|
|
te.setAutoBuild(true); |
|
|
|
|
|
|
|
te.setLayerBuild(false); |
|
|
|
te.setDictionary(dictionary); |
|
|
|
te.setDictionary(dictionary); |
|
|
|
te.setNodeOrDict(dictionary); |
|
|
|
te.setNodeOrDict(dictionary); |
|
|
|
} else if (buildBox.getSelectedIndex() == 2) { |
|
|
|
} else if (buildBox.getSelectedIndex() == 2) { |
|
|
|
te.setAutoBuild(false); |
|
|
|
te.setAutoBuild(false); |
|
|
|
|
|
|
|
te.setLayerBuild(false); |
|
|
|
NameObject no = this.controlPane.update(); |
|
|
|
NameObject no = this.controlPane.update(); |
|
|
|
if (no != null) { |
|
|
|
if (no != null) { |
|
|
|
TreeEditor editor = (TreeEditor) no.getObject(); |
|
|
|
TreeEditor editor = (TreeEditor) no.getObject(); |
|
|
@ -174,6 +177,11 @@ public class TreeSettingPane extends BasicPane implements DataCreatorUI { |
|
|
|
te.setNodeOrDict(editor.getTreeNodeAttr()); |
|
|
|
te.setNodeOrDict(editor.getTreeNodeAttr()); |
|
|
|
te.setPerformanceFirst(editor.isPerformanceFirst()); |
|
|
|
te.setPerformanceFirst(editor.isPerformanceFirst()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
LayerConfig[] configs = (LayerConfig[]) layerDataControlPane.update().getObject(); |
|
|
|
|
|
|
|
te.setAutoBuild(false); |
|
|
|
|
|
|
|
te.setLayerBuild(true); |
|
|
|
|
|
|
|
te.setLayerConfigs(Arrays.asList(configs)); |
|
|
|
} |
|
|
|
} |
|
|
|
return te; |
|
|
|
return te; |
|
|
|
} |
|
|
|
} |
|
|
@ -230,7 +238,12 @@ public class TreeSettingPane extends BasicPane implements DataCreatorUI { |
|
|
|
tcb.setNodeOrDict(editor.getTreeNodeAttr()); |
|
|
|
tcb.setNodeOrDict(editor.getTreeNodeAttr()); |
|
|
|
tcb.setPerformanceFirst(editor.isPerformanceFirst()); |
|
|
|
tcb.setPerformanceFirst(editor.isPerformanceFirst()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}else { |
|
|
|
|
|
|
|
LayerConfig[] configs = (LayerConfig[]) layerDataControlPane.update().getObject(); |
|
|
|
|
|
|
|
tcb.setAutoBuild(false); |
|
|
|
|
|
|
|
tcb.setLayerBuild(true); |
|
|
|
|
|
|
|
tcb.setLayerConfigs(Arrays.asList(configs)); |
|
|
|
|
|
|
|
} |
|
|
|
return tcb; |
|
|
|
return tcb; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|