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
  • Constructor Details

    • VariableTableModel

      public VariableTableModel()
    • VariableTableModel

      public VariableTableModel​(VariableInt<?> variable)
  • Method Details

    • setVariable

      public void setVariable​(VariableInt<?> variable)
    • getSource

      public java.lang.Object getSource()
      Description copied from class: InterfaceTableModel
      Returns the source of data for this table.
      Specified by:
      getSource in class InterfaceTableModel
      Returns:
    • getVariable

      public VariableInt<?> getVariable()
    • isCellEditable

      public boolean isCellEditable​(int rowIndex, int col)
      Specified by:
      isCellEditable in interface javax.swing.table.TableModel
      Overrides:
      isCellEditable in class javax.swing.table.AbstractTableModel
    • getColumnCount

      public int getColumnCount()
    • getColumnName

      public java.lang.String getColumnName​(int c)
      Specified by:
      getColumnName in interface javax.swing.table.TableModel
      Overrides:
      getColumnName in class javax.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 interface javax.swing.table.TableModel
      Overrides:
      setValueAt in class javax.swing.table.AbstractTableModel