Overview  Package   Class  Tree  Index 

be.lassi.ui.patch
Class PatchDetailTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by 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

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
PatchDetailTableModel(ShowContext context, Patcher patcher, Patch patch, Holder<java.lang.Boolean> stageFollowsSelection)
          Constructs a new model.
 
Method Summary
 java.lang.Class<?> getColumnClass(int col)
          
 int getColumnCount()
          
 java.lang.String getColumnName(int col)
          
 java.lang.Object getObject(int row)
          
 int getRowCount()
          
 int getSortColumn()
          Gets the index of the column on which the table is sorted.
 java.lang.Object getValueAt(int row, int col)
          
 boolean isCellEditable(int row, int col)
          
 void nameChanged(NamedObject object)
          Notification that name has changed.
 void postShowChange()
          Performs the activities that have to be carried out on the new show after a show change.
 void preShowChange()
          Performs the activities that have to be carried out on the old show before a show change.
 void setSortColumn(int column)
          Sets the index of the column on which the table is sorted.
 void setValueAt(java.lang.Object value, int row, int col)
          
 
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

PatchDetailTableModel

public PatchDetailTableModel(ShowContext context,
                             Patcher patcher,
                             Patch patch,
                             Holder<java.lang.Boolean> stageFollowsSelection)
Constructs a new model.

Parameters:
context - the show context
patcher - the patcher
patch - the patch information
Method Detail

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

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2