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.WColumnSetprotected com.fishlib.dataobjects.WColumnSetFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionIrisTableModel(com.fishlib.dataobjects.WColumnSet columnSet) IrisTableModel(String columnSetName) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()getColumnClass(int index) intintgetColumnIndex(String name) getColumnName(int index) com.fishlib.dataobjects.WColumnSetcom.fishlib.dataobjects.WColumnSetorg.jdom2.ElementSerialize the class into an element to be stored in the workspacebooleanisStale(int row, int col) voidvoidvoidsetColumnSet(com.fishlib.dataobjects.WColumnSet columnSet) voidsetWorkspaceInfo(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, setValueAtMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.table.TableModel
getRowCount, getValueAtMethods 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:
getColumnCountin interfaceTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein 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:
processUpdatein interfaceUpdateListener
-
getWorkspaceInfo
public org.jdom2.Element getWorkspaceInfo()Description copied from interface:WorkspaceSerialize the class into an element to be stored in the workspace- Specified by:
getWorkspaceInfoin interfaceWorkspace- Returns:
- An
Elementcontaining the data to persist.
-
setWorkspaceInfo
public void setWorkspaceInfo(org.jdom2.Element workspaceInfo) Description copied from interface:WorkspaceRestore the class to the state defined by the data persisted in workspaceInfo- Specified by:
setWorkspaceInfoin interfaceWorkspace- Parameters:
workspaceInfo- AnElementcontaining the persisted state.
-
getSortableColumns
-