|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--javax.swing.table.DefaultTableModel | +--org.arch4j.ui.table.ObjectTableModel | +--org.arch4j.ui.table.ObjectSelectionTableModel
This is the table model to support the selection of objects table.
ObjectSelectionTable
,
Serialized FormField Summary |
Fields inherited from class javax.swing.table.DefaultTableModel |
columnIdentifiers, dataVector |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
ObjectSelectionTableModel(Collection anObjectList,
Collection anAccessorList,
Collection aColumnHeadingList,
Collection aRowHeadingList)
Creates a new instance of ObjectTableModel |
Method Summary | |
void |
addSelectedObject(Object anObject)
Add a object to the selected object list. |
void |
clearSelections()
Deselect all items. |
Class |
getColumnClass(int c)
JTable uses this method to determine the default renderer/ editor for each cell. |
protected Vector |
getRowData(Object anObject)
Get the data for an object. |
Collection |
getSelectedObjects()
Get the selected objects from the table. |
void |
refreshTableData(Object anObject)
Refresh the row data for the given object. |
void |
selectAllObjects()
Sets all items as selected |
void |
setValueAt(Object aValue,
int aRow,
int aColumn)
Set the value to the object for the the given row and column. |
Methods inherited from class org.arch4j.ui.table.ObjectTableModel |
addObject, addRowFor, getIndex, getObjects, getRowObject, getSelectionMode, refreshTableData, removeAllRows, removeObject, setObjects, setSelectionMode |
Methods inherited from class javax.swing.table.DefaultTableModel |
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, isCellEditable, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectSelectionTableModel(Collection anObjectList, Collection anAccessorList, Collection aColumnHeadingList, Collection aRowHeadingList)
Method Detail |
protected Vector getRowData(Object anObject)
getRowData
in class ObjectTableModel
anObject
- The object to get the data for.public Class getColumnClass(int c)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public void setValueAt(Object aValue, int aRow, int aColumn)
setValueAt
in interface TableModel
setValueAt
in class DefaultTableModel
aValue
- The value for the row/column.aRow
- The row to put the value in..aColumn
- The column in the row to put the object in.public void refreshTableData(Object anObject)
refreshTableData
in class ObjectTableModel
anObject
- The object to update the data for.public Collection getSelectedObjects()
public void addSelectedObject(Object anObject)
anObject
- The object to add.public void selectAllObjects()
public void clearSelections()
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |