Class StyleMapTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
org.apache.uima.tools.stylemap.StyleMapTableModel
All Implemented Interfaces:
Serializable, TableModel

public class StyleMapTableModel extends AbstractTableModel
The Class StyleMapTableModel.
See Also:
  • Field Details

    • serialVersionUID

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

      The v.
    • columnNames

      String[] columnNames
      The column names.
    • DEBUG

      boolean DEBUG
      The debug.
  • Constructor Details

    • StyleMapTableModel

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

    • getColumnCount

      public int getColumnCount()
    • getRowCount

      public int getRowCount()
    • getColumnName

      public String getColumnName(int col)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • getValueAt

      public Object getValueAt(int row, int col)
    • getColumnClass

      public Class getColumnClass(int c)
      Specified by:
      getColumnClass in interface TableModel
      Overrides:
      getColumnClass in class AbstractTableModel
    • isCellEditable

      public boolean isCellEditable(int row, int col)
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class AbstractTableModel
    • setValueAt

      public void setValueAt(Object value, int row, int col)
      Specified by:
      setValueAt in interface TableModel
      Overrides:
      setValueAt in class AbstractTableModel
    • printDebugData

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

      public void set(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(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