Package xal.app.knobs
Class KnobEditor.KnobElementTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- xal.app.knobs.KnobEditor.KnobElementTableModel
-
- All Implemented Interfaces:
Serializable,TableModel
- Enclosing class:
- KnobEditor
protected class KnobEditor.KnobElementTableModel extends AbstractTableModel
table model of knob elements- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intCOEFFICIENT_A_COLUMNprotected intCOEFFICIENT_B_COLUMNprotected intCUSTOM_LIMITS_COLUMNprotected intFUNCTION_COLUMNprotected intLOWER_LIMIT_COLUMNprotected intPV_COLUMNprotected intUPPER_LIMIT_COLUMNprotected intWRAPS_AROUND_LIMITS_COLUMN-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description KnobElementTableModel()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getColumnClass(int column)get the class for values associated with the specified columnintgetColumnCount()get the number of columnsStringgetColumnName(int column)get the column nameKnobElementgetKnobElement(int row)get the knob element at the specified rowintgetRowCount()get the number of rowsObjectgetValueAt(int row, int column)get the value at the specified row and columnbooleanisCellEditable(int row, int column)determine if the table cell is editableprotected voidsetElementChannel(KnobElement element, String channelString)set the specified element's channelvoidsetValueAt(Object value, int row, int column)Set the value for the specified table cell-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
PV_COLUMN
protected final int PV_COLUMN
- See Also:
- Constant Field Values
-
COEFFICIENT_A_COLUMN
protected final int COEFFICIENT_A_COLUMN
- See Also:
- Constant Field Values
-
COEFFICIENT_B_COLUMN
protected final int COEFFICIENT_B_COLUMN
- See Also:
- Constant Field Values
-
FUNCTION_COLUMN
protected final int FUNCTION_COLUMN
- See Also:
- Constant Field Values
-
CUSTOM_LIMITS_COLUMN
protected final int CUSTOM_LIMITS_COLUMN
- See Also:
- Constant Field Values
-
WRAPS_AROUND_LIMITS_COLUMN
protected final int WRAPS_AROUND_LIMITS_COLUMN
- See Also:
- Constant Field Values
-
LOWER_LIMIT_COLUMN
protected final int LOWER_LIMIT_COLUMN
- See Also:
- Constant Field Values
-
UPPER_LIMIT_COLUMN
protected final int UPPER_LIMIT_COLUMN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRowCount
public int getRowCount()
get the number of rows
-
getColumnCount
public int getColumnCount()
get the number of columns
-
getKnobElement
public KnobElement getKnobElement(int row)
get the knob element at the specified row
-
getColumnName
public String getColumnName(int column)
get the column name- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getColumnClass
public Class<?> getColumnClass(int column)
get the class for values associated with the specified column- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int column)determine if the table cell is editable- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getValueAt
public Object getValueAt(int row, int column)
get the value at the specified row and column
-
setValueAt
public void setValueAt(Object value, int row, int column)
Set the value for the specified table cell- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
setElementChannel
protected void setElementChannel(KnobElement element, String channelString)
set the specified element's channel
-
-