|
|
@ -11,16 +11,12 @@ import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.itable.UITable; |
|
|
|
import com.fr.design.gui.itable.UITable; |
|
|
|
import com.fr.design.gui.itable.UITableEditor; |
|
|
|
import com.fr.design.gui.itable.UITableEditor; |
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.mainframe.chart.gui.data.CalculateComboBox; |
|
|
|
import com.fr.design.mainframe.chart.gui.data.CalculateComboBox; |
|
|
|
import com.fr.design.mainframe.chart.gui.data.table.DataPaneHelper; |
|
|
|
import com.fr.design.mainframe.chart.gui.data.table.DataPaneHelper; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JComponent; |
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
import javax.swing.JTable; |
|
|
|
|
|
|
|
import javax.swing.SwingConstants; |
|
|
|
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.Component; |
|
|
|
import java.awt.Component; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Dimension; |
|
|
@ -30,6 +26,10 @@ import java.awt.event.ItemEvent; |
|
|
|
import java.awt.event.ItemListener; |
|
|
|
import java.awt.event.ItemListener; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import javax.swing.JComponent; |
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
import javax.swing.JTable; |
|
|
|
|
|
|
|
import javax.swing.SwingConstants; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Created by shine on 2018/9/12. |
|
|
|
* Created by shine on 2018/9/12. |
|
|
@ -38,10 +38,17 @@ public class ExtendedCustomFieldComboBoxPane extends UIComboBoxPane<AbstractData |
|
|
|
private static final String[] HEADS = {com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Field_Name"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Series_Name"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Summary_Method")}; |
|
|
|
private static final String[] HEADS = {com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Field_Name"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Series_Name"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Summary_Method")}; |
|
|
|
|
|
|
|
|
|
|
|
private UseFieldValuePane useFieldValuePane; |
|
|
|
private UseFieldValuePane useFieldValuePane; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private boolean hasNoneItem = false; |
|
|
|
|
|
|
|
|
|
|
|
private CustomFieldNamePane customFieldNamePane; |
|
|
|
private CustomFieldNamePane customFieldNamePane; |
|
|
|
|
|
|
|
|
|
|
|
private List<String> fieldList = new ArrayList<String>(); |
|
|
|
private List<String> fieldList = new ArrayList<String>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ExtendedCustomFieldComboBoxPane(boolean hasNoneItem) { |
|
|
|
|
|
|
|
this.hasNoneItem = hasNoneItem; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void initLayout() { |
|
|
|
protected void initLayout() { |
|
|
|
this.setLayout(new BorderLayout(0, 6)); |
|
|
|
this.setLayout(new BorderLayout(0, 6)); |
|
|
@ -119,6 +126,11 @@ public class ExtendedCustomFieldComboBoxPane extends UIComboBoxPane<AbstractData |
|
|
|
|
|
|
|
|
|
|
|
series = new UIComboBox(); |
|
|
|
series = new UIComboBox(); |
|
|
|
value = new UIComboBox(); |
|
|
|
value = new UIComboBox(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (hasNoneItem) { |
|
|
|
|
|
|
|
value.addItem(Toolkit.i18nText("Fine-Design_Chart_Use_None")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function = new CalculateComboBox(); |
|
|
|
function = new CalculateComboBox(); |
|
|
|
|
|
|
|
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
Component[][] components = new Component[][]{ |
|
|
@ -146,11 +158,17 @@ public class ExtendedCustomFieldComboBoxPane extends UIComboBoxPane<AbstractData |
|
|
|
public void clearAllBoxList() { |
|
|
|
public void clearAllBoxList() { |
|
|
|
DataPaneHelper.clearBoxItems(series); |
|
|
|
DataPaneHelper.clearBoxItems(series); |
|
|
|
DataPaneHelper.clearBoxItems(value); |
|
|
|
DataPaneHelper.clearBoxItems(value); |
|
|
|
|
|
|
|
if (hasNoneItem) { |
|
|
|
|
|
|
|
value.addItem(Toolkit.i18nText("Fine-Design_Chart_Use_None")); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void refreshBoxListWithSelectTableData(List columnNameList) { |
|
|
|
public void refreshBoxListWithSelectTableData(List columnNameList) { |
|
|
|
DataPaneHelper.refreshBoxItems(series, columnNameList); |
|
|
|
DataPaneHelper.refreshBoxItems(series, columnNameList); |
|
|
|
DataPaneHelper.refreshBoxItems(value, columnNameList); |
|
|
|
DataPaneHelper.refreshBoxItems(value, columnNameList); |
|
|
|
|
|
|
|
if (hasNoneItem) { |
|
|
|
|
|
|
|
value.addItem(Toolkit.i18nText("Fine-Design_Chart_Use_None")); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|