Class SegmentationRulesModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.omegat.core.segmentation.datamodels.SegmentationRulesModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class SegmentationRulesModel extends javax.swing.table.AbstractTableModel
Table Model for Segmentation Rules.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SegmentationRulesModel(java.util.List<Rule> rules)
Creates a new instance of SegmentationRulesModel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExceptionListener(java.beans.ExceptionListener l)
int
addRow()
Adds a new empty segmentation rule.void
fireException(java.lang.Exception e)
java.lang.Class<?>
getColumnClass(int columnIndex)
int
getColumnCount()
java.lang.String
getColumnName(int column)
int
getRowCount()
java.lang.Object
getValueAt(int rowIndex, int columnIndex)
boolean
isCellEditable(int rowIndex, int columnIndex)
void
moveRowDown(int row)
Moves a segmentation rule down an order.void
moveRowFirst(int row)
Moves a segmentation rule to top.void
moveRowToBottom(int row)
Moves a segmentation rule to bottom.void
moveRowUp(int row)
Moves a segmentation rule up an order.void
removeExceptionListener(java.beans.ExceptionListener l)
void
removeRow(int row)
Removes a segmentation rule.void
setValueAt(java.lang.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 Detail
-
SegmentationRulesModel
public SegmentationRulesModel(java.util.List<Rule> rules)
Creates a new instance of SegmentationRulesModel
-
-
Method Detail
-
getValueAt
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
-
getColumnClass
public java.lang.Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
getColumnName
public java.lang.String getColumnName(int column)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
setValueAt
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
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
public void addExceptionListener(java.beans.ExceptionListener l)
-
removeExceptionListener
public void removeExceptionListener(java.beans.ExceptionListener l)
-
fireException
public void fireException(java.lang.Exception e)
-
-