|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
dsto.dfc.swing.table.AbstractDfcTableModel
public abstract class AbstractDfcTableModel
Base class for implementations of DfcTableModel. Provides default empty implementations of DfcTableModel methods.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
AbstractDfcTableModel()
|
|
| 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 columnStart,
int columnEnd)
Test if a deleteColumns () operation is supported. |
boolean |
canDeleteRows(int rowStart,
int rowEnd)
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 rowStart,
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 rowStart)
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 columnStart,
int columnEnd)
Delete columns. |
void |
deleteRows(int rowStart,
int rowEnd)
Delete rows. |
void |
insertColumn(int columnIndex,
String columnName,
Class columnClass)
Insert a new column containing blank values. |
void |
insertRows(int rowStart,
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 rowStart)
|
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
| Constructor Detail |
|---|
public AbstractDfcTableModel()
| Method Detail |
|---|
public void insertRows(int rowStart,
int rowCount)
DfcTableModel
insertRows in interface DfcTableModelrowStart - The row to begin inserting.rowCount - The number of rows to insert.DfcTableModel.canInsertRows(int, int)
public void deleteRows(int rowStart,
int rowEnd)
throws UnsupportedOperationException
DfcTableModel
deleteRows in interface DfcTableModelrowStart - The row to begin inserting.rowEnd - The last row to delete.
UnsupportedOperationException - if this is not supported.DfcTableModel.canDeleteRows(int, int)
public boolean canInsertRows(int rowStart,
int rowCount)
DfcTableModel
canInsertRows in interface DfcTableModelrowStart - The row to begin inserting.rowCount - The number of rows to insert.
public boolean canDeleteRows(int rowStart,
int rowEnd)
DfcTableModel
canDeleteRows in interface DfcTableModelrowStart - The row to begin inserting.rowEnd - The last row to delete.
public boolean canMoveRows(int startRow,
int endRow,
int newStartRow)
canMoveRows in interface DfcTableModel
public boolean moveRows(int startRow,
int endRow,
int newStartRow)
throws UnsupportedOperationException
moveRows in interface DfcTableModelUnsupportedOperationException
public void insertColumn(int columnIndex,
String columnName,
Class columnClass)
throws UnsupportedOperationException
DfcTableModel
insertColumn in interface DfcTableModelcolumnIndex - 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.
UnsupportedOperationExceptionDfcTableModel.canInsertColumn(int, java.lang.String, java.lang.Class)
public void deleteColumns(int columnStart,
int columnEnd)
throws UnsupportedOperationException
DfcTableModel
deleteColumns in interface DfcTableModelcolumnStart - The index of the first column.columnEnd - The index of the last column.
UnsupportedOperationExceptionDfcTableModel.canDeleteColumns(int, int)
public boolean canInsertColumn(int columnIndex,
String columnName,
Class columnClass)
DfcTableModel
canInsertColumn in interface DfcTableModelcolumnIndex - 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.
public boolean canDeleteColumns(int columnStart,
int columnEnd)
DfcTableModel
canDeleteColumns in interface DfcTableModelcolumnStart - The index of the first column.columnEnd - The index of the last column.
public boolean canDeleteCells(int startRow,
int endRow,
int startColumn,
int endColumn)
DfcTableModel
canDeleteCells in interface DfcTableModelstartRow - The first row to delete.endRow - The last row to delete.startColumn - The first column to delete.endColumn - The last column to delete.
public void deleteCells(int startRow,
int endRow,
int startColumn,
int endColumn)
throws UnsupportedOperationException
DfcTableModel
deleteCells in interface DfcTableModelstartRow - The first row to delete.endRow - The last row to delete.startColumn - The first column to delete.endColumn - The last column to delete.
UnsupportedOperationExceptionDfcTableModel.canDeleteCells(int, int, int, int)
public boolean canCopyRows(int startRow,
int endRow)
canCopyRows in interface DfcTableModel
public Transferable copyRows(int startRow,
int endRow)
throws UnsupportedOperationException,
CloneNotSupportedException
copyRows in interface DfcTableModelUnsupportedOperationException
CloneNotSupportedException
public boolean canPasteRows(Transferable transferable,
int rowStart)
DfcTableModel
canPasteRows in interface DfcTableModeltransferable - The transferable.rowStart - The row to insert the transferable at.
public void pasteRows(Transferable transferable,
int rowStart)
throws UnsupportedOperationException,
UnsupportedFlavorException,
CloneNotSupportedException,
IOException
pasteRows in interface DfcTableModelUnsupportedOperationException
UnsupportedFlavorException
CloneNotSupportedException
IOException
public boolean canCopyCells(int startRow,
int endRow,
int startColumn,
int endColumn)
DfcTableModel
canCopyCells in interface DfcTableModelstartRow - The first row to copy.endRow - The last row to copy.startColumn - The first column to copy.endColumn - The last column to copy.
public Transferable copyCells(int startRow,
int endRow,
int startColumn,
int endColumn)
throws UnsupportedOperationException,
CloneNotSupportedException
DfcTableModel
copyCells in interface DfcTableModelstartRow - 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.
UnsupportedOperationExceptionDfcTableModel.canCopyRows(int, int)
public boolean canPasteCells(Transferable transferable,
int startRow,
int endRow,
int startColumn,
int endColumn)
DfcTableModel
canPasteCells in interface DfcTableModeltransferable - The transferable.startRow - The row to insert the transferable at.
public void pasteCells(Transferable transferable,
int startRow,
int endRow,
int startColumn,
int endColumn)
throws UnsupportedOperationException,
UnsupportedFlavorException,
CloneNotSupportedException,
IOException
pasteCells in interface DfcTableModelUnsupportedOperationException
UnsupportedFlavorException
CloneNotSupportedException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||