TransitionContainer
.@Deprecated
public abstract class TransitionManager
extends java.lang.Object
Navigator
Constructor and Description |
---|
TransitionManager()
Deprecated.
Creates a transition manager.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPage(Page page)
Deprecated.
Adds a page in the navigation container.
|
protected abstract void |
animate(Page oldPage,
Page newPage,
boolean forward)
Deprecated.
Animates the transition between two pages of the navigation container.
|
protected boolean |
canGoBackward()
Deprecated.
Gets whether or not it is possible to go backward.
|
protected boolean |
canGoForward()
Deprecated.
Gets whether or not it is possible to go forward.
|
protected Rectangle |
getContentBounds()
Deprecated.
Gets the bounds of a child page.
|
protected Navigator |
getNavigator()
Deprecated.
Gets the navigator.
|
protected Page |
getNextPage()
Deprecated.
Gets the next page.
|
protected Page |
getPreviousPage()
Deprecated.
Gets the previous page.
|
protected void |
goBackward()
Deprecated.
Shows the previous page.
|
protected void |
goForward()
Deprecated.
Shows the next page.
|
protected boolean |
handleEvent(int event)
Deprecated.
Handles an event that occurs on the navigation container.
|
protected void |
removePage(Page page)
Deprecated.
Removes a page from the navigation container.
|
protected void |
render(ej.microui.display.GraphicsContext g,
Style style,
Rectangle bounds)
Deprecated.
Renders the content of the navigation container without the border, margin and padding specified in the style.
|
protected void |
setChildBounds(Page newPage)
Deprecated.
Sets the bounds of a new page.
|
protected void |
setCurrentPage(Page newPage)
Deprecated.
Sets the current page.
|
protected void |
show(Page newPage,
boolean forward)
Deprecated.
Shows a new page.
|
protected void |
startTransition()
Deprecated.
Notifies that the transition is started.
|
protected void |
stopTransition()
Deprecated.
Notifies that the transition is stopped.
|
public TransitionManager()
protected Navigator getNavigator()
protected void startTransition()
protected void stopTransition()
protected abstract void animate(Page oldPage, Page newPage, boolean forward)
oldPage
- the old page.newPage
- the new page.forward
- true
if going to a page that is after the current one, false
otherwise.protected void render(ej.microui.display.GraphicsContext g, Style style, Rectangle bounds)
Do nothing by default.
g
- the graphics context where to render the content of the renderable.style
- the style to use.bounds
- the remaining size to render the content.protected boolean handleEvent(int event)
event
- the event to handle.true
if the widget has consumed the event, false
otherwise.protected void addPage(Page page)
page
- the page to add.protected void removePage(Page page)
page
- the page to remove.protected void setCurrentPage(Page newPage)
newPage
- the new page.protected boolean canGoBackward()
true
if it is possible to go backward, false
otherwise.protected Page getPreviousPage()
null
if cannot go backward.protected void goBackward()
Nothing is done if cannot go backward.
protected boolean canGoForward()
true
if it is possible to go forward, false
otherwise.protected Page getNextPage()
null
if cannot go forward.protected void goForward()
Nothing is done if cannot go forward.
protected void setChildBounds(Page newPage)
newPage
- the new page.getContentBounds()
protected Rectangle getContentBounds()
protected void show(Page newPage, boolean forward)
newPage
- the new page to show.forward
- true
if going to a new page, false
if going back in the stack of pages.