Package mgui.interfaces.variables.tables
Class VariableTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
mgui.interfaces.tables.InterfaceTableModel
mgui.interfaces.variables.tables.VariableTableModel
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
,AttributeObject
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
public class VariableTableModel extends InterfaceTableModel
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
Constructors Constructor Description VariableTableModel()
VariableTableModel(VariableInt<?> variable)
-
Method Summary
Modifier and Type Method Description int
getColumnCount()
java.lang.String
getColumnName(int c)
int
getRowCount()
java.lang.Object
getSource()
Returns the source of data for this table.java.lang.Object
getValueAt(int row, int col)
VariableInt<?>
getVariable()
boolean
isCellEditable(int rowIndex, int col)
void
setValueAt(java.lang.Object value, int row, int column)
void
setVariable(VariableInt<?> variable)
Methods inherited from class mgui.interfaces.tables.InterfaceTableModel
_init, clean, destroy, getAttribute, getAttributes, getAttributeValue, getName, getTreeLabel, isDestroyed, issueTreeNode, setAttribute, setAttributes, setName, setTreeNode
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
-
Constructor Details
-
VariableTableModel
public VariableTableModel() -
VariableTableModel
-
-
Method Details
-
setVariable
-
getSource
public java.lang.Object getSource()Description copied from class:InterfaceTableModel
Returns the source of data for this table.- Specified by:
getSource
in classInterfaceTableModel
- Returns:
-
getVariable
-
isCellEditable
public boolean isCellEditable(int rowIndex, int col)- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
getColumnCount
public int getColumnCount() -
getColumnName
public java.lang.String getColumnName(int c)- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getRowCount
public int getRowCount() -
getValueAt
public java.lang.Object getValueAt(int row, int col) -
setValueAt
public void setValueAt(java.lang.Object value, int row, int column)- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-