|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.storm.PseudoHistoryManager
| Field Summary | |
protected StormBase |
base
|
| Constructor Summary | |
PseudoHistoryManager(StormBase sb)
|
|
| Method Summary | |
HistoryEntry |
addToBackHistory(String viewportId,
String url,
int index)
Adds an entry to the back history. |
HistoryEntry |
addToForwardHistory(String viewportId,
String url,
int index)
Adds an entry to the forward history. |
boolean |
canGoBack(String viewportId)
Checks whether the specified Viewport has a backward history. |
boolean |
canGoForward(String viewportId)
Checks whether the specified Viewport has a forward history. |
void |
clearAllHistories()
Clears all the history entries. |
void |
clearHistoryForViewport(Viewport v)
Clears the history for the specified Viewport. |
HistoryEntry[] |
do_getEntries(String viewportId,
Hashtable hash)
|
HistoryEntry[] |
getBackEntries(String viewportId)
Returns the whole back history for the specified Viewport. |
String[] |
getBackHistory(String viewportId)
Returns the whole back history for the specified Viewport. |
int |
getBackHistorySize()
Returns the limit for the back history size for all Viewports. |
String |
getCurrentLocation(String viewportId)
Returns the current location (url) for the specified Viewport. |
HistoryEntry[] |
getForwardEntries(String viewportId)
Returns the whole forward history for the specified Viewport. |
String[] |
getForwardHistory(String viewportId)
Returns the whole forward history for the specified Viewport. |
int |
getForwardHistorySize()
Returns the limit for the back history size for all Viewports. |
void |
goBack(String viewportId)
Displays the previous page in the backward history for the specified Viewport. |
void |
goBack(String viewportId,
int leap)
Displays the page in the backward history for the specified Viewport and leap. |
void |
goForward(String viewportId)
Displays the previous page in the forward history for the specified Viewport. |
void |
goForward(String viewportId,
int leap)
Displays the page in the forward history for the specified Viewport and leap. |
void |
goingSomewhere(ContentLoader cl,
String viewportId)
Makes sure that histories are updated if a location is rendered without the use of recorded histories, e.g. |
void |
propertyChange(PropertyChangeEvent event)
|
void |
reload(String viewportId)
Reloads the current page for the specified Viewport. |
void |
setBackHistorySize(int limit)
Sets the limit for the back history size for all Viewports. |
void |
setForwardHistorySize(int limit)
Sets the limit for the forward history size for all Viewports. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected StormBase base
| Constructor Detail |
public PseudoHistoryManager(StormBase sb)
| Method Detail |
public void setBackHistorySize(int limit)
HistoryManagerViewports.
setBackHistorySize in interface HistoryManagerlimit - the maximum amount of URLs saved for each Viewport.public void setForwardHistorySize(int limit)
HistoryManagerViewports.
setForwardHistorySize in interface HistoryManagerlimit - the maximum amount of URLs saved for each Viewport.public int getBackHistorySize()
HistoryManagerViewports.
getBackHistorySize in interface HistoryManagerViewport.public int getForwardHistorySize()
HistoryManagerViewports.
getForwardHistorySize in interface HistoryManagerViewport.
public HistoryEntry[] do_getEntries(String viewportId,
Hashtable hash)
public HistoryEntry[] getBackEntries(String viewportId)
HistoryManagerViewport.
getBackEntries in interface HistoryManagerviewportId - the id of the Viewport in question.
Strings.public HistoryEntry[] getForwardEntries(String viewportId)
HistoryManagerViewport.
getForwardEntries in interface HistoryManagerviewportId - the id of the Viewport in question.
Strings.public String[] getForwardHistory(String viewportId)
HistoryManagerViewport.
getForwardHistory in interface HistoryManagerviewportId - the id of the Viewport in question.
Strings.public String[] getBackHistory(String viewportId)
HistoryManagerViewport.
getBackHistory in interface HistoryManagerviewportId - the id of the Viewport in question.
Strings.
public HistoryEntry addToBackHistory(String viewportId,
String url,
int index)
HistoryManager
addToBackHistory in interface HistoryManagerviewportId - the id of the Viewport in question.url - the URL to add to the hostory.index - the index to add the URL at; 0 is first.
public HistoryEntry addToForwardHistory(String viewportId,
String url,
int index)
HistoryManager
addToForwardHistory in interface HistoryManagerviewportId - the id of the Viewport in question.url - the URL to add to the hostory.index - the index to add the URL at; 0 is first.
public void clearAllHistories()
HistoryManager
clearAllHistories in interface HistoryManagerpublic void clearHistoryForViewport(Viewport v)
HistoryManager
clearHistoryForViewport in interface HistoryManagerpublic String getCurrentLocation(String viewportId)
HistoryManagerViewport.
getCurrentLocation in interface HistoryManagerviewportId - the id of the Viewport in question.
String.public void reload(String viewportId)
HistoryManagerViewport.
reload in interface HistoryManagerviewportId - the id of the Viewport in question.
public void goBack(String viewportId,
int leap)
HistoryManagerViewport and leap. The leap is the number of pages you want
to go back with just one method call. The correct url is found and the appropriate methods in
StormBase are called to render the content.
goBack in interface HistoryManagerviewportId - the id of the Viewport in question.leap - the number of pages to go back.public void goBack(String viewportId)
HistoryManagerViewport. This method is called by the deprectaed goBack()
method in StormBase, and calls the appropriate methods in
StormBase to render the content.
goBack in interface HistoryManagerviewportId - the id of the Viewport in question.public void goForward(String viewportId)
HistoryManagerViewport. This method is called by the deprectaed goForward()
method in StormBase, and calls the appropriate methods in
StormBase to render the content.
goForward in interface HistoryManagerviewportId - the id of the Viewport in question.
public void goForward(String viewportId,
int leap)
HistoryManagerViewport and leap. The leap is the number of pages you want
to go forward with just one method call. The correct url is found and the appropriate methods in
StormBase are called to render the content.
goForward in interface HistoryManagerviewportId - the id of the Viewport in question.leap - the number of pages to go forward.
public void goingSomewhere(ContentLoader cl,
String viewportId)
HistoryManagerStormBase.
goingSomewhere in interface HistoryManagerviewportId - the id of the Viewport in question.public boolean canGoBack(String viewportId)
HistoryManagerViewport has a backward history.
canGoBack in interface HistoryManagerviewportId - the id of the Viewport in question.
true if the Viewport has a forward history, false if not.public boolean canGoForward(String viewportId)
HistoryManagerViewport has a forward history.
canGoForward in interface HistoryManagerviewportId - the id of the Viewport in question.
true if the Viewport has a forward history, false if not.public void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||