Class StyleMapTableModel

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

    public class StyleMapTableModel
    extends javax.swing.table.AbstractTableModel
    The Class StyleMapTableModel.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String[] columnNames
      The column names.
      (package private) boolean DEBUG
      The debug.
      private static long serialVersionUID
      The Constant serialVersionUID.
      (package private) java.util.Vector v
      The v.
      • Fields inherited from class javax.swing.table.AbstractTableModel

        listenerList
    • Constructor Summary

      Constructors 
      Constructor Description
      StyleMapTableModel​(java.lang.String[] columnNames)
      Instantiates a new style map table model.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRow​(java.util.Vector rowVector)
      Adds the row.
      java.lang.Class getColumnClass​(int c)  
      int getColumnCount()  
      java.lang.String getColumnName​(int col)  
      int getRowCount()  
      java.lang.Object getValueAt​(int row, int col)  
      boolean isCellEditable​(int row, int col)  
      void moveRowDown​(int row)
      Move row down.
      void moveRowUp​(int row)
      Move row up.
      private void printDebugData()
      Prints the debug data.
      void removeRow​(int row)
      Removes the row.
      void set​(java.lang.Object[][] data)
      Sets the.
      void setValueAt​(java.lang.Object value, int row, int col)  
      • Methods inherited from class javax.swing.table.AbstractTableModel

        addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        The Constant serialVersionUID.
        See Also:
        Constant Field Values
      • v

        java.util.Vector v
        The v.
      • columnNames

        java.lang.String[] columnNames
        The column names.
      • DEBUG

        boolean DEBUG
        The debug.
    • Constructor Detail

      • StyleMapTableModel

        StyleMapTableModel​(java.lang.String[] columnNames)
        Instantiates a new style map table model.
        Parameters:
        columnNames - the column names
    • Method Detail

      • getColumnCount

        public int getColumnCount()
      • getRowCount

        public int getRowCount()
      • 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 row,
                                           int col)
      • 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 row,
                                      int col)
        Specified by:
        isCellEditable in interface javax.swing.table.TableModel
        Overrides:
        isCellEditable in class javax.swing.table.AbstractTableModel
      • 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
      • printDebugData

        private void printDebugData()
        Prints the debug data.
      • set

        public void set​(java.lang.Object[][] data)
        Sets the.
        Parameters:
        data - the data
      • removeRow

        public void removeRow​(int row)
        Removes the row.
        Parameters:
        row - the row
      • addRow

        public void addRow​(java.util.Vector rowVector)
        Adds the row.
        Parameters:
        rowVector - the row vector
      • moveRowUp

        public void moveRowUp​(int row)
        Move row up.
        Parameters:
        row - the row
      • moveRowDown

        public void moveRowDown​(int row)
        Move row down.
        Parameters:
        row - the row