|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.uml.ui.TabConstraints.ConstraintModel
Adapter to provide information and a manipulation interface for a target element's set of constraints to the constraint editor.
| Nested Class Summary | |
private class |
TabConstraints.ConstraintModel.CR
|
| Field Summary | |
private java.util.ArrayList |
m_alConstraints
A list of all the constraints in m_nmeiTarget. |
private javax.swing.event.EventListenerList |
m_ellListeners
List of listeners. |
private java.lang.Object |
m_mmeiTarget
The target element being edited. |
| Constructor Summary | |
TabConstraints.ConstraintModel(java.lang.Object mmeiTarget)
Construct a new ConstraintModel. |
|
| Method Summary | |
void |
addConstraint()
Add a fresh constraint to the model. |
void |
addConstraintChangeListener(tudresden.ocl.gui.events.ConstraintChangeListener ccl)
Add a listener to be informed of changes in the model. |
protected void |
fireConstraintAdded()
|
protected void |
fireConstraintDataChanged(int nIdx,
java.lang.Object mcOld,
java.lang.Object mcNew)
|
protected void |
fireConstraintNameChanged(int nIdx,
java.lang.Object mcOld,
java.lang.Object mcNew)
|
protected void |
fireConstraintRemoved(java.lang.Object mc,
int nIdx)
|
tudresden.ocl.gui.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(tudresden.ocl.gui.events.ConstraintChangeListener ccl)
Remove a listener to be informed of changes in the model. |
private TabConstraints.ConstraintModel.CR |
representationFor(int nIdx)
Create a representation adapter for the given constraint. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.Object m_mmeiTarget
private java.util.ArrayList m_alConstraints
private javax.swing.event.EventListenerList m_ellListeners
| Constructor Detail |
public TabConstraints.ConstraintModel(java.lang.Object mmeiTarget)
| Method Detail |
public int getConstraintCount()
getConstraintCount in interface tudresden.ocl.gui.OCLEditorModelpublic tudresden.ocl.gui.ConstraintRepresentation getConstraintAt(int nIdx)
getConstraintAt in interface tudresden.ocl.gui.OCLEditorModelnIdx - the index of the constraint to be returned.
0 <= nIdx < getConstraintCount()public void removeConstraintAt(int nIdx)
removeConstraintAt in interface tudresden.ocl.gui.OCLEditorModelnIdx - the index of the constraint to be removed.
0 <= nIdx < getConstraintCount()public void addConstraint()
There are 2 restrictions on what can be parsed, given the current OCL grammar:
addConstraint in interface tudresden.ocl.gui.OCLEditorModelprivate TabConstraints.ConstraintModel.CR representationFor(int nIdx)
public void addConstraintChangeListener(tudresden.ocl.gui.events.ConstraintChangeListener ccl)
addConstraintChangeListener in interface tudresden.ocl.gui.OCLEditorModelccl - the new listenerpublic void removeConstraintChangeListener(tudresden.ocl.gui.events.ConstraintChangeListener ccl)
removeConstraintChangeListener in interface tudresden.ocl.gui.OCLEditorModelccl - the listener to be removed
protected void fireConstraintRemoved(java.lang.Object mc,
int nIdx)
protected void fireConstraintAdded()
protected void fireConstraintDataChanged(int nIdx,
java.lang.Object mcOld,
java.lang.Object mcNew)
protected void fireConstraintNameChanged(int nIdx,
java.lang.Object mcOld,
java.lang.Object mcNew)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |