Overview  Package   Class  Tree  Index 

be.lassi.ui.sheet
Class SheetTableModelHeaders

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by be.lassi.ui.sheet.SheetTableModel
          extended by be.lassi.ui.sheet.SheetTableModelHeaders
All Implemented Interfaces:
ShowContextListener, java.io.Serializable, javax.swing.table.TableModel

public class SheetTableModelHeaders
extends SheetTableModel

Table model for left side of Sheet window table.

See Also:
Serialized Form

Field Summary
static int COLUMN_ID
           
static int COLUMN_NAME
           
static int COLUMN_STAGE
           
static int COLUMN_STAGE_BAR
           
static int COLUMN_SUBMASTER
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SheetTableModelHeaders(ShowContext context)
          Constructs a new instance.
 
Method Summary
 int getColumnCount()
          
 java.lang.String getColumnName(int col)
          
 java.lang.Object getValueAt(int row, int col)
          
 boolean isCellEditable(int row, int col)
          
 boolean isColumnWithSpecialGridLine(int col)
           
 boolean isRowSelectedSubmaster(int row)
          Indicates whether the row with given index is the row with the currently selected submaster.
 boolean keyAction(int actionId, int[] rows, int[] cols)
           
 void setSelectedSubmasterIndex(int submasterIndex)
          Method setSelectedSubmasterIndex.
 void setValueAt(java.lang.Object value, int row, int col)
          
 void updateColumnWidths()
           
 
Methods inherited from class be.lassi.ui.sheet.SheetTableModel
fireCueChannelUpdated, fireCueSubmasterUpdated, fireTableRowUpdated, getChannelIndex, getColumnModel, getContext, getCues, getRowChannel, getRowChannelWithId, getRowCount, getRowSubmaster, getShow, getSubmasterIndex, groupsChanged, isCurrentCueColumn, isRowChannel, isRowSubmaster, isRowTiming, isRowWithSpecialGridLine, postShowChange, preShowChange
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_ID

public static final int COLUMN_ID
See Also:
Constant Field Values

COLUMN_NAME

public static final int COLUMN_NAME
See Also:
Constant Field Values

COLUMN_STAGE

public static final int COLUMN_STAGE
See Also:
Constant Field Values

COLUMN_STAGE_BAR

public static final int COLUMN_STAGE_BAR
See Also:
Constant Field Values

COLUMN_SUBMASTER

public static final int COLUMN_SUBMASTER
See Also:
Constant Field Values
Constructor Detail

SheetTableModelHeaders

public SheetTableModelHeaders(ShowContext context)
Constructs a new instance.

Parameters:
context - the show context
Method Detail

getColumnCount

public int getColumnCount()


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

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)


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

isColumnWithSpecialGridLine

public boolean isColumnWithSpecialGridLine(int col)
Overrides:
isColumnWithSpecialGridLine in class SheetTableModel

isRowSelectedSubmaster

public boolean isRowSelectedSubmaster(int row)
Indicates whether the row with given index is the row with the currently selected submaster.

Parameters:
row - the row index (first row is 0)
Returns:
boolean true if row contains selected submaster

keyAction

public boolean keyAction(int actionId,
                         int[] rows,
                         int[] cols)
Specified by:
keyAction in class SheetTableModel

setSelectedSubmasterIndex

public void setSelectedSubmasterIndex(int submasterIndex)
Method setSelectedSubmasterIndex.

Parameters:
submasterIndex -

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

updateColumnWidths

public void updateColumnWidths()

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2