Modelers

org.topcased.modeler.editor
Class NavigationManager

java.lang.Object
  extended by org.topcased.modeler.editor.NavigationManager

public class NavigationManager
extends java.lang.Object

This class is responsible of the navigation throught the diagrams. Then it stores the history of this navigation to allow next and previous actions.
creation : 16 déc. 2005


Method Summary
 void addNavigationListener(INavigationListener listener)
          Appends the listener to the list of navigation listeners.
 boolean canDoNext()
          Returns true if a next action can be performed
 boolean canDoPrevious()
          Returns true if a previous action can be performed
 int getPreviousLimit()
          Returns the depth of the browse stack
 void next()
          Go forward in the browse history
 void previous()
          Go backward in the browse history
 void removeNavigationListener(INavigationListener listener)
          Removes the first occurrence of the specified listener.
 void set(Diagram newDiagram)
          Change the current diagram
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addNavigationListener

public void addNavigationListener(INavigationListener listener)
Appends the listener to the list of navigation listeners. Multiple adds result in multiple notifications.

Parameters:
listener - the event listener

removeNavigationListener

public void removeNavigationListener(INavigationListener listener)
Removes the first occurrence of the specified listener.

Parameters:
listener - the listener

canDoPrevious

public boolean canDoPrevious()
Returns true if a previous action can be performed

Returns:
a boolean

canDoNext

public boolean canDoNext()
Returns true if a next action can be performed

Returns:
a boolean

previous

public void previous()
Go backward in the browse history


next

public void next()
Go forward in the browse history


set

public void set(Diagram newDiagram)
Change the current diagram

Parameters:
newDiagram - the new active diagram

getPreviousLimit

public int getPreviousLimit()
Returns the depth of the browse stack

Returns:
the limit

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.