|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DfcTableModel
Extension of JFC TableModel to support structural modification to rows/columns and copy/paste of data.
Method Summary | |
---|---|
boolean |
canCopyCells(int startRow,
int endRow,
int startColumn,
int endColumn)
Test if a copyCells () operation is permitted. |
boolean |
canCopyRows(int startRow,
int endRow)
|
boolean |
canDeleteCells(int startRow,
int endRow,
int startColumn,
int endColumn)
Test if a deleteCells () operation is permitted. |
boolean |
canDeleteColumns(int startColumn,
int endColumn)
Test if a deleteColumns () operation is supported. |
boolean |
canDeleteRows(int startRow,
int endRow)
Test if a deleteRows () operation is supported. |
boolean |
canInsertColumn(int columnIndex,
String columnName,
Class columnClass)
Test if an insertColumn () operation is supported. |
boolean |
canInsertRows(int startRow,
int rowCount)
Test if an insertRows () operation is supported. |
boolean |
canMoveRows(int startRow,
int endRow,
int newStartRow)
|
boolean |
canPasteCells(Transferable transferable,
int startRow,
int endRow,
int startColumn,
int endColumn)
Should return true if rows may be pasted from a given Transferable into a block of cells. |
boolean |
canPasteRows(Transferable transferable,
int startRow)
Should return true if rows may be pasted from a given Transferable at the given row. |
Transferable |
copyCells(int startRow,
int endRow,
int startColumn,
int endColumn)
Copy a rectangular block of cells into an AWT Transferable. |
Transferable |
copyRows(int startRow,
int endRow)
|
void |
deleteCells(int startRow,
int endRow,
int startColumn,
int endColumn)
Delete a rectangular block of cells. |
void |
deleteColumns(int startColumn,
int endColumn)
Delete columns. |
void |
deleteRows(int startRow,
int endRow)
Delete rows. |
void |
insertColumn(int columnIndex,
String columnName,
Class columnClass)
Insert a new column containing blank values. |
void |
insertRows(int startRow,
int rowCount)
Insert empty rows. |
boolean |
moveRows(int startRow,
int endRow,
int newStartRow)
|
void |
pasteCells(Transferable transferable,
int startRow,
int endRow,
int startColumn,
int endColumn)
|
void |
pasteRows(Transferable transferable,
int startRow)
|
Methods inherited from interface javax.swing.table.TableModel |
---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
Method Detail |
---|
boolean canInsertRows(int startRow, int rowCount)
startRow
- The row to begin inserting.rowCount
- The number of rows to insert.
void insertRows(int startRow, int rowCount) throws UnsupportedOperationException
startRow
- The row to begin inserting.rowCount
- The number of rows to insert.
UnsupportedOperationException
- if this is not supported.canInsertRows(int, int)
boolean canDeleteRows(int startRow, int endRow)
startRow
- The row to begin inserting.endRow
- The last row to delete.
void deleteRows(int startRow, int endRow) throws UnsupportedOperationException
startRow
- The row to begin inserting.endRow
- The last row to delete.
UnsupportedOperationException
- if this is not supported.canDeleteRows(int, int)
boolean canMoveRows(int startRow, int endRow, int newStartRow)
boolean moveRows(int startRow, int endRow, int newStartRow) throws UnsupportedOperationException
UnsupportedOperationException
boolean canInsertColumn(int columnIndex, String columnName, Class columnClass)
columnIndex
- The index for the new column.columnName
- The name of the new column. May be null to indicate
automatic name.columnClass
- The class of values in the column.
boolean canDeleteColumns(int startColumn, int endColumn)
startColumn
- The index of the first column.endColumn
- The index of the last column.
void insertColumn(int columnIndex, String columnName, Class columnClass) throws UnsupportedOperationException
columnIndex
- The index for the new column.columnName
- The name of the new column. May be null to
indicate automatic name.columnClass
- The class of values in the column.
UnsupportedOperationException
canInsertColumn(int, java.lang.String, java.lang.Class)
void deleteColumns(int startColumn, int endColumn) throws UnsupportedOperationException
startColumn
- The index of the first column.endColumn
- The index of the last column.
UnsupportedOperationException
canDeleteColumns(int, int)
boolean canDeleteCells(int startRow, int endRow, int startColumn, int endColumn)
startRow
- The first row to delete.endRow
- The last row to delete.startColumn
- The first column to delete.endColumn
- The last column to delete.
void deleteCells(int startRow, int endRow, int startColumn, int endColumn) throws UnsupportedOperationException
startRow
- The first row to delete.endRow
- The last row to delete.startColumn
- The first column to delete.endColumn
- The last column to delete.
UnsupportedOperationException
canDeleteCells(int, int, int, int)
boolean canCopyRows(int startRow, int endRow)
Transferable copyRows(int startRow, int endRow) throws UnsupportedOperationException, CloneNotSupportedException
UnsupportedOperationException
CloneNotSupportedException
boolean canPasteRows(Transferable transferable, int startRow)
transferable
- The transferable.startRow
- The row to insert the transferable at.
void pasteRows(Transferable transferable, int startRow) throws UnsupportedOperationException, UnsupportedFlavorException, CloneNotSupportedException, IOException
UnsupportedOperationException
UnsupportedFlavorException
CloneNotSupportedException
IOException
boolean canCopyCells(int startRow, int endRow, int startColumn, int endColumn)
startRow
- The first row to copy.endRow
- The last row to copy.startColumn
- The first column to copy.endColumn
- The last column to copy.
Transferable copyCells(int startRow, int endRow, int startColumn, int endColumn) throws UnsupportedOperationException, CloneNotSupportedException
startRow
- The first row to copy.endRow
- The last row to copy.startColumn
- The first column to copy.endColumn
- The last column to copy.
CloneNotSupportedException
- if a data item could not be cloned.
UnsupportedOperationException
canCopyRows(int, int)
boolean canPasteCells(Transferable transferable, int startRow, int endRow, int startColumn, int endColumn)
transferable
- The transferable.startRow
- The row to insert the transferable at.
void pasteCells(Transferable transferable, int startRow, int endRow, int startColumn, int endColumn) throws UnsupportedOperationException, UnsupportedFlavorException, CloneNotSupportedException, IOException
UnsupportedOperationException
UnsupportedFlavorException
CloneNotSupportedException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |