Class LightControlTableModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.table.TableModel

    public class LightControlTableModel
    extends javax.swing.table.AbstractTableModel
    Table model for Light Controls in the Add/Edit Light windows. No direct access to this class is normally required, access via LightControlPane.java Code originally within LightTableAction.
    See Also:
    Serialized Form
    • Method Detail

      • getControlTypeTips

        protected static final java.util.List<java.lang.String> getControlTypeTips()
      • getControlTypeText

        public static java.lang.String getControlTypeText​(int type)
        Get text showing the type of Light Control.
        Parameters:
        type - the type of Light Control
        Returns:
        name of type or the description for Light.NO_CONTROL if type is not recognized
      • getControlList

        public java.util.List<LightControlgetControlList()
        Get the Current Light Control List for the Table.
        Returns:
        unmodifiable List of Light Controls.
      • getColumnClass

        public java.lang.Class<?> getColumnClass​(int c)
        Specified by:
        getColumnClass in interface javax.swing.table.TableModel
        Overrides:
        getColumnClass in class javax.swing.table.AbstractTableModel
      • isCellEditable

        public boolean isCellEditable​(int r,
                                      int c)
        Specified by:
        isCellEditable in interface javax.swing.table.TableModel
        Overrides:
        isCellEditable in class javax.swing.table.AbstractTableModel
      • 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
      • getValueAt

        public java.lang.Object getValueAt​(int r,
                                           int c)
      • 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
      • configureJTable

        protected void configureJTable​(javax.swing.JTable table)