|
|
@ -58,7 +58,7 @@ public class DatabaseTableDataPane extends BasicPane{ |
|
|
|
* 返回选中的数据源. |
|
|
|
* 返回选中的数据源. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public TableDataWrapper getTableDataWrapper() { |
|
|
|
public TableDataWrapper getTableDataWrapper() { |
|
|
|
return tableNameCombox.getSelectedItem(); |
|
|
|
return tableNameCombox.getSelectedItem(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void populateBean(TableData nameTableData) { |
|
|
|
public void populateBean(TableData nameTableData) { |
|
|
@ -68,12 +68,12 @@ public class DatabaseTableDataPane extends BasicPane{ |
|
|
|
tableNameCombox.setSelectedTableDataByName(((NameTableData)nameTableData).getName()); |
|
|
|
tableNameCombox.setSelectedTableDataByName(((NameTableData)nameTableData).getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected String title4PopupWindow() { |
|
|
|
protected String title4PopupWindow() { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 数据集列表选中后的事件 |
|
|
|
* 数据集列表选中后的事件 |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -82,7 +82,12 @@ public class DatabaseTableDataPane extends BasicPane{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initTableCombox() { |
|
|
|
private void initTableCombox() { |
|
|
|
tableNameCombox = new TableDataComboBox(DesignTableDataManager.getEditingTableDataSource()); |
|
|
|
tableNameCombox = new TableDataComboBox(DesignTableDataManager.getEditingTableDataSource()){ |
|
|
|
|
|
|
|
//图表的数据集选择下拉框,不需要注册监听,chartEditPane已经注册了。
|
|
|
|
|
|
|
|
public void registerDSChangeListener() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
tableNameCombox.addItemListener(new ItemListener() { |
|
|
|
tableNameCombox.addItemListener(new ItemListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void itemStateChanged(ItemEvent e) { |
|
|
|
public void itemStateChanged(ItemEvent e) { |
|
|
@ -94,7 +99,7 @@ public class DatabaseTableDataPane extends BasicPane{ |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initReviewButton() { |
|
|
|
private void initReviewButton() { |
|
|
|
reviewButton = new UIButton(BaseUtils.readIcon("com/fr/design/images/data/search.png")); |
|
|
|
reviewButton = new UIButton(BaseUtils.readIcon("com/fr/design/images/data/search.png")); |
|
|
|
reviewButton.setBorder(new LineBorder(UIConstants.LINE_COLOR)); |
|
|
|
reviewButton.setBorder(new LineBorder(UIConstants.LINE_COLOR)); |
|
|
|