be.lassi.ui.sheet
Class SheetTableModelDetails
java.lang.Object
javax.swing.table.AbstractTableModel
be.lassi.ui.sheet.SheetTableModel
be.lassi.ui.sheet.SheetTableModelDetails
- All Implemented Interfaces:
- ShowContextListener, SelectableTableModel, java.io.Serializable, javax.swing.table.TableModel
public class SheetTableModelDetails
- extends SheetTableModel
- implements SelectableTableModel
- See Also:
- Serialized Form
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Method Summary |
int |
getColumnCount()
|
java.lang.String |
getColumnName(int col)
|
Cue |
getCue(int col)
Get the cue at given column index. |
LightCueDetail |
getDetail(int col)
Gets the light cue detail of the cue at given column index. |
java.lang.String |
getRowText(int row)
Gets a text representation of the information at given row. |
java.lang.Object |
getValueAt(int row,
int col)
|
boolean |
isCellEditable(int row,
int col)
|
boolean |
isCurrentCueColumn(int col)
|
boolean |
isDummyColumnShown()
|
boolean |
isSelected(int row,
int column)
|
boolean |
keyAction(int actionId,
int[] rows,
int[] cols)
|
void |
postShowChange()
Performs the activities that have to be carried out on
the new show after a show change.
Start listening for changes in the show groups. |
void |
scroll(int delta)
|
void |
setFocus(CellFocusListener cellFocusListener,
int row,
int column)
|
void |
setSelected(int row,
int column,
boolean selected)
|
void |
setValueAt(java.lang.Object value,
int row,
int col)
|
Methods inherited from class be.lassi.ui.sheet.SheetTableModel |
fireCueChannelUpdated, fireCueSubmasterUpdated, fireTableRowUpdated, getChannelIndex, getColumnModel, getContext, getCues, getRowChannel, getRowChannelWithId, getRowCount, getRowSubmaster, getShow, getSubmasterIndex, groupsChanged, isColumnWithSpecialGridLine, isRowChannel, isRowSubmaster, isRowTiming, isRowWithSpecialGridLine, 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 |
Methods inherited from interface javax.swing.table.TableModel |
addTableModelListener, getColumnClass, getRowCount, removeTableModelListener |
SheetTableModelDetails
public SheetTableModelDetails(ShowContext context)
- Constructs a new instance.
- Parameters:
context
- the show context
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
getCue
public Cue getCue(int col)
- Get the cue at given column index.
- Parameters:
col
- the column index
- Returns:
- the Cue at given index
getDetail
public LightCueDetail getDetail(int col)
- Gets the light cue detail of the cue at given column index.
- Parameters:
col
- the column index
- Returns:
- the light cue detail
getRowText
public java.lang.String getRowText(int row)
- Gets a text representation of the information at given row.
- Parameters:
row
- the row index
- Returns:
- the row text
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
isCurrentCueColumn
public boolean isCurrentCueColumn(int col)
- Overrides:
isCurrentCueColumn
in class SheetTableModel
isDummyColumnShown
public boolean isDummyColumnShown()
isSelected
public boolean isSelected(int row,
int column)
- Specified by:
isSelected
in interface SelectableTableModel
keyAction
public boolean keyAction(int actionId,
int[] rows,
int[] cols)
- Specified by:
keyAction
in class SheetTableModel
postShowChange
public void postShowChange()
- Description copied from class:
SheetTableModel
- Performs the activities that have to be carried out on
the new show after a show change.
Start listening for changes in the show groups.
- Specified by:
postShowChange
in interface ShowContextListener
- Overrides:
postShowChange
in class SheetTableModel
scroll
public void scroll(int delta)
- Specified by:
scroll
in interface SelectableTableModel
setFocus
public void setFocus(CellFocusListener cellFocusListener,
int row,
int column)
setSelected
public void setSelected(int row,
int column,
boolean selected)
- Specified by:
setSelected
in interface SelectableTableModel
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