be.lassi.ui.patch
Class PatchDetailTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
be.lassi.ui.patch.PatchDetailTableModel
- All Implemented Interfaces:
- NameListener, ShowContextListener, SortableTableModel, java.io.Serializable, javax.swing.table.TableModel
public class PatchDetailTableModel
- extends javax.swing.table.AbstractTableModel
- implements SortableTableModel, ShowContextListener, NameListener
Instances of this class can be interrogated by JTable to find the
information needed to display variables in tabular format.
- See Also:
- Serialized Form
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
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 |
PatchDetailTableModel
public PatchDetailTableModel(ShowContext context,
Patcher patcher,
Patch patch,
Holder<java.lang.Boolean> stageFollowsSelection)
- Constructs a new model.
- Parameters:
context
- the show contextpatcher
- the patcherpatch
- the patch information
getColumnClass
public java.lang.Class<?> getColumnClass(int col)
-
- Specified by:
getColumnClass
in interface javax.swing.table.TableModel
- Overrides:
getColumnClass
in class javax.swing.table.AbstractTableModel
getColumnCount
public int getColumnCount()
-
- Specified by:
getColumnCount
in interface javax.swing.table.TableModel
getColumnName
public java.lang.String getColumnName(int col)
-
- Specified by:
getColumnName
in interface javax.swing.table.TableModel
- Overrides:
getColumnName
in class javax.swing.table.AbstractTableModel
getObject
public java.lang.Object getObject(int row)
-
- Specified by:
getObject
in interface SortableTableModel
getRowCount
public int getRowCount()
-
- Specified by:
getRowCount
in interface javax.swing.table.TableModel
getSortColumn
public int getSortColumn()
- Gets the index of the column on which the table is sorted.
- Specified by:
getSortColumn
in interface SortableTableModel
- Returns:
- the sort column index
getValueAt
public java.lang.Object getValueAt(int row,
int col)
-
- Specified by:
getValueAt
in interface javax.swing.table.TableModel
isCellEditable
public boolean isCellEditable(int row,
int col)
-
- Specified by:
isCellEditable
in interface javax.swing.table.TableModel
- Overrides:
isCellEditable
in class javax.swing.table.AbstractTableModel
nameChanged
public void nameChanged(NamedObject object)
- Notification that name has changed.
- Specified by:
nameChanged
in interface NameListener
- Parameters:
object
- The object whose name has changed.
postShowChange
public void postShowChange()
- Performs the activities that have to be carried out on
the new show after a show change.
- Specified by:
postShowChange
in interface ShowContextListener
preShowChange
public void preShowChange()
- Performs the activities that have to be carried out on the
old show before a show change.
- Specified by:
preShowChange
in interface ShowContextListener
setSortColumn
public void setSortColumn(int column)
- Sets the index of the column on which the table is sorted.
- Specified by:
setSortColumn
in interface SortableTableModel
- Parameters:
column
- the sort column index
setValueAt
public void setValueAt(java.lang.Object value,
int row,
int col)
-
- Specified by:
setValueAt
in interface javax.swing.table.TableModel
- Overrides:
setValueAt
in class javax.swing.table.AbstractTableModel