|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
net.xoetrope.xui.XPage
public class XPage
A basic unit for building applications. XPage integrates with page and event management facilities provided by XUI. 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 XPageDisplay interface implemented by XApplet and invoked by the XPage manager. Pages can be constructed directly or via the XuiBuilder. 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 XUI 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 XPage class is little more than a shell and many of its methods are implemented by the XPageHelper 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) Xoetrope Ltd., 2002-2006
License: see license.txt
$Revision: 2.33 $
| Nested Class Summary | |
|---|---|
static interface |
XPage.IXDialog
A bare interface used to distinguish dialogs from normal pages and checked by the PageManager when loading pages |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
ACTIVATED
The page has been activated |
protected WidgetAdapter |
adapter
The component adapter for the current widget set. |
static java.lang.String |
ANNOTATEDIMAGE
Deprecated. merged with imagemap |
protected static boolean |
antiAlias
The antialias member controls use of antialiasing. |
static int |
BORDER_LAYOUT
ID for a border layout |
static int |
BOX_LAYOUT
This type of layout simulates the Swing layout by using a GridLayout such that the layoutStyle attribute indicates vertical or horizontal layout. |
static java.lang.String |
BUTTON
Tag for a push button |
static int |
CARD_LAYOUT
ID for a card layout |
static java.lang.String |
CHECK
Tag for a checkbox |
static int |
COLUMN_LAYOUT
ColumnLayout ID |
static java.lang.String |
COMBO
Tag for a combo box or drop down list |
protected XStyleFactory |
componentFactory
Deprecated. use getComponentFactory() instead. |
static int |
CREATED
The page has been created |
static int |
DEACTIVATED
The page has been deactivated |
static int |
DISCARDED
The page has been discarded |
static int |
DISPLAYED
The page has been activated and displayed |
static java.lang.String |
EDIT
A single text editing field |
static int |
FLOW_LAYOUT
ID for a flow layout |
static int |
GRID_LAYOUT
ID for a grid layout |
static int |
GRIDBAG_LAYOUT
ID for a grid bag layout |
static java.lang.String |
GROUP
Tag for a radio button group |
static int |
GUIDE_LAYOUT
GuideLayout ID |
static java.lang.String |
HOTSPOTIMAGE
Tag for a hotspot image |
static java.lang.String |
IMAGE
Tag for an image component |
static java.lang.String |
IMAGEMAP
Tag for an image map |
static java.lang.String |
LABEL
Tag for a label component |
static int |
LAYER_LAYOUT
LayerLayout ID |
static java.lang.String |
LIST
Tag for a list box |
static int |
LOADED
The page has been loaded |
static java.lang.String |
MENU
Tag for a menu |
static java.lang.String |
MENUBAR
Tag for a menubar |
static java.lang.String |
MENUITEM
Tag for a menu item |
static java.lang.String |
METACONTENT
Tag for Tagged text |
static int |
NULL_LAYOUT
ID for an NULL layout |
protected XPageHelper |
pageHelper
The helper class that implements many functions on behalf of the page, particularly the widget specific operations and those operations specified by the PageSupport interface. |
protected XPageManager |
pageMgr
The page manager for the current project, the page manager controls the update and display of pages. |
static java.lang.String |
PANEL
Tag for a panel |
static java.lang.String |
PASSWORD
Tag for a password edit field |
protected XProject |
project
The owner project. |
static java.lang.String |
RADIO
Tag for a radio button |
protected XModel |
rootModel
The root model of the current project. |
static int |
SCALE_LAYOUT
ScaleLayout ID |
static java.lang.String |
SCROLLABLEMETACONTENT
Tag for a Scrollable tagged text |
static java.lang.String |
SCROLLPANE
Tag for a scroll pane |
static java.lang.String |
SPLITPANE
Tag for a splitter |
static int |
SPRING_LAYOUT
SpringLayout ID |
static java.lang.String |
TABLE
Tag for a table component |
static java.lang.String |
TABPANEL
Tag for a tabbed panel |
static java.lang.String |
TEXTAREA
Tag for a multiline text field |
static java.lang.String |
UNKNOWN
Tag for an unknown component type (not one of the built-in types) |
static int |
UNKNOWN_PAGE_STATE
The page state is unknown |
static java.lang.String |
WMF
Tag for a vector image |
static java.lang.String |
XUI_AWT_PACKAGE
The package name for the built-in AWT component |
static java.lang.String |
XUI_HTML_PACKAGE
The package name for the built-in HTML components |
static java.lang.String |
XUI_SWING_PACKAGE
The package name for the built-in Swing component |
static java.lang.String |
XUI_SWT_PACKAGE
The package name for the built-in SWT components |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
XPage()
Constructs an empty page, setting up the references to projects, data models and so on plus setting up a component factory to help instantiate the page's children. |
|
| Method Summary | |
|---|---|
int |
accumulateMessages(boolean start,
int level)
Informs the handler when a page validation is starting or stopping. |
void |
addBinding(XDataBinding b)
Add a binding of a component to the data model. |
void |
addHandler(java.lang.Object comp,
long eventType,
java.lang.String methodName)
Adds an event handler. |
void |
addHandler(java.lang.Object srcObj,
java.lang.String methodName,
java.lang.String adderMethod,
java.lang.String listenerInterface,
long eventMask,
java.lang.Object listener)
Adds a handler for action events |
void |
addListener(java.lang.Object comp,
java.lang.String listenerName,
java.lang.String argType,
java.lang.Object listener)
Adds a listener for an event type. |
void |
addNotify()
Repaint the component once it has been created |
XValidator |
addValidation(java.lang.Object comp,
java.lang.String validationName)
Adds a validation to this page. |
XValidator |
addValidation(java.lang.Object comp,
java.lang.String validationName,
java.lang.String method)
Adds a validation to this page. |
XValidator |
addValidation(java.lang.Object comp,
java.lang.String validationName,
java.lang.String method,
int mask,
XmlElement pageEle)
Adds a validation to this page. |
int |
checkValidations()
Check all validations for this page. |
void |
clearValidations()
Reset/removes all validations |
java.lang.Object |
evaluateAttribute(java.lang.String attribValue)
Evaluates an attribute value. |
java.lang.String |
evaluatePath(java.lang.String path)
Evaluates a path (potentially) containing a method call |
java.lang.Object |
findComponent(java.lang.Object container,
java.lang.String name)
Find a named component in the container. |
java.lang.Object |
findComponent(java.lang.String name)
Find a named component in the container. |
java.lang.Object |
getAttribute(java.lang.String attribName)
Gets the value of an attribute of this page |
java.lang.Object |
getAttribute(java.lang.String attribName,
java.lang.String compName)
Gets the value of an attribute of the named component. |
java.lang.Object |
getAttributes()
Gets the table of attributes used by this page. |
XDataBinding |
getBinding(java.lang.Object targetComp)
Find the data binding associated with a component |
XDataBinding |
getBinding(java.lang.String targetPath)
Find the data binding associated with a data source path |
java.util.Vector |
getBindings()
Get the data bindings |
XComponentFactory |
getComponentFactory()
Get the component factory instance being used by this page. |
java.lang.String |
getComponentName(java.lang.Object comp)
Get a name for a component. |
java.util.EventObject |
getCurrentEvent()
Get the current event. |
XDataBindingContext |
getDataBindingContext()
Get the XDataBindingContext object bound to this page |
java.lang.Object |
getEventAttribute(java.lang.Object c,
java.lang.String attribName)
Gets an attribute value |
XuiEventHandler |
getEventHandler()
Get the current event handler. |
java.lang.String |
getExtension()
Get the file extension of this page. |
java.awt.Graphics |
getGraphics()
Customizes the graphics context by adding anti-aliasing rendering hints if the start-up parameter AntiAlias=true |
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 |
XProject |
getProject()
Get the current project, the project that owns this page |
int |
getStatus()
Get the page status, indicating whther the page has been created, activated and so on |
XValidationHandler |
getValidationHandler()
Gets the validation handler |
boolean |
handleEventHandlerException(XProject project,
java.lang.Object container,
java.lang.Throwable error)
Handle an exception during the invocation of a page's event handler. |
boolean |
handleException(java.lang.Object comp,
java.lang.Exception ex,
java.lang.Object validator)
A method called when a validation exeption has been trapped. |
boolean |
isFocusChangeSuppressed()
Check the focus change status. |
void |
layout()
Deprecated. As of JDK version 1.1, replaced by doLayout(). |
void |
pageActivated()
A method called once the page has been created and initialized but just prior to display. |
void |
pageCreated()
A method called once the page has been created but not yet initialized. |
void |
pageDeactivated()
Called whenver the page is about to loose scope and be hidden. |
void |
paint(java.awt.Graphics g)
Paint the background of this component with the background color |
void |
paintSuper(java.lang.Object g)
Get the super class to paint the background |
void |
removeBinding(XDataBinding b)
Remove a binding of a component to the data model. |
void |
saveBoundComponentValues()
Save the component values to the model |
void |
setAttribute(java.lang.String attribName,
java.lang.String compName,
java.lang.Object attribValue)
Set a named attributes. |
void |
setClearPage(boolean value)
Modify the clearPage flag. |
void |
setComponentFactory(XStyleFactory factory)
Set the component factory instance being used by this page when constructing new pages. |
void |
setEventHandler(XuiEventHandler eh)
Set the current event handler |
void |
setExceptionHandler(XExceptionHandler eh)
Set the validation exception handler called when a validation exception is trapped. |
void |
setExtension(java.lang.String ext)
Get the file extension of this page |
void |
setLayout(java.lang.Object obj)
Set the layout manager |
void |
setPageName(java.lang.String name)
Get the name of this page |
void |
setStatus(int newStatus)
Set the page status |
void |
setValidationFactory(XValidationFactory vf)
Sets the factory used to create XValidator objects |
void |
showComponents(java.lang.Object container,
boolean visible,
int recursionLevel)
Show or hide the components. |
void |
showHandCursor(java.lang.Object comp)
Show the hand/pointer cursor for this component. |
void |
showMessage(java.lang.Object parent,
java.lang.String title,
java.lang.String msg)
Shows a modal message box. |
void |
showMessage(java.lang.String title,
java.lang.String msg)
Shows a modal message box. |
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. |
java.lang.String |
stripAttributeValues(java.lang.String path)
Remove the attribute paths from a path e.g. remove @value=ignore |
java.lang.String |
translate(java.lang.String key)
Translate a string by looking it up in the current resource bundle. |
void |
update(java.awt.Graphics g)
Overrides the update method so as to allow the suppression of the default clearing of the background. |
void |
updateBinding(XDataBinding binding)
Update the bound model node for the binding. |
void |
updateBindings()
Iterate all of the bindings in the page to reflect the model state. |
void |
updateBoundComponentValues()
Update the UI components with values from the model |
static void |
updateChildLayouts(java.awt.Container parent)
Update any children or children of children that have a layout. |
int |
validationHandler()
Invoke the validators for the last event. |
boolean |
wasMouseClicked()
A utility method used to determine if the last event corrseponds to a mouse click. |
boolean |
wasMouseDoubleClicked()
A utility method used to determine if the last event corrseponds to a mouse double click. |
boolean |
wasMouseRightClicked()
A utility method used to determine if the last event corrseponds to a mouse right click. |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.xoetrope.xui.PageSupport |
|---|
doLayout, getName, setBackground, setLocation, setName, setSize, setVisible, validate |
| Field Detail |
|---|
public static final java.lang.String XUI_AWT_PACKAGE
public static final java.lang.String XUI_SWING_PACKAGE
public static final java.lang.String XUI_SWT_PACKAGE
public static final java.lang.String XUI_HTML_PACKAGE
public static final java.lang.String UNKNOWN
public static final java.lang.String PANEL
public static final java.lang.String LABEL
public static final java.lang.String RADIO
public static final java.lang.String CHECK
public static final java.lang.String COMBO
public static final java.lang.String LIST
public static final java.lang.String IMAGE
public static final java.lang.String EDIT
public static final java.lang.String BUTTON
public static final java.lang.String METACONTENT
public static final java.lang.String GROUP
public static final java.lang.String SCROLLPANE
public static final java.lang.String SCROLLABLEMETACONTENT
public static final java.lang.String HOTSPOTIMAGE
public static final java.lang.String TABLE
public static final java.lang.String WMF
public static final java.lang.String ANNOTATEDIMAGE
public static final java.lang.String MENUBAR
public static final java.lang.String MENU
public static final java.lang.String MENUITEM
public static final java.lang.String TEXTAREA
public static final java.lang.String PASSWORD
public static final java.lang.String IMAGEMAP
public static final java.lang.String TABPANEL
public static final java.lang.String SPLITPANE
public static final int NULL_LAYOUT
public static final int BORDER_LAYOUT
public static final int FLOW_LAYOUT
public static final int CARD_LAYOUT
public static final int GRID_LAYOUT
public static final int GRIDBAG_LAYOUT
public static final int BOX_LAYOUT
public static final int SPRING_LAYOUT
public static final int SCALE_LAYOUT
public static final int GUIDE_LAYOUT
public static final int LAYER_LAYOUT
public static final int COLUMN_LAYOUT
public static final int UNKNOWN_PAGE_STATE
public static final int LOADED
public static final int CREATED
public static final int ACTIVATED
public static final int DISPLAYED
public static final int DEACTIVATED
public static final int DISCARDED
protected XProject project
protected XPageManager pageMgr
protected XModel rootModel
protected WidgetAdapter adapter
protected XPageHelper pageHelper
protected XStyleFactory componentFactory
protected static boolean antiAlias
| Constructor Detail |
|---|
public XPage()
| Method Detail |
|---|
public java.lang.String getPageName()
public void setPageName(java.lang.String name)
name - the page namepublic XProject getProject()
getProject in interface PageSupportpublic java.lang.String getExtension()
getExtension in interface PageSupportpublic void setExtension(java.lang.String ext)
setExtension in interface PageSupportext - the page file extensionpublic void update(java.awt.Graphics g)
update in class java.awt.Containerg - the graphics contextpublic void paintSuper(java.lang.Object g)
g - the graphics contextpublic void paint(java.awt.Graphics g)
paint in class java.awt.Containerg - the graphics contextpublic void addNotify()
addNotify in class java.awt.Containerpublic void setLayout(java.lang.Object obj)
setLayout in interface PageSupportobj - the layout managerpublic java.lang.Object getOwner()
getOwner in interface PageSupportpublic java.awt.Dimension getPageSize()
getPageSize in interface PageSupportpublic void setClearPage(boolean value)
setClearPage in interface PageSupportvalue - true to clearpublic java.awt.Graphics getGraphics()
getGraphics in class java.awt.Component
public void showComponents(java.lang.Object container,
boolean visible,
int recursionLevel)
showComponents in interface PageSupportrecursionLevel - the number of layers of recursion (occurs with nested panels)container - the container whose components are being modifiedvisible - the visibility flag, true to make the components visiblepublic java.lang.Object findComponent(java.lang.String name)
findComponent in interface PageSupportname - the name to locate
public java.lang.Object findComponent(java.lang.Object container,
java.lang.String name)
findComponent in interface PageSupportcontainer - the page or container to searchname - the name to locate
public void layout()
doLayout().
layout in class java.awt.Containerpublic static void updateChildLayouts(java.awt.Container parent)
parent - the container to be laid outpublic void setExceptionHandler(XExceptionHandler eh)
setExceptionHandler in interface PageSupporteh - the new event handler
public boolean handleException(java.lang.Object comp,
java.lang.Exception ex,
java.lang.Object validator)
handleException in interface XExceptionHandlerhandleException in interface PageSupportcomp - Component being validatedex - The exception causedvalidator - The validator being used to validate.
public boolean handleEventHandlerException(XProject project,
java.lang.Object container,
java.lang.Throwable error)
handleEventHandlerException in interface XExceptionHandlerhandleEventHandlerException in interface PageSupportproject - the current projectcontainer - the pageerror - the exception or error that was thrown
public void clearValidations()
clearValidations in interface PageSupportpublic int checkValidations()
checkValidations in interface PageSupport
public int accumulateMessages(boolean start,
int level)
accumulateMessages in interface XExceptionHandleraccumulateMessages in interface PageSupportstart - boolean to indicate whether the accumulation is started or stopped.level - int which indicates the most serious level of error encountered
public XValidator addValidation(java.lang.Object comp,
java.lang.String validationName,
java.lang.String method,
int mask,
XmlElement pageEle)
addValidation in interface PageSupportcomp - the component being validatedvalidationName - the name of the validation in the validation filemethod - the method used to get the component's value if anymask - the event mask used to filter the events that trigger the validationpageEle - the XML element which is declared in the page
public XValidator addValidation(java.lang.Object comp,
java.lang.String validationName,
java.lang.String method)
addValidation in interface PageSupportcomp - the component being validatedvalidationName - the name of the validation in the validation filemethod - the method used to get the component's value if any
public XValidator addValidation(java.lang.Object comp,
java.lang.String validationName)
addValidation in interface PageSupportcomp - the component being validatedvalidationName - the name of the validation in the validation file
public void setValidationFactory(XValidationFactory vf)
setValidationFactory in interface PageSupportvf - The validation factorypublic XValidationHandler getValidationHandler()
getValidationHandler in interface PageSupportpublic int validationHandler()
validationHandler in interface PageSupportpublic XuiEventHandler getEventHandler()
getEventHandler in interface PageSupportpublic void setEventHandler(XuiEventHandler eh)
setEventHandler in interface PageSupporteh - The event handlerpublic java.util.EventObject getCurrentEvent()
getCurrentEvent in interface PageSupport
public void addListener(java.lang.Object comp,
java.lang.String listenerName,
java.lang.String argType,
java.lang.Object listener)
addListener in interface PageSupportcomp - the component that fires eventslistenerName - the name of the listener interfaceargType - the listener argumentslistener - the listener implementation
public void addHandler(java.lang.Object comp,
long eventType,
java.lang.String methodName)
throws java.lang.Exception
addHandler in interface PageSupportcomp - the component that fires the eventeventType - the event ID/maskmethodName - the method to be invoked in response to the object
java.lang.Exception - The handler could not be found or addedpublic boolean isFocusChangeSuppressed()
isFocusChangeSuppressed in interface PageSupport
public void addHandler(java.lang.Object srcObj,
java.lang.String methodName,
java.lang.String adderMethod,
java.lang.String listenerInterface,
long eventMask,
java.lang.Object listener)
addHandler in interface PageSupportsrcObj - the menu item that fires the eventsmethodName - the method to be invoked in response to the action eventadderMethod - the adder method name e.g. addActionListenerlistenerInterface - the listener interface e.g. java.awt.event.ActionListenereventMask - the event mask e.g. AWTEvent.ACTION_EVENT_MASKlistener - the listener implementation, usually the page's this pointerActionListener,
ActionEventpublic boolean wasMouseClicked()
wasMouseClicked in interface PageSupportpublic boolean wasMouseDoubleClicked()
wasMouseDoubleClicked in interface PageSupportpublic boolean wasMouseRightClicked()
wasMouseRightClicked in interface PageSupportpublic void showHandCursor(java.lang.Object comp)
showHandCursor in interface PageSupportcomp - the componentpublic java.util.Vector getBindings()
getBindings in interface PageSupportpublic void addBinding(XDataBinding b)
addBinding in interface PageSupportb - the bindingpublic void removeBinding(XDataBinding b)
removeBinding in interface PageSupportb - the bindingpublic void updateBindings()
updateBindings in interface PageSupportpublic void updateBinding(XDataBinding binding)
updateBinding in interface PageSupportbinding - the binding to updatepublic void updateBoundComponentValues()
updateBoundComponentValues in interface PageSupportpublic void saveBoundComponentValues()
saveBoundComponentValues in interface PageSupportpublic XDataBindingContext getDataBindingContext()
public XDataBinding getBinding(java.lang.Object targetComp)
getBinding in interface PageSupporttargetComp - the component whose binding is required
public XDataBinding getBinding(java.lang.String targetPath)
getBinding in interface PageSupporttargetPath - the path to the bound model
public int getStatus()
getStatus in interface PageSupportpublic void setStatus(int newStatus)
setStatus in interface PageSupportnewStatus - the new page statuspublic void pageActivated()
pageActivated in interface PageSupportpublic void pageCreated()
pageCreated in interface PageSupportpublic void pageDeactivated()
pageDeactivated in interface PageSupport
public void setAttribute(java.lang.String attribName,
java.lang.String compName,
java.lang.Object attribValue)
Set a named attributes. The attributes are stored in a hashtable owned by the page. Derived classes may access the hashtable directly but the preferred method of access is the getAttribute method. Attributes are used by the XuiBuilder class for component attributes other than those it handles directly. The attributes can be thought of as component properties or extra data and need not be used directly by the component.
Attributes are stored using a key in the form attribName_compName or just the attribName if compName is null.
setAttribute in interface PageSupportattribName - the attribute namecompName - the component name or null if it is a page attributeattribValue - the attribute valuegetAttribute(java.lang.String)public java.lang.Object getAttribute(java.lang.String attribName)
getAttribute in interface PageSupportattribName - the name of the attribute
public java.lang.Object getAttribute(java.lang.String attribName,
java.lang.String compName)
getAttribute in interface PageSupportattribName - the name of the attributecompName - the component name
public java.lang.Object getAttributes()
public java.lang.String getComponentName(java.lang.Object comp)
getComponentName in interface PageSupportcomp - the component
public java.lang.Object getEventAttribute(java.lang.Object c,
java.lang.String attribName)
getEventAttribute in interface PageSupportc - the component whose attribute is being requestedattribName - the name of the attribute
public java.lang.Object evaluateAttribute(java.lang.String attribValue)
evaluateAttribute in interface PageSupportattribValue - the raw attribute value
public java.lang.String evaluatePath(java.lang.String path)
evaluatePath in interface PageSupportpath - the raw path
public java.lang.String stripAttributeValues(java.lang.String path)
stripAttributeValues in interface PageSupportpath - the path to strip
public XComponentFactory getComponentFactory()
getComponentFactory in interface PageSupportpublic void setComponentFactory(XStyleFactory factory)
setComponentFactory in interface PageSupportfactory - the component factorypublic java.lang.String translate(java.lang.String key)
translate in interface PageSupportkey - the resource bundle key
public void showMessage(java.lang.String title,
java.lang.String msg)
showMessage in interface PageSupporttitle - the message dialog titlemsg - the text of the message
public void showMessage(java.lang.Object parent,
java.lang.String title,
java.lang.String msg)
showMessage in interface PageSupportparent - the message dialog parenttitle - the message dialog titlemsg - the text of the messagepublic PageSupport showPage(java.lang.String className)
className - The name, without package info, of the page to be displayed
public 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
public PageSupport showPrevious()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||