|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
net.sf.jzeno.echo.components.CustomComponent
net.sf.jzeno.echo.components.NavigationHistory
public class NavigationHistory
Navigation history component. This component shows the last 4 screens the user accessed. By clicking on one of the names, he can go back to that screen. Also an application developer can use EchoSupport.back() to navigate to the previous screen.
Application developers can also save some application state of their screens by overriding Screen.saveHistoryState(). When a screen is recalled, Screen.loadHistoryState() is called to allow the application to re-synchronize itself with this saved state.
Field Summary |
---|
Constructor Summary | |
---|---|
NavigationHistory()
|
Method Summary | |
---|---|
static void |
addHistoryItem(java.lang.String displayLabel,
java.lang.Class screenClazz)
Add a history item to the trail. |
void |
applyContext()
|
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
static Screen |
back()
|
static Screen |
backToScreen(java.lang.Class screenClazz)
|
static void |
clear()
|
Color |
getBackground()
Returns the background color of the component. |
static java.lang.Class |
getPreviousScreenClass()
|
void |
linkPressed(PropertyComponent source)
Event handler for when a link is pressed. |
void |
preRender()
Make changes to the visual representation of this component before Echo starts rendering the component. |
void |
setBackground(Color background)
Sets the background color of the component. |
static void |
updateHistoryState()
Update the history state. |
Methods inherited from class net.sf.jzeno.echo.components.CustomComponent |
---|
addValidator, fireActionEvent, fireActionEvent, fireActionEvent, getActionCommand, getBean, getBeanClass, getDecorator, getNullObject, getProperty, getValidationErrors, getValidators, getValue, isBound, isMarkedInvalid, isReadOnly, isRequired, isValid, markInvalid, markValid, rebind, removeValidator, setActionCommand, setBean, setBeanClass, setDecorator, setNullObject, setProperty, setReadOnly, setRequired, setValue, traceValue, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NavigationHistory()
Method Detail |
---|
public void preRender()
PropertyComponent
Make changes to the visual representation of this component before Echo starts rendering the component.
Do not modify any bound javabeans in this method, as the changes to these will not be reflected properly on the screen.
preRender
in interface PropertyComponent
preRender
in class CustomComponent
public void linkPressed(PropertyComponent source)
source
- public static Screen back()
public static java.lang.Class getPreviousScreenClass()
public static Screen backToScreen(java.lang.Class screenClazz)
public static void addHistoryItem(java.lang.String displayLabel, java.lang.Class screenClazz)
displayLabel
- screenClazz
- public static void updateHistoryState()
public Color getBackground()
Component
getBackground
in interface Component
getBackground
in class AbstractComponent
public void setBackground(Color background)
Component
setBackground
in interface Component
setBackground
in class AbstractComponent
background
- The new background color of the component.public static void clear()
public void applyStyle(Style style)
Component
Style
object. The version of this method in Component
will set
foreground and background colors and the font from the style if they are
present. Components should override this method if they allow more
properties to be set from a style object, and should call
super.applyStyle() if necessary.
applyStyle
in interface Component
applyStyle
in class AbstractComponent
style
- The style object from which to retrieve properties for this
Component
.public void applyContext()
applyContext
in interface Precreation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |