Package com.illumon.iris.gui.table
Class IrisTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.illumon.iris.gui.table.IrisTableModel
- All Implemented Interfaces:
UpdateListener
,Workspace
,Serializable
,TableModel
- Direct Known Subclasses:
BaseDBTableModel
,GuiTableMap
,HashedPlainObjectTableModel
,RingBufferObjectTableModel
,TaskManager.TaskManagerTableModel
public abstract class IrisTableModel
extends AbstractTableModel
implements UpdateListener, Workspace
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.fishlib.dataobjects.WColumnSet
protected com.fishlib.dataobjects.WColumnSet
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
ConstructorsConstructorDescriptionIrisTableModel
(com.fishlib.dataobjects.WColumnSet columnSet) IrisTableModel
(String columnSetName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
getColumnClass
(int index) int
int
getColumnIndex
(String name) getColumnName
(int index) com.fishlib.dataobjects.WColumnSet
com.fishlib.dataobjects.WColumnSet
org.jdom2.Element
Serialize the class into an element to be stored in the workspaceboolean
isStale
(int row, int col) void
void
void
setColumnSet
(com.fishlib.dataobjects.WColumnSet columnSet) void
setWorkspaceInfo
(org.jdom2.Element workspaceInfo) Restore the class to the state defined by the data persisted in workspaceInfoMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, 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
getRowCount, getValueAt
Methods inherited from interface com.illumon.iris.gui.workspace.Workspace
isGlobalSetting
-
Field Details
-
columnSet_
protected com.fishlib.dataobjects.WColumnSet columnSet_ -
nonViewColumnSet_
protected com.fishlib.dataobjects.WColumnSet nonViewColumnSet_
-
-
Constructor Details
-
IrisTableModel
public IrisTableModel(com.fishlib.dataobjects.WColumnSet columnSet) -
IrisTableModel
-
-
Method Details
-
getColumnSet
public com.fishlib.dataobjects.WColumnSet getColumnSet() -
getNonViewColumnSet
public com.fishlib.dataobjects.WColumnSet getNonViewColumnSet() -
setColumnSet
public void setColumnSet(com.fishlib.dataobjects.WColumnSet columnSet) -
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfaceTableModel
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getTableModelName
-
getColumnIndex
-
registerAsUpdateListener
public void registerAsUpdateListener() -
dispose
public void dispose() -
isStale
public boolean isStale(int row, int col) -
processUpdate
public void processUpdate()- Specified by:
processUpdate
in interfaceUpdateListener
-
getWorkspaceInfo
public org.jdom2.Element getWorkspaceInfo()Description copied from interface:Workspace
Serialize the class into an element to be stored in the workspace- Specified by:
getWorkspaceInfo
in interfaceWorkspace
- Returns:
- An
Element
containing the data to persist.
-
setWorkspaceInfo
public void setWorkspaceInfo(org.jdom2.Element workspaceInfo) Description copied from interface:Workspace
Restore the class to the state defined by the data persisted in workspaceInfo- Specified by:
setWorkspaceInfo
in interfaceWorkspace
- Parameters:
workspaceInfo
- AnElement
containing the persisted state.
-
getSortableColumns
-