public class SegmentationRulesModel
extends javax.swing.table.AbstractTableModel
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.beans.ExceptionListener> |
listeners
List of listeners
|
Constructor and Description |
---|
SegmentationRulesModel(java.util.List<Rule> rules)
Creates a new instance of SegmentationRulesModel
|
Modifier and Type | Method and 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) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
protected java.util.List<java.beans.ExceptionListener> listeners
public SegmentationRulesModel(java.util.List<Rule> rules)
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
public int getRowCount()
public int getColumnCount()
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public int addRow()
public void removeRow(int row)
public void moveRowUp(int row)
public void moveRowDown(int row)
public void moveRowFirst(int row)
public void moveRowToBottom(int row)
public void addExceptionListener(java.beans.ExceptionListener l)
public void removeExceptionListener(java.beans.ExceptionListener l)
public void fireException(java.lang.Exception e)