|
Dresden OCL Toolkit | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
tudresden.ocl.gui.OCLEditor.ConstraintTableModel
Table model for the table of constraints.
| Field Summary | |
protected OCLEditorModel |
m_oclemModel
The OCLEditorModel on which this table model is based. |
protected WeakReference |
m_wrocle
The OCLEditor for which this table model is used. |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
OCLEditor.ConstraintTableModel(OCLEditor ocle)
|
|
| Method Summary | |
void |
constraintAdded(ConstraintChangeEvent cce)
Relay the event to the table indicating a row was added. |
void |
constraintDataChanged(ConstraintChangeEvent cce)
Ignored. |
void |
constraintNameChanged(ConstraintChangeEvent cce)
Relay the event to the table indicating the data in the cell changed. |
void |
constraintRemoved(ConstraintChangeEvent cce)
Relay the event to the table indicating a row was deleted. |
Class |
getColumnClass(int nIdx)
This table model has one column: "String.class". |
int |
getColumnCount()
This table model has one column. |
String |
getColumnName(int nIdx)
This table model has one column: "Constraint name". |
int |
getRowCount()
Return the number of rows in the table. |
Object |
getValueAt(int row,
int column)
Get the constraint name of the specified constraint. |
boolean |
isCellEditable(int row,
int column)
Constraint names can be edited. |
void |
setOCLModel(OCLEditorModel oclemModel)
Set the OCLEditorModel to base this table model on. |
void |
setValueAt(Object value,
int row,
int column)
Set the edited constraint name. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected OCLEditorModel m_oclemModel
protected WeakReference m_wrocle
| Constructor Detail |
public OCLEditor.ConstraintTableModel(OCLEditor ocle)
| Method Detail |
public void setOCLModel(OCLEditorModel oclemModel)
public int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic String getColumnName(int nIdx)
getColumnName in interface TableModelpublic Class getColumnClass(int nIdx)
getColumnClass in interface TableModel
public Object getValueAt(int row,
int column)
getValueAt in interface TableModel
public boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModel
public void setValueAt(Object value,
int row,
int column)
setValueAt in interface TableModelpublic void constraintAdded(ConstraintChangeEvent cce)
constraintAdded in interface ConstraintChangeListenerpublic void constraintRemoved(ConstraintChangeEvent cce)
constraintRemoved in interface ConstraintChangeListenerpublic void constraintNameChanged(ConstraintChangeEvent cce)
constraintNameChanged in interface ConstraintChangeListenerpublic void constraintDataChanged(ConstraintChangeEvent cce)
constraintDataChanged in interface ConstraintChangeListener
|
Dresden OCL Toolkit | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||