Browse Source

代码与master同步

master
mengao 8 years ago
parent
commit
e233372678
  1. 22
      designer_chart/src/com/fr/design/mainframe/chart/gui/data/TableDataPane.java

22
designer_chart/src/com/fr/design/mainframe/chart/gui/data/TableDataPane.java

@ -24,20 +24,20 @@ public class TableDataPane extends FurtherBasicBeanPane<ChartCollection>{
private DatabaseTableDataPane tableDataPane; private DatabaseTableDataPane tableDataPane;
private AbstractTableDataContentPane dataContentPane; private AbstractTableDataContentPane dataContentPane;
private ChartDataPane parent;
protected AbstractTableDataContentPane getDataContentPane() { protected AbstractTableDataContentPane getDataContentPane() {
return dataContentPane; return dataContentPane;
} }
private ChartDataPane parent;
public TableDataPane(ChartDataPane parent) { public TableDataPane(ChartDataPane parent) {
this.parent = parent; this.parent = parent;
initDataPane(); initDataPane();
} }
private void initDataPane() { private void initDataPane() {
UILabel label = new BoldFontTextLabel(Inter.getLocText("Chart-DS_TableData") + ":", SwingConstants.RIGHT) ; UILabel label = new BoldFontTextLabel(Inter.getLocText("Chart-DS_TableData") + ":", SwingConstants.RIGHT) ;
label.setPreferredSize(new Dimension(ChartDataPane.LABEL_WIDTH,ChartDataPane.LABEL_HEIGHT)); label.setPreferredSize(new Dimension(ChartDataPane.LABEL_WIDTH,ChartDataPane.LABEL_HEIGHT));
tableDataPane = new DatabaseTableDataPane(label) { tableDataPane = new DatabaseTableDataPane(label) {
@Override @Override
protected void userEvent() { protected void userEvent() {
@ -47,18 +47,18 @@ public class TableDataPane extends FurtherBasicBeanPane<ChartCollection>{
}; };
tableDataPane.setBorder(BorderFactory.createMatteBorder(0,6,0, 0, getBackground())); tableDataPane.setBorder(BorderFactory.createMatteBorder(0,6,0, 0, getBackground()));
tableDataPane.setBorder(BorderFactory.createEmptyBorder(0,1,0,1)); tableDataPane.setBorder(BorderFactory.createEmptyBorder(0,1,0,1));
tableDataPane.setPreferredSize(new Dimension(205 , 20)); tableDataPane.setPreferredSize(new Dimension(205 , 20));
this.setBorder(BorderFactory.createEmptyBorder(TOP,0,0,0)); this.setBorder(BorderFactory.createEmptyBorder(TOP,0,0,0));
this.add(tableDataPane, BorderLayout.NORTH); this.add(tableDataPane, BorderLayout.NORTH);
} }
/** /**
* 检查box是否可用. * 检查box是否可用.
*/ */
public void checkBoxUse() { public void checkBoxUse() {
TableDataWrapper dataWrap = tableDataPane.getTableDataWrapper(); TableDataWrapper dataWrap = tableDataPane.getTableDataWrapper();
if(dataContentPane != null) { if(dataContentPane != null) {
dataContentPane.checkBoxUse(dataWrap != null); dataContentPane.checkBoxUse(dataWrap != null);
} }
@ -120,10 +120,8 @@ public class TableDataPane extends FurtherBasicBeanPane<ChartCollection>{
add(dataContentPane, BorderLayout.CENTER); add(dataContentPane, BorderLayout.CENTER);
} }
} }
/** /**
* 更新界面属性 * 更新界面属性
*/ */
public void populateBean(ChartCollection collection) { public void populateBean(ChartCollection collection) {
if(collection == null) { if(collection == null) {

Loading…
Cancel
Save