Class SegmentationRulesModel

java.lang.Object
javax.swing.table.AbstractTableModel
org.omegat.core.segmentation.datamodels.SegmentationRulesModel
All Implemented Interfaces:
Serializable, TableModel

public class SegmentationRulesModel extends AbstractTableModel
Table Model for Segmentation Rules.
See Also:
  • Constructor Details

    • SegmentationRulesModel

      public SegmentationRulesModel(List<Rule> rules)
      Creates a new instance of SegmentationRulesModel
  • Method Details

    • getValueAt

      public Object getValueAt(int rowIndex, int columnIndex)
    • getRowCount

      public int getRowCount()
    • getColumnCount

      public int getColumnCount()
    • getColumnClass

      public Class<?> getColumnClass(int columnIndex)
      Specified by:
      getColumnClass in interface TableModel
      Overrides:
      getColumnClass in class AbstractTableModel
    • getColumnName

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

      public void setValueAt(Object aValue, int rowIndex, int columnIndex)
      Specified by:
      setValueAt in interface TableModel
      Overrides:
      setValueAt in class AbstractTableModel
    • isCellEditable

      public boolean isCellEditable(int rowIndex, int columnIndex)
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class 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(ExceptionListener l)
    • removeExceptionListener

      public void removeExceptionListener(ExceptionListener l)
    • fireException

      public void fireException(Exception e)