|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Page
A basic unit for building applications. Page integrates with page and event management facilities provided by Aria. The page also provides a number of methods to help control the page lifecycle and many methods to manage the state of the user interface. Most application functionality within an application will be implemented in derivates of the page class, however this is not strictly necessary and the page can act as little more than a container for the user interface components.
Pages can be displayed using the PageDisplay interface implemented by Applet and invoked by the Page manager. Pages can be constructed directly or via the AriaBuilder. The page lifecycle also interaccts with the data bindings, triggering data updates and saving.
The page implements the PageSupport interface which abstracts many of the methods used by the Aria framework to interact with its notion of a page. Through the PageSupport interface the framework can interact with pages that are implement with Widget sets such as Swing and SWT which have different hierarchies and diffent means of instantiation.
The Page class is little more than a shell and many of its methods are implemented by the PageHelper class, the page delegates to an instance of the page helper. The page also defines a set of constants for common components, but the page and moreover the framework is not limited to just these components.
Copyright (c) Formaria Ltd., 2008
License: see license.txt
$Revision: 2.33 $
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.formaria.aria.PageSupport |
|---|
PageSupport.IDialog |
| Field Summary |
|---|
| Fields inherited from interface org.formaria.aria.PageSupport |
|---|
ACTIVATED, ANNOTATEDIMAGE, ARIA_AWT_PACKAGE, ARIA_HTML_PACKAGE, ARIA_SWING_PACKAGE, ARIA_SWT_PACKAGE, BORDER_LAYOUT, BOX_LAYOUT, BUTTON, CARD_LAYOUT, CHECK, COLUMN_LAYOUT, COMBO, CREATED, DEACTIVATED, DISCARDED, DISPLAYED, EDIT, FLOW_LAYOUT, GRID_LAYOUT, GRIDBAG_LAYOUT, GROUP, GUIDE_LAYOUT, HOTSPOTIMAGE, IMAGE, IMAGEMAP, LABEL, LAYER_LAYOUT, LIST, LOADED, MENU, MENUBAR, MENUITEM, METACONTENT, NULL_LAYOUT, PANEL, PASSWORD, RADIO, SCALE_LAYOUT, SCROLLABLEMETACONTENT, SCROLLPANE, SPLITPANE, SPRING_LAYOUT, TABLE, TABPANEL, TEXTAREA, UNKNOWN, UNKNOWN_PAGE_STATE, WMF |
| Method Summary | |
|---|---|
void |
addNestedPage(PageSupport ps)
Add a nested page reference |
java.lang.Object |
getOwner()
Get the parent |
java.lang.String |
getPageName()
Get the name of this page. |
java.awt.Dimension |
getPageSize()
Get the size of the page |
void |
paintSuper(java.lang.Object g)
Get the super class to paint the background |
void |
setPageName(java.lang.String name)
Get the name of this page |
PageSupport |
showPage(java.lang.String className)
Load and show a page. |
PageSupport |
showPage(java.lang.String className,
java.lang.String target)
Load and show a page and show it in a named target area. |
PageSupport |
showPrevious()
Show the previously displayed page. |
void |
update(java.awt.Graphics g)
Overrides the update method so as to allow the suppression of the default clearing of the background. |
| Methods inherited from interface org.formaria.aria.PersistentState |
|---|
restoreState, saveState |
| Method Detail |
|---|
java.lang.String getPageName()
void setPageName(java.lang.String name)
name - the page namevoid update(java.awt.Graphics g)
g - the graphics contextvoid paintSuper(java.lang.Object g)
g - the graphics contextjava.lang.Object getOwner()
getOwner in interface PageSupportjava.awt.Dimension getPageSize()
getPageSize in interface PageSupportPageSupport showPage(java.lang.String className)
className - The name, without package info, of the page to be displayed
PageSupport showPage(java.lang.String className,
java.lang.String target)
className - The name, without package info, of the page to be displayedtarget - the area to update
PageSupport showPrevious()
void addNestedPage(PageSupport ps)
addNestedPage in interface PageSupportps - the nested page
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||