TransitionContainer
.@Deprecated public class HistorizedNavigator extends Navigator
Modifier and Type | Field and Description |
---|---|
protected PageStack |
pageStack
Deprecated.
The stack of pages.
|
EMPTY_ELEMENT_ARRAY
Constructor and Description |
---|
HistorizedNavigator()
Deprecated.
Creates a historized navigator with a class name URL resolver and a pages stack with references.
|
HistorizedNavigator(URLResolver urlResolver,
PageStack pagesStack)
Deprecated.
Creates a historized navigator.
|
Modifier and Type | Method and Description |
---|---|
void |
back()
Deprecated.
Shows the previous page.
|
void |
backUntil(java.lang.String url)
Deprecated.
Shows the last page shown with a URL.
|
boolean |
canGoBackward()
Deprecated.
Checks whether or not there are pages in the history.
|
void |
clearHistory()
Deprecated.
Clears navigation history.
|
int |
getHistorySize()
Deprecated.
Gets the navigation history size.
|
protected Page |
getPreviousPage()
Deprecated.
Gets the previous page.
|
protected void |
goBackward()
Deprecated.
Shows the previous page.
|
void |
reload()
Deprecated.
Reloads the current page.
|
void |
show(Page page)
Deprecated.
Shows a new page.
|
void |
show(java.lang.String url)
Deprecated.
Shows a new page.
|
add, canGoForward, getContentBounds, getCurrentPage, getNextPage, getTransitionManager, goForward, handleEvent, remove, renderContent, setBoundsContent, setChildBounds, setCurrentPage, setTransitionManager, show, updateCurrentPage, validateContent
contains, isAdjustedToChild, setAdjustedToChild, setWidget
addClassSelector, gainFocus, getAttribute, getChild, getChildrenCount, getChildrenElements, getParentElement, getStyle, hasClassSelector, isInState, isTransparent, lostFocus, mergeStyle, removeAllClassSelectors, removeClassSelector, removeInstanceStyle, render, setBounds, setClassSelectors, setEnabled, updateStyle, updateStyleOnly, validate
getFocus, getFocusIndex, getNext, getWidget, getWidgetAt, getWidgets, getWidgetsCount, hideNotify, iterator, removeAllWidgets, requestFocus, requestFocus, requestFocusFrom, showNotify
getAbsoluteX, getAbsoluteX, getAbsoluteY, getAbsoluteY, getEventHandler, getHeight, getPanel, getParent, getPreferredHeight, getPreferredWidth, getRelativeX, getRelativeY, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isShown, isValid, isVisible, repaint, repaint, revalidate, revalidateSubTree, setEventHandler, setLocation, setPreferredSize, setSize, setVisible
protected final PageStack pageStack
public HistorizedNavigator()
ClassNameURLResolver
,
PageStackReference
public HistorizedNavigator(URLResolver urlResolver, PageStack pagesStack)
urlResolver
- the URL resolver.pagesStack
- the pages stack.public void show(java.lang.String url)
url
- the URL of the page to show.public void show(Page page)
page
- the page to show.public void reload()
A new page with the same URL is created and replaces the current one.
public boolean canGoBackward()
The navigation history can be empty if the current page is the first one shown or if the history has just been cleaned.
canGoBackward
in class Navigator
true
if the navigation history is not empty, false
otherwise.clearHistory()
public void back()
If the navigation history is empty, nothing is done.
canGoBackward()
public void backUntil(java.lang.String url)
url
- the URL to search.PageStack.popUntil(String)
public int getHistorySize()
PageStack.size()
public void clearHistory()
PageStack.removeAll()
protected Page getPreviousPage()
Navigator
getPreviousPage
in class Navigator
null
if cannot go backward.protected void goBackward()
Navigator
Nothing is done if cannot go backward.
goBackward
in class Navigator