|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.karora.cooee.ng.ui.syncpeer.AbstractEchoPointPeer
org.karora.cooee.ng.ui.syncpeer.CalculatorPeer
public class CalculatorPeer
CalculatorPeer
| Field Summary | |
|---|---|
static Service |
CALC_SERVICE
Service to provide supporting JavaScript library. |
| Fields inherited from class org.karora.cooee.ng.ui.syncpeer.AbstractEchoPointPeer |
|---|
DEFAULT_CONTAINER_TAG, partialUpdateManager |
| Fields inherited from interface org.karora.cooee.webcontainer.PropertyUpdateProcessor |
|---|
PROPERTY_NAME, PROPERTY_VALUE |
| Fields inherited from interface org.karora.cooee.webcontainer.ActionProcessor |
|---|
ACTION_NAME, ACTION_VALUE |
| Constructor Summary | |
|---|---|
CalculatorPeer()
|
|
| Method Summary | |
|---|---|
protected void |
createDisposeDirective(ServerMessage serverMessage,
Component component)
|
protected void |
createInitDirective(RenderingContext rc,
Calculator calc,
Style fallbackStyle)
|
void |
processAction(ContainerInstance ci,
Component component,
org.w3c.dom.Element actionElement)
Notifies the ComponentSynchronizePeer that a client action
has occurred. |
void |
processPropertyUpdate(ContainerInstance ci,
Component component,
org.w3c.dom.Element propertyElement)
Notifies the ComponentSynchronizePeer that a client property
update has occurred. |
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 parentNode,
Component component)
This is the rendering method you must implement if you are to use AbstractEchoPointPeer. |
| Methods inherited from class org.karora.cooee.ng.ui.syncpeer.AbstractEchoPointPeer |
|---|
disposeRenderState, getContainerId, getContainerTag, renderAdd, renderHtml, renderReplaceableChild, renderUpdate, 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 CALC_SERVICE
| Constructor Detail |
|---|
public CalculatorPeer()
| Method Detail |
|---|
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(org.karora.cooee.webcontainer.ContainerInstance, org.karora.cooee.app.Component, org.w3c.dom.Element)
public void processAction(ContainerInstance ci,
Component component,
org.w3c.dom.Element actionElement)
ActionProcessorComponentSynchronizePeer that a client action
has occurred.
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(org.karora.cooee.webcontainer.ContainerInstance, org.karora.cooee.app.Component, org.w3c.dom.Element)
public void renderHtml(RenderingContext rc,
org.w3c.dom.Node parentNode,
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 useparentNode - -
the parent Node to put content intocomponent - -
the component in questionAbstractEchoPointPeer.renderHtml(org.karora.cooee.ng.ui.util.RenderingContext,
org.w3c.dom.Node, org.karora.cooee.app.Component)
protected void createInitDirective(RenderingContext rc,
Calculator calc,
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(org.karora.cooee.webcontainer.RenderContext,
org.karora.cooee.app.update.ServerComponentUpdate,
org.karora.cooee.app.Component)
protected void createDisposeDirective(ServerMessage serverMessage,
Component component)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||