|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.ui.targetmanager.TargetManager.HistoryManager
The manager of the history of targets. Every time the user (or the program) selects a new target, this is recorded in the history. Via navigateBack and navigateForward, the user can browse through the history just like in an ordinary internet browser.
| Field Summary | |
private int |
currentTarget
The pointer to the current target in the history |
private List |
history
The history with targets |
private static int |
MAX_SIZE
|
private boolean |
navigateBackward
Flag to indicate if the current settarget was instantiated by a navigateBack action. |
| Constructor Summary | |
private |
TargetManager.HistoryManager()
Default constructor that registrates the history manager as target listener with the target manager. |
| Method Summary | |
private void |
clean()
Cleans the history in total. |
private boolean |
navigateBackPossible()
Checks if it's possible to navigate back. |
private void |
navigateBackward()
Navigate one step back in history. |
private void |
navigateForward()
Navigate one target forward in history. |
private boolean |
navigateForwardPossible()
Checks if it's possible to navigate forward |
private void |
putInHistory(Object target)
Puts some target into the history (if needed). |
private void |
removeHistoryTarget(Object o)
|
private void |
resize()
Resizes the history if it's grown too big. |
void |
targetAdded(TargetEvent e)
Listener for additions of targets to the selected targets. |
void |
targetRemoved(TargetEvent e)
Listener for the removal of targets from the selection. |
void |
targetSet(TargetEvent e)
Listener for the selection of a whole bunch of targets in one go (or just one). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final int MAX_SIZE
private List history
private boolean navigateBackward
private int currentTarget
| Constructor Detail |
private TargetManager.HistoryManager()
| Method Detail |
private void putInHistory(Object target)
target - The target to put into the historyprivate void resize()
private void navigateForward()
private void navigateBackward()
private boolean navigateBackPossible()
private boolean navigateForwardPossible()
public void targetAdded(TargetEvent e)
targetAdded in interface TargetListenere - The targetevent, name will be TARGET_ADDEDTargetListener.targetAdded(
org.argouml.ui.targetmanager.TargetEvent)public void targetRemoved(TargetEvent e)
targetRemoved in interface TargetListenere - The targetevent, name will be TARGET_REMOVEDTargetListener.targetRemoved(org.argouml.ui.targetmanager.TargetEvent)public void targetSet(TargetEvent e)
targetSet in interface TargetListenere - The targetevent, name will be TARGET_SETTargetListener.targetSet(org.argouml.ui.targetmanager.TargetEvent)private void clean()
private void removeHistoryTarget(Object o)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |