|
|
|
@ -182,6 +182,10 @@ public class VanChartFieldListPane extends JPanel {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void addSelectedField(String fieldName, String fieldId) { |
|
|
|
|
VanChartRichEditorModel model = richEditorPane.update(); |
|
|
|
|
model.setAddition(fieldName); |
|
|
|
|
VanChartRichEditorPane.richEditorAddField(model); |
|
|
|
|
|
|
|
|
|
if (tableFieldNameList.contains(fieldName)) { |
|
|
|
|
int index = tableFieldNameList.indexOf(fieldName); |
|
|
|
|
|
|
|
|
@ -191,10 +195,6 @@ public class VanChartFieldListPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
tableFieldCollection.addFieldDefinition(fieldName, new TableFieldDefinition(fieldName, fieldFormat, dataFunction)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
VanChartRichEditorModel model = richEditorPane.update(); |
|
|
|
|
model.setAddition(fieldName); |
|
|
|
|
VanChartRichEditorPane.richEditorAddField(model); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void populateFieldFormatPane() { |
|
|
|
@ -220,6 +220,13 @@ public class VanChartFieldListPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
fieldButton.setFormat(fieldAttrPane.updateFormat()); |
|
|
|
|
fieldButton.setDataFunction(fieldAttrPane.updateDataFunction()); |
|
|
|
|
|
|
|
|
|
if (tableFieldNameList.contains(fieldName)) { |
|
|
|
|
Format fieldFormat = fieldButton.getFormat(); |
|
|
|
|
DataFunction dataFunction = fieldButton.getDataFunction(); |
|
|
|
|
|
|
|
|
|
tableFieldCollection.addFieldDefinition(fieldName, new TableFieldDefinition(fieldName, fieldFormat, dataFunction)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|