|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopointng.ui.syncpeer.AbstractEchoPointPeer
echopointng.ui.syncpeer.AbstractEchoPointContainerPeer
echopointng.ui.syncpeer.TreePeer
public class TreePeer
Synchronization peer for echopointng.Tree components.
| Field Summary | |
|---|---|
static Service |
TREE_SCRIPT_SERVICE
Service to provide supporting Tree JavaScript library. |
| Fields inherited from class echopointng.ui.syncpeer.AbstractEchoPointPeer |
|---|
DEFAULT_CONTAINER_TAG, partialUpdateManager |
| Fields inherited from interface nextapp.echo2.webcontainer.ActionProcessor |
|---|
ACTION_NAME, ACTION_VALUE |
| Constructor Summary | |
|---|---|
TreePeer()
|
|
| Method Summary | |
|---|---|
void |
processAction(ContainerInstance ci,
Component component,
org.w3c.dom.Element actionElement)
The events can be expansion or contraction events as well as selection events |
void |
renderAdd(RenderContext rc,
ServerComponentUpdate update,
java.lang.String targetId,
Component component)
The TablePeer now has the ability to update only the tree node rows that have changed. |
void |
renderHtml(RenderContext rc,
ServerComponentUpdate update,
org.w3c.dom.Node parentNode,
Component component)
This sets up the EchoPoint RenderingContext helper and then calls the abstract renderHtml method. |
void |
renderHtml(RenderingContext rc,
org.w3c.dom.Node parent,
Component component)
This is the rendering method you must implement if you are to use AbstractEchoPointPeer. |
boolean |
renderUpdate(RenderContext rc,
ServerComponentUpdate update,
java.lang.String targetId)
The TablePeer now has the ability to update only the tree node rows that have changed. |
| Methods inherited from class echopointng.ui.syncpeer.AbstractEchoPointContainerPeer |
|---|
getContainerId |
| Methods inherited from class echopointng.ui.syncpeer.AbstractEchoPointPeer |
|---|
disposeRenderState, renderDispose, renderReplaceableChild, renderUpdateAddChildren, renderUpdateBaseImpl, renderUpdateRemoveChildren, retreiveRenderState, storeRenderState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Service TREE_SCRIPT_SERVICE
| Constructor Detail |
|---|
public TreePeer()
| Method Detail |
|---|
public void renderHtml(RenderContext rc,
ServerComponentUpdate update,
org.w3c.dom.Node parentNode,
Component component)
renderHtml in interface DomUpdateSupportrenderHtml in class AbstractEchoPointPeerrc - the relevant RenderContextupdate - the ServerComponentUpdate for which this
rendering is being performedparentNode - the parent DOM node to which this child should
add HTML codecomponent - the Component to be renderedDomUpdateSupport.renderHtml(nextapp.echo2.webcontainer.RenderContext,
nextapp.echo2.app.update.ServerComponentUpdate, org.w3c.dom.Node,
nextapp.echo2.app.Component)
public void renderHtml(RenderingContext rc,
org.w3c.dom.Node parent,
Component component)
AbstractEchoPointPeerAbstractEchoPointPeer.
Its a simpler wrapper for the standard one but provides some neato setup services that would otherwise be repeated over and over again.
Note the use of RenderingContext object instead of the standard Echo RenderContext as this provides more rich code facilities.
renderHtml in class AbstractEchoPointPeerrc - -
the RenderingContext to useparent - -
the parent Node to put content intocomponent - -
the component in questionAbstractEchoPointPeer.renderHtml(echopointng.ui.util.RenderingContext,
Node, nextapp.echo2.app.Component)
public void renderAdd(RenderContext rc,
ServerComponentUpdate update,
java.lang.String targetId,
Component component)
renderAdd in interface ComponentSynchronizePeerrenderAdd in class AbstractEchoPointPeerrc - the relevant RenderContextupdate - the ServerComponentUpdate for which this
operation is being performedtargetId - the id of the HTML element in which the component's
HTML output should be renderedcomponent - the component to be rendered (this component must
be of a type supported by this synchronization peer).AbstractEchoPointPeer.renderAdd(nextapp.echo2.webcontainer.RenderContext,
nextapp.echo2.app.update.ServerComponentUpdate, java.lang.String,
nextapp.echo2.app.Component)
public boolean renderUpdate(RenderContext rc,
ServerComponentUpdate update,
java.lang.String targetId)
renderUpdate in interface ComponentSynchronizePeerrenderUpdate in class AbstractEchoPointContainerPeerrc - the relevant RenderContextupdate - the ServerComponentUpdate for which this
operation is being performedtargetId - the id of the HTML element inside of which the
components HTML code should be rendered.
AbstractEchoPointContainerPeer.renderUpdate(nextapp.echo2.webcontainer.RenderContext,
nextapp.echo2.app.update.ServerComponentUpdate, java.lang.String)
public void processAction(ContainerInstance ci,
Component component,
org.w3c.dom.Element actionElement)
processAction in interface ActionProcessorci - the relevant ContainerInstancecomponent - the target ComponentactionElement - the XML element describing the action
(the name and value of the action may be obtained
by querying the ACTION_NAME and
ACTION_VALUE attribute values.ActionProcessor.processAction(nextapp.echo2.webcontainer.ContainerInstance,
nextapp.echo2.app.Component, org.w3c.dom.Element)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||