|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttudresden.ocl.gui.JOCLEditorApp.DefaultOCLEditorModel
Nested Class Summary | |
class |
JOCLEditorApp.DefaultOCLEditorModel.DefaultConstraintRepresentation
|
Field Summary | |
private EventListenerList |
m_ellListeners
List of listeners. |
private List |
m_lcrConstraints
|
Constructor Summary | |
JOCLEditorApp.DefaultOCLEditorModel()
|
Method Summary | |
void |
addConstraint()
Add a fresh constraint to the model. |
void |
addConstraintChangeListener(ConstraintChangeListener ccl)
Add a listener to be informed of changes in the model. |
protected void |
fireConstraintAdded()
|
protected void |
fireConstraintDataChanged(int nIdx,
String sOldConstraint,
ConstraintRepresentation crNew)
|
protected void |
fireConstraintNameChanged(int nIdx,
String sOldName,
ConstraintRepresentation crNew)
|
protected void |
fireConstraintRemoved(ConstraintRepresentation cr,
int nIdx)
|
ConstraintRepresentation |
getConstraintAt(int nIdx)
Return the constraint with the specified index. |
int |
getConstraintCount()
Return the number of constraints in this model. |
void |
removeConstraintAt(int nIdx)
Remove the specified constraint from the model. |
void |
removeConstraintChangeListener(ConstraintChangeListener ccl)
Remove a listener to be informed of changes in the model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private List m_lcrConstraints
private EventListenerList m_ellListeners
Constructor Detail |
public JOCLEditorApp.DefaultOCLEditorModel()
Method Detail |
public int getConstraintCount()
getConstraintCount
in interface OCLEditorModel
public ConstraintRepresentation getConstraintAt(int nIdx)
getConstraintAt
in interface OCLEditorModel
nIdx
- the index of the constraint to be returned. 0 <= nIdx < getConstraintCount()
public void addConstraint()
addConstraint
in interface OCLEditorModel
public void removeConstraintAt(int nIdx)
removeConstraintAt
in interface OCLEditorModel
nIdx
- the index of the constraint to be removed. 0 <= nIdx < getConstraintCount()
public void addConstraintChangeListener(ConstraintChangeListener ccl)
addConstraintChangeListener
in interface OCLEditorModel
ccl
- the new listenerpublic void removeConstraintChangeListener(ConstraintChangeListener ccl)
removeConstraintChangeListener
in interface OCLEditorModel
ccl
- the listener to be removedprotected void fireConstraintRemoved(ConstraintRepresentation cr, int nIdx)
protected void fireConstraintAdded()
protected void fireConstraintDataChanged(int nIdx, String sOldConstraint, ConstraintRepresentation crNew)
protected void fireConstraintNameChanged(int nIdx, String sOldName, ConstraintRepresentation crNew)
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |