|
|
@ -13,6 +13,7 @@ import com.fr.design.gui.ilable.BoldFontTextLabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.mainframe.chart.gui.ChartDataPane; |
|
|
|
import com.fr.design.mainframe.chart.gui.ChartDataPane; |
|
|
|
import com.fr.design.mainframe.chart.gui.data.table.AbstractTableDataContentPane; |
|
|
|
import com.fr.design.mainframe.chart.gui.data.table.AbstractTableDataContentPane; |
|
|
|
|
|
|
|
import com.fr.design.utils.gui.UIComponentUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
@ -21,6 +22,8 @@ import java.awt.Dimension; |
|
|
|
public class TableDataPane extends FurtherBasicBeanPane<ChartCollection>{ |
|
|
|
public class TableDataPane extends FurtherBasicBeanPane<ChartCollection>{ |
|
|
|
private static final long serialVersionUID = 4740461028440155147L; |
|
|
|
private static final long serialVersionUID = 4740461028440155147L; |
|
|
|
private static final int TOP = -5; |
|
|
|
private static final int TOP = -5; |
|
|
|
|
|
|
|
private static final int TABLE_DATA_LABEL_LINE_WRAP_WIDTH = 65; |
|
|
|
|
|
|
|
private static final int TABLE_DATA_PANE_WIDTH = 246; |
|
|
|
private DatabaseTableDataPane tableDataPane; |
|
|
|
private DatabaseTableDataPane tableDataPane; |
|
|
|
private AbstractTableDataContentPane dataContentPane; |
|
|
|
private AbstractTableDataContentPane dataContentPane; |
|
|
|
|
|
|
|
|
|
|
@ -36,8 +39,9 @@ public class TableDataPane extends FurtherBasicBeanPane<ChartCollection>{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initDataPane() { |
|
|
|
private void initDataPane() { |
|
|
|
UILabel label = new BoldFontTextLabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_TableData")) ; |
|
|
|
UILabel label = new BoldFontTextLabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_TableData")); |
|
|
|
label.setPreferredSize(new Dimension(ChartDataPane.LABEL_WIDTH,ChartDataPane.LABEL_HEIGHT)); |
|
|
|
UIComponentUtils.setLineWrap(label, TABLE_DATA_LABEL_LINE_WRAP_WIDTH); |
|
|
|
|
|
|
|
|
|
|
|
tableDataPane = new DatabaseTableDataPane(label) { |
|
|
|
tableDataPane = new DatabaseTableDataPane(label) { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void userEvent() { |
|
|
|
protected void userEvent() { |
|
|
@ -46,7 +50,7 @@ public class TableDataPane extends FurtherBasicBeanPane<ChartCollection>{ |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
tableDataPane.setPreferredSize(new Dimension(246 , 20)); |
|
|
|
tableDataPane.setPreferredSize(new Dimension(TABLE_DATA_PANE_WIDTH , tableDataPane.getPreferredSize().height)); |
|
|
|
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); |
|
|
|
} |
|
|
|
} |
|
|
|