|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.util.ScreenHistory
public class ScreenHistory
Manages a history of screens in a stack, when a previous screen is shown all following screens are removed from the history.
ScreenHistory is thread safe.
Copyright Enough Software 2007 - 2008
history
Jan 14, 2007 - rob creation
| Constructor Summary | |
|---|---|
ScreenHistory()
Creates a new ScreenStack with no limitations on the number of possible screens between a former and a new screen. |
|
ScreenHistory(int maxStep)
Creates a new ScreenStack |
|
| Method Summary | |
|---|---|
void |
clearHistory()
Clears the history. |
javax.microedition.lcdui.Displayable |
getCurrent()
Retrieves the current screen when there is any. |
int |
getHistorySize()
Retrieves the size of the history managed by this stack. |
javax.microedition.lcdui.Displayable |
getPrevious()
Retrieves the previous screen when there is any. |
boolean |
hasPrevious()
Determines whether there is a previous screen in this ScreenStack. |
void |
popHistory()
Removes the last history entry, if there is one |
void |
show(javax.microedition.lcdui.Displayable screen,
javax.microedition.lcdui.Display display)
Shows the screen When the screen has been shown previously, any screens that followed the screen are removed from the history. |
boolean |
showPrevious(javax.microedition.lcdui.Display display)
Shows the previous screen when there is any. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScreenHistory()
ScreenHistory(int)public ScreenHistory(int maxStep)
maxStep - the maximum number of screens that is checked if a new screen has been previously shown, -1 when all screens should be checked| Method Detail |
|---|
public void show(javax.microedition.lcdui.Displayable screen,
javax.microedition.lcdui.Display display)
screen - the screen that should be shown nextdisplay - the display used for showing the screenpublic boolean hasPrevious()
getPrevious(),
showPrevious(Display)public boolean showPrevious(javax.microedition.lcdui.Display display)
display - the display used for showing the screen
hasPrevious(),
getPrevious()public javax.microedition.lcdui.Displayable getPrevious()
hasPrevious(),
showPrevious(Display),
getCurrent()public javax.microedition.lcdui.Displayable getCurrent()
public int getHistorySize()
public void clearHistory()
public void popHistory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||