|
|||||||||
| 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.PopUpPeer
public class PopUpPeer
PopUpPeer is the peer for PopUpPeer
| Field Summary | |
|---|---|
static Service |
POPUP_DEFAULT_TOGGLE_IMAGE
|
static Service |
POPUP_SERVICE
Service to provide supporting JavaScript library. |
| Fields inherited from class echopointng.ui.syncpeer.AbstractEchoPointPeer |
|---|
DEFAULT_CONTAINER_TAG, partialUpdateManager |
| Fields inherited from interface nextapp.echo2.webcontainer.PropertyUpdateProcessor |
|---|
PROPERTY_NAME, PROPERTY_VALUE |
| Constructor Summary | |
|---|---|
PopUpPeer()
|
|
| Method Summary | |
|---|---|
protected void |
createDisposeDirective(ServerMessage serverMessage,
Component component)
Renders a directive to the outgoing ServerMessage to
dispose the state of a PopUp, performing tasks such as deregistering
event listeners on the client and deleting its JS object. |
protected void |
createInitDirective(RenderingContext rc,
Component component,
Style fallbackStyle)
Renders a directive to the outgoing ServerMessage to
initialize the state of a PopUp, performing tasks such as registering
event listeners on the client and creating the EPMI JS object. |
void |
processPropertyUpdate(ContainerInstance ci,
Component component,
org.w3c.dom.Element propertyElement)
Notifies the ComponentSynchronizePeer that a client property
update has occurred. |
protected org.w3c.dom.Element |
renderBox(RenderingContext rc,
Component component,
Style fallbackStyle)
This is called to render the popup floating box. |
void |
renderDispose(RenderContext rc,
ServerComponentUpdate update,
Component component)
Removes any render state that is associated with the component. |
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)
This looks for children with updated layour data or updated properties on the peer's component and if there are any, it removes and redraws the entire peer otherwise it just replaces the children and the redraws them. |
| Methods inherited from class echopointng.ui.syncpeer.AbstractEchoPointContainerPeer |
|---|
getContainerId |
| Methods inherited from class echopointng.ui.syncpeer.AbstractEchoPointPeer |
|---|
disposeRenderState, renderAdd, renderHtml, 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 POPUP_DEFAULT_TOGGLE_IMAGE
public static final Service POPUP_SERVICE
| Constructor Detail |
|---|
public PopUpPeer()
| Method Detail |
|---|
protected void createDisposeDirective(ServerMessage serverMessage,
Component component)
ServerMessage to
dispose the state of a PopUp, performing tasks such as deregistering
event listeners on the client and deleting its JS object.
protected void createInitDirective(RenderingContext rc,
Component component,
Style fallbackStyle)
ServerMessage to
initialize the state of a PopUp, performing tasks such as registering
event listeners on the client and creating the EPMI JS object.
public void processPropertyUpdate(ContainerInstance ci,
Component component,
org.w3c.dom.Element propertyElement)
PropertyUpdateProcessorComponentSynchronizePeer that a client property
update has occurred.
processPropertyUpdate in interface PropertyUpdateProcessorci - the relevant ContainerInstancecomponent - the target ComponentpropertyElement - the XML element describing the property update
(the name and value of the changed property may be obtained
by querying the PROPERTY_NAME and
PROPERTY_VALUE attribute values.PropertyUpdateProcessor.processPropertyUpdate(nextapp.echo2.webcontainer.ContainerInstance,
nextapp.echo2.app.Component, org.w3c.dom.Element)
protected org.w3c.dom.Element renderBox(RenderingContext rc,
Component component,
Style fallbackStyle)
public void renderDispose(RenderContext rc,
ServerComponentUpdate update,
Component component)
AbstractEchoPointPeer
Remember to call super.renderDispose() if you overrride
this method.
renderDispose in interface ComponentSynchronizePeerrenderDispose in class AbstractEchoPointPeerrc - the relevant RenderContextupdate - the ServerComponentUpdate for which this
operation is being performedAbstractEchoPointPeer.renderDispose(nextapp.echo2.webcontainer.RenderContext,
nextapp.echo2.app.update.ServerComponentUpdate,
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 boolean renderUpdate(RenderContext rc,
ServerComponentUpdate update,
java.lang.String targetId)
AbstractEchoPointContainerPeerrenderUpdate(rc, update, targetId, fullReplace)
method with an appropriate value for fullReplace.
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||