Class SegmentationRulesModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.omegat.core.segmentation.datamodels.SegmentationRulesModel
- All Implemented Interfaces:
Serializable,TableModel
Table Model for Segmentation Rules.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSegmentationRulesModel(List<Rule> rules) Creates a new instance of SegmentationRulesModel -
Method Summary
Modifier and TypeMethodDescriptionvoidintaddRow()Adds a new empty segmentation rule.voidClass<?>getColumnClass(int columnIndex) intgetColumnName(int column) intgetValueAt(int rowIndex, int columnIndex) booleanisCellEditable(int rowIndex, int columnIndex) voidmoveRowDown(int row) Moves a segmentation rule down an order.voidmoveRowFirst(int row) Moves a segmentation rule to top.voidmoveRowToBottom(int row) Moves a segmentation rule to bottom.voidmoveRowUp(int row) Moves a segmentation rule up an order.voidvoidremoveRow(int row) Removes a segmentation rule.voidsetValueAt(Object aValue, int rowIndex, int columnIndex) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Constructor Details
-
SegmentationRulesModel
Creates a new instance of SegmentationRulesModel
-
-
Method Details
-
getValueAt
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
addRow
public int addRow()Adds a new empty segmentation rule. -
removeRow
public void removeRow(int row) Removes a segmentation rule. -
moveRowUp
public void moveRowUp(int row) Moves a segmentation rule up an order. -
moveRowDown
public void moveRowDown(int row) Moves a segmentation rule down an order. -
moveRowFirst
public void moveRowFirst(int row) Moves a segmentation rule to top. -
moveRowToBottom
public void moveRowToBottom(int row) Moves a segmentation rule to bottom. -
addExceptionListener
-
removeExceptionListener
-
fireException
-