| java.lang.Object net.sourceforge.squirrel_sql.fw.datasetviewer.BaseDataSetViewerDestination net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetViewerTablePanel
All known Subclasses: net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetViewerEditableTablePanel,
Inner Class :final protected class MyJTable extends JTable | |
Method Summary | |
protected void | addRow(Object[] row) | protected void | allRowsAdded() | public int[] | changeUnderlyingValueAt(int row, int col, Object newValue, Object oldValue) Change the data in the permanent store that is represented by the JTable. | public void | clear() | public void | deleteRows(int[] rows) Delete a set of rows from the table. | public Component | getComponent() Get the component for this viewer. | public void | getPageInfo(Graphics g, PageFormat pageFormat) | protected Object[] | getRow(int row) | public int | getRowCount() | public IDataSetUpdateableModel | getUpdateableModel() | public void | init(IDataSetUpdateableModel updateableModel) | public void | insertRow() Initiate operations to insert a new row into the table. | public boolean | isColumnEditable(int col, Object originalValue) Tell the table whether particular columns are editable. | public boolean | isTableEditable() Tell the table that it is editable. | public void | moveToTop() | public boolean | needToReRead(int col, Object originalValue) See if a value in a column has been limited in some way and
needs to be re-read before being used for editing. | public int | print(Graphics g, PageFormat pageFormat, int pageIndex) Print the table contents. | public void | printTablePart(Graphics2D g2, PageFormat pageFormat, int rowIndex, int columnIndex) | public Object | reReadDatum(Object[] values, int col, StringBuffer message) Re-read the contents of this cell from the database. | public void | setCellEditors(JTable table) Function to set up CellEditors. | public void | setColumnDefinitions(ColumnDisplayDefinition[] colDefs) | public void | setShowRowNumbers(boolean showRowNumbers) |
fontHeightfontDesent | int fontHeightfontDesent(Code) | | |
pageWidthpageHeight | double pageWidthpageHeight(Code) | | |
pageinfoCalculated | boolean pageinfoCalculated(Code) | | |
prevPageIndex | int prevPageIndex(Code) | | |
subPageIndex | int subPageIndex(Code) | | |
subTableSplit | int[] subTableSplit(Code) | | |
subTableSplitSize | int subTableSplitSize(Code) | | |
tableHeightOnFullPageheaderHeight | double tableHeightOnFullPageheaderHeight(Code) | | |
tableHeightrowHeight | double tableHeightrowHeight(Code) | | |
totalNumPages | int totalNumPages(Code) | | |
DataSetViewerTablePanel | public DataSetViewerTablePanel()(Code) | | |
allRowsAdded | protected void allRowsAdded()(Code) | | |
changeUnderlyingValueAt | public int[] changeUnderlyingValueAt(int row, int col, Object newValue, Object oldValue)(Code) | | Change the data in the permanent store that is represented by the JTable.
Does nothing in read-only table.
|
clear | public void clear()(Code) | | |
deleteRows | public void deleteRows(int[] rows)(Code) | | Delete a set of rows from the table.
The indexes are the row indexes in the SortableModel.
|
getComponent | public Component getComponent()(Code) | | Get the component for this viewer.
The component for this viewer. |
getRowCount | public int getRowCount()(Code) | | |
insertRow | public void insertRow()(Code) | | Initiate operations to insert a new row into the table.
|
isColumnEditable | public boolean isColumnEditable(int col, Object originalValue)(Code) | | Tell the table whether particular columns are editable.
|
isTableEditable | public boolean isTableEditable()(Code) | | Tell the table that it is editable. This is called from within
MyTable.isCellEditable(). We do not bother to distinguish between
editable and non-editable cells within the same table.
|
moveToTop | public void moveToTop()(Code) | | |
needToReRead | public boolean needToReRead(int col, Object originalValue)(Code) | | See if a value in a column has been limited in some way and
needs to be re-read before being used for editing.
For read-only tables this may actually return true since we want
to be able to view the entire contents of the cell even if it was not
completely loaded during the initial table setup.
|
print | public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException(Code) | | Print the table contents.
This was copied from a tutorial paper on the Sun Java site:
paper: http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/advprint.html
code: http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/Code/SalesReport.java
|
printTablePart | public void printTablePart(Graphics2D g2, PageFormat pageFormat, int rowIndex, int columnIndex)(Code) | | Part of print code coped from Sun
|
reReadDatum | public Object reReadDatum(Object[] values, int col, StringBuffer message)(Code) | | Re-read the contents of this cell from the database.
If there is a problem, the message will have a non-zero length after return.
|
setCellEditors | public void setCellEditors(JTable table)(Code) | | Function to set up CellEditors. Null for read-only tables.
|
setShowRowNumbers | public void setShowRowNumbers(boolean showRowNumbers)(Code) | | |
|
|