|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--org.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(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)
|
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. |
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()
public ConstraintRepresentation getConstraintAt(int nIdx)
nIdx - the index of the constraint to be returned.
0 <= nIdx < getConstraintCount()public void removeConstraintAt(int nIdx)
nIdx - 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:
private TabConstraints.ConstraintModel.CR representationFor(int nIdx)
public void addConstraintChangeListener(ConstraintChangeListener ccl)
ccl - the new listenerpublic void removeConstraintChangeListener(ConstraintChangeListener ccl)
ccl - 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 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |