Package org.apache.uima.tools.stylemap
Class StyleMapTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.apache.uima.tools.stylemap.StyleMapTableModel
- All Implemented Interfaces:
Serializable,TableModel
The Class StyleMapTableModel.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String[]The column names.(package private) booleanThe debug.private static final longThe Constant serialVersionUID.(package private) VectorThe v.Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionStyleMapTableModel(String[] columnNames) Instantiates a new style map table model. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the row.getColumnClass(int c) intgetColumnName(int col) intgetValueAt(int row, int col) booleanisCellEditable(int row, int col) voidmoveRowDown(int row) Move row down.voidmoveRowUp(int row) Move row up.private voidPrints the debug data.voidremoveRow(int row) Removes the row.voidSets the.voidsetValueAt(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
-
Field Details
-
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
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getValueAt
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int col) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
printDebugData
private void printDebugData()Prints the debug data. -
set
Sets the.- Parameters:
data- the data
-
removeRow
public void removeRow(int row) Removes the row.- Parameters:
row- the row
-
addRow
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
-