Package org.csstudio.opibuilder.runmode
Class DisplayOpenManager
java.lang.Object
org.csstudio.opibuilder.runmode.DisplayOpenManager
A manager help to manage the display open history and provide go back and forward functions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(IDisplayOpenManagerListener listener) boolean
boolean
void
dispose()
Dispose of all resources allocated by this manager.Object[]
Return an array of all elements in the backward stack.Object[]
Return an array of all elements in the forward stack.void
goBack()
void
goBack
(int index) void
void
goForward
(int index) void
boolean
removeListener
(IDisplayOpenManagerListener listener)
-
Constructor Details
-
DisplayOpenManager
-
-
Method Details
-
openNewDisplay
public void openNewDisplay() -
goBack
public void goBack() -
goForward
public void goForward() -
goBack
public void goBack(int index) -
goForward
public void goForward(int index) -
addListener
-
removeListener
-
canBackward
public boolean canBackward() -
canForward
public boolean canForward() -
getBackStackEntries
Return an array of all elements in the backward stack. The oldest element is the first element of the returned array.- Returns:
- the array contained all elements in the stack.
-
getForwardStackEntries
Return an array of all elements in the forward stack. The oldest element is the first element of the returned array.- Returns:
- the array contained all elements in the stack.
-
dispose
public void dispose()Dispose of all resources allocated by this manager.
-