Class SignallingPanel.SignalMastModel

    • Field Detail

      • editorMap

        java.util.Hashtable<java.lang.Object,​javax.swing.JComboBox<java.lang.String>> editorMap
    • Method Detail

      • getValueAt

        public java.lang.Object getValueAt​(int r,
                                           int c)
      • setValueAt

        public void setValueAt​(java.lang.Object type,
                               int r,
                               int c)
        Specified by:
        setValueAt in interface javax.swing.table.TableModel
        Overrides:
        setValueAt in class javax.swing.table.AbstractTableModel
      • getValue

        public java.lang.String getValue​(java.lang.String name)
      • configStateColumn

        protected void configStateColumn​(javax.swing.JTable table)
        Customize the SignalMast State (Appearance) column to show an appropriate ComboBox of available Aspects.
        Overrides:
        configStateColumn in class SignallingPanel.TableModel
        Parameters:
        table - a JTable of Signal Masts
      • getAspectEditorBox

        javax.swing.JComboBox<java.lang.String> getAspectEditorBox​(int row)
        Provide a JComboBox element to display inside the JPanel CellEditor. When not yet present, create, store and return a new one.
        Parameters:
        row - Index number (in TableDataModel)
        Returns:
        A combobox containing the valid aspect names for this mast
      • getAspectVector

        java.util.Vector<java.lang.String> getAspectVector​(int row)
        Holds a Hashtable of valid aspects per signal mast used by getAspectEditorBox()
        Parameters:
        row - Index number (in TableDataModel)
        Returns:
        The Vector of valid aspect names for this mast to show in the JComboBox