echopointng.ui.syncpeer
Class AbstractEchoPointContainerPeer
java.lang.Object
echopointng.ui.syncpeer.AbstractEchoPointPeer
echopointng.ui.syncpeer.AbstractEchoPointContainerPeer
- All Implemented Interfaces:
- ComponentSynchronizePeer, DomUpdateSupport
- Direct Known Subclasses:
- ContainerExPeer, ExpandableSectionPeer, GroupBoxPeer, LabelExPeer, ListSectionPeer, LiveTablePeer, MenuItemPeer, PopUpPeer, SliderPeer, TabbedPanePeer, TemplatePanelPeer, TitleBarPeer, TreePeer
public abstract class AbstractEchoPointContainerPeer
- extends AbstractEchoPointPeer
AbstractEchoPointContainerPeer is a base class for
peers, that provides a default implementation
of "container" handling for DomAdd, DomUpdate etc..
Child components are wrapped in a "container" element which allows
the framework to "add/update/remove" them easily.
|
Method Summary |
java.lang.String |
getContainerId(Component child)
Returns an identifier in the form "parentId_contains_childId". |
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.AbstractEchoPointPeer |
disposeRenderState, renderAdd, renderDispose, renderHtml, 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 |
AbstractEchoPointContainerPeer
public AbstractEchoPointContainerPeer()
getContainerId
public java.lang.String getContainerId(Component child)
- Returns an identifier in the form "parentId_contains_childId".
- Specified by:
getContainerId in interface ComponentSynchronizePeer- Overrides:
getContainerId in class AbstractEchoPointPeer
- Parameters:
child - a Component whose parent is of the type
synchronized by this peer object.
- Returns:
- the id of the element which should contain the child
component's rendered HTML.
- See Also:
nextapp.echo2.webcontainer.SynchronizePeer#getContainerId(nextapp.echo2.app.Component)
renderUpdate
public 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. This method ends up calling
the ends
renderUpdate(rc, update, targetId, fullReplace)
method with an appropriate value for fullReplace.
- Specified by:
renderUpdate in interface ComponentSynchronizePeer- Overrides:
renderUpdate in class AbstractEchoPointPeer
- Parameters:
rc - 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.
- Returns:
- true if updates to descendants should NOT be performed
- See Also:
nextapp.echo2.webcontainer.SynchronizePeer#renderUpdate(nextapp.echo2.webcontainer.RenderContext,
nextapp.echo2.app.update.ServerComponentUpdate, java.lang.String)