| java.lang.Object net.sourceforge.squirrel_sql.fw.datasetviewer.BaseDataSetViewerDestination net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetViewerTablePanel net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetViewerEditableTablePanel
DataSetViewerEditableTablePanel | public class DataSetViewerEditableTablePanel extends DataSetViewerTablePanel (Code) | | author: gwg author: Table view that allows editing of the data. |
Method Summary | |
public int[] | changeUnderlyingValueAt(int row, int col, Object newValue, Object oldValue) Call the underlaying object to update the data represented by the JTable.
Both the old and the new value are objects of the appropriate
Data Type for the column. | public void | deleteRows(int[] rows) Delete a set of rows from the table. | public void | init(IDataSetUpdateableModel updateableModel) | public void | insertRow() Initiate operations to insert a new row into the table. | protected String | insertRow(Object[] values) Insert a new row into the table after the user has entered the row's data. | public boolean | isColumnEditable(int col, Object originalValue) Tell the table whether a particular column may be edited or not
based on whether the class associated with that column is known
or not known, where "not known" is signaled by Object.class. | public boolean | isTableEditable() Tell the table that it is editable. | public void | setCellEditors(JTable table) Function to set up CellEditors for each of the data types
to be handled in this table. |
changeUnderlyingValueAt | public int[] changeUnderlyingValueAt(int row, int col, Object newValue, Object oldValue)(Code) | | Call the underlaying object to update the data represented by the JTable.
Both the old and the new value are objects of the appropriate
Data Type for the column. The newValue has been validated as part of
the conversion from the external user representation (a String) into the
internal object.
|
deleteRows | public void deleteRows(int[] rows)(Code) | | Delete a set of rows from the table.
The indexes are the row indexes in the SortableModel.
|
insertRow | public void insertRow()(Code) | | Initiate operations to insert a new row into the table.
This method just creates the panel to get the row input from the user.
|
insertRow | protected String insertRow(Object[] values)(Code) | | Insert a new row into the table after the user has entered the row's data.
|
isColumnEditable | public boolean isColumnEditable(int col, Object originalValue)(Code) | | Tell the table whether a particular column may be edited or not
based on whether the class associated with that column is known
or not known, where "not known" is signaled by Object.class.
|
isTableEditable | public boolean isTableEditable()(Code) | | Tell the table that it is editable. This is called from within
MyTable.isCellEditable(). Certain column data types may not be editable.
|
setCellEditors | public void setCellEditors(JTable table)(Code) | | Function to set up CellEditors for each of the data types
to be handled in this table. Since different columns have different
parameters (e.g. nullable or not nullable) we set the cell editors on the columns
rather than on the table as a whole.
|
Methods inherited from net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetViewerTablePanel | protected void addRow(Object[] row)(Code)(Java Doc) protected void allRowsAdded()(Code)(Java Doc) public int[] changeUnderlyingValueAt(int row, int col, Object newValue, Object oldValue)(Code)(Java Doc) public void clear()(Code)(Java Doc) public void deleteRows(int[] rows)(Code)(Java Doc) public Component getComponent()(Code)(Java Doc) public void getPageInfo(Graphics g, PageFormat pageFormat)(Code)(Java Doc) protected Object[] getRow(int row)(Code)(Java Doc) public int getRowCount()(Code)(Java Doc) public IDataSetUpdateableModel getUpdateableModel()(Code)(Java Doc) public void init(IDataSetUpdateableModel updateableModel)(Code)(Java Doc) public void insertRow()(Code)(Java Doc) public boolean isColumnEditable(int col, Object originalValue)(Code)(Java Doc) public boolean isTableEditable()(Code)(Java Doc) public void moveToTop()(Code)(Java Doc) public boolean needToReRead(int col, Object originalValue)(Code)(Java Doc) public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException(Code)(Java Doc) public void printTablePart(Graphics2D g2, PageFormat pageFormat, int rowIndex, int columnIndex)(Code)(Java Doc) public Object reReadDatum(Object[] values, int col, StringBuffer message)(Code)(Java Doc) public void setCellEditors(JTable table)(Code)(Java Doc) public void setColumnDefinitions(ColumnDisplayDefinition[] colDefs)(Code)(Java Doc) public void setShowRowNumbers(boolean showRowNumbers)(Code)(Java Doc)
|
|
|