|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.ui.targetmanager.TargetManager
The manager of the target of argouml. The target of argouml is the selected element in the model. This can either be an instance of a meta-class (an Interface or a Class for example) but it can also be a diagram or a figure on a diagram.
Via an event mechanism this manager makes sure that all objects interested in knowing wether the event changed are acknowledged.
Constructor Summary | |
---|---|
TargetManager()
|
Method Summary | |
---|---|
void |
addTarget(java.lang.Object target)
Adds a target to the targets list. |
void |
addTargetListener(TargetListener listener)
Adds a listener. |
void |
cleanHistory()
Cleans the history. |
Fig |
getFigTarget()
Convenience method to return the target as fig. |
static TargetManager |
getInstance()
Singleton retrieval method |
java.lang.Object |
getModelTarget()
Returns the target in it's 'modelform'. |
java.lang.Object |
getTarget()
Returns the current target. |
java.util.Collection |
getTargets()
Returns a collection with all targets. |
boolean |
navigateBackPossible()
Checks if it's possible to navigate backward |
void |
navigateBackward()
Navigates the target pointer one target backward. |
void |
navigateForward()
Navigates the target pointer one target forward. |
boolean |
navigateForwardPossible()
Checks if it's possible to navigate forward. |
void |
removeHistoryElement(java.lang.Object o)
|
void |
removeTarget(java.lang.Object target)
Removes the target from the targets list. |
void |
removeTargetListener(TargetListener listener)
Removes a listener. |
void |
setTarget(java.lang.Object o)
Sets the targets to the single given object. |
void |
setTargets(java.util.Collection targetsList)
Sets the given collection to the current targets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TargetManager()
Method Detail |
public static TargetManager getInstance()
public void setTarget(java.lang.Object o)
o
- The new targetpublic java.lang.Object getTarget() throws TargetException
TargetException
- if there are more then 1 target.public void setTargets(java.util.Collection targetsList)
targetsList
- The new targets list.public void addTarget(java.lang.Object target)
target
- the target to be added.public void removeTarget(java.lang.Object target)
target
- The target to remove.public java.util.Collection getTargets()
public void addTargetListener(TargetListener listener)
listener
- the listener to addpublic void removeTargetListener(TargetListener listener)
listener
- the listener to removepublic Fig getFigTarget()
public java.lang.Object getModelTarget()
public void navigateForward() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- If the target pointer is at the end of the
history.public void navigateBackward() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- If the target pointer is at the
beginning of the history.public boolean navigateForwardPossible()
public boolean navigateBackPossible()
public void cleanHistory()
public void removeHistoryElement(java.lang.Object o)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040216) | ArgoUML Project Home | ArgoUML Cookbook |