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) boolean
The debug.private static final long
The Constant serialVersionUID.(package private) Vector
The 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 TypeMethodDescriptionvoid
Adds the row.getColumnClass
(int c) int
getColumnName
(int col) int
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
Prints the debug data.void
removeRow
(int row) Removes the row.void
Sets the.void
setValueAt
(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:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getValueAt
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int col) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in 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
-