Package jmri.jmrix.nce.cab
Class NceShowCabPanel.NceCabTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.nce.cab.NceShowCabPanel.NceCabTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Enclosing class:
- NceShowCabPanel
class NceShowCabPanel.NceCabTableModel extends javax.swing.table.AbstractTableModel
-
-
Field Summary
Fields Modifier and Type Field Description (package private) NceShowCabPanel.DataRow[]
cabData
-
Constructor Summary
Constructors Constructor Description NceCabTableModel(NceShowCabPanel.DataRow[] cabDataPtr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getCabIdForRow(int row)
Return cabId for row number.java.lang.Class<?>
getColumnClass(int c)
int
getColumnCount()
java.lang.String
getColumnName(int col)
int
getPreferredWidth(int col)
int
getRowCount()
boolean
getShowAllCabs()
boolean
getShowAllFunctions()
boolean
getShowCabDisplay()
java.lang.Object
getValueAt(int row, int col)
boolean
isCellEditable(int row, int col)
void
setShowAllCabs(boolean b)
void
setShowAllFunctions(boolean b)
void
setShowCabDisplay(boolean b)
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
-
-
-
-
Field Detail
-
cabData
NceShowCabPanel.DataRow[] cabData
-
-
Constructor Detail
-
NceCabTableModel
NceCabTableModel(NceShowCabPanel.DataRow[] cabDataPtr)
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
-
getRowCount
public int getRowCount()
-
getCabIdForRow
protected int getCabIdForRow(int row)
Return cabId for row number.- Parameters:
row
- row for cab information- Returns:
- cab id
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getValueAt
public java.lang.Object getValueAt(int row, int col)
-
setValueAt
public void setValueAt(java.lang.Object value, int row, int col)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
getColumnClass
public java.lang.Class<?> getColumnClass(int c)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
getPreferredWidth
public int getPreferredWidth(int col)
-
isCellEditable
public boolean isCellEditable(int row, int col)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
getShowAllCabs
public boolean getShowAllCabs()
-
setShowAllCabs
public void setShowAllCabs(boolean b)
-
getShowAllFunctions
public boolean getShowAllFunctions()
-
setShowAllFunctions
public void setShowAllFunctions(boolean b)
-
getShowCabDisplay
public boolean getShowCabDisplay()
-
setShowCabDisplay
public void setShowCabDisplay(boolean b)
-
-