|
|||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||||
See:
Description
| Interface Summary | |
| ContainerLifecycleObject | This interface provides containment-change callbacks to objects placed in application containers, including the MCO container. |
| Class Summary | |
| AbstractMco | AbstractMco is an optional base class for MCO classes. |
| Container | Houses objects associated with an application and provides
some lifecycle management and notification for objects that
implement the ContainerLifecycleObject interface. |
| McoContainer | McoContainer holds MCOs that are declared via XML, as well as MCOs that are added to the application programatically. |
Provides classes for creating and managing MCOs.
Intro to MCOs:
MCO stands for managed client object. An MCO is a Java object with a no argument constructor
that optinally extends AbstractMco. An MCO can be declare and configured in XML
or can be programatically added to an application at runtime.
An MCO can be used as an event-handler defined in XML or can be called via XML directly.
An MCO as an event handler:
<button onCommand="mco://myMco.doSomething()"/>
An MCO called directly from XML:
<mco:execute>myMco.doSomething()</execute>"
The MCO XML Reference contains the exact syntax for declaritive use of
MCOs, including initial declaration and configuration of properties, specifying MCOs
as event handlers, and invoking MCO methods in XML directly.
MCO Lifecycle Management:
Whenever an MCO is declared in XML, it replaces any MCO that has the same ID
as the MCO being added. This MCO being replaced is removed from the MCO container
and will have unload() and/or removedFromContainer()
called on it.
MCOs can be declared in MCOs as a group or as singular MCOs.
A singular MCO is considered a group of size one.
When a group is declared, the following operations are
performed in order:
McoContainer. From this point
forward the MCO can get the ClientSession by calling
McoContainer.getClientSessionFromMco(this) or if it extends AbstractMco
by calling getSession().McoContainer.addMco(). From this point
forward the MCO can get the ClientSession by calling
McoContainer.getClientSessionFromMco(this) or if it extends AbstractMco
by calling getSession().
unload() and/or removedFromContainer()
called on them.
<button text="Press Me" onCommand="mco://myMco.doSomething("hello", true,
5, 5.5, this.text,this)"/>
public void doSomething(String s, boolean b, int i, double d, String attribute,
Element e){...}
Document.getDomSynchronizationObject(). This includes
calls to XPath.
com.nexaweb.client.UiEventQueue, which operates similarly
to the SwingUtilities invocation methods like
invokeAndWait() and invokeLater().
|
|||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||||