|
|||||||||
| 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.MenuItemPeer
echopointng.ui.syncpeer.MenuPeer
public class MenuPeer
MenuPeer is the peer for Menu
| Field Summary |
|---|
| Fields inherited from class echopointng.ui.syncpeer.MenuItemPeer |
|---|
MENU_ITEM_SERVICE |
| 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 | |
|---|---|
MenuPeer()
|
|
| Method Summary | |
|---|---|
protected void |
createComponentBoxInitDirective(RenderingContext rc,
java.lang.String componentBoxId)
Renders a directive to the outgoing ServerMessage to
initalising the state of a Menu's component box |
java.lang.String |
getContainerId(Component child)
Returns an identifier in the form "parentId_contains_childId". |
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. |
protected void |
renderInComponentBox(RenderingContext rc,
org.w3c.dom.Element parentE,
Component child,
int componentBoxCount)
Renders a box element around a non MenuItem component child |
void |
renderMenu(RenderingContext rc,
org.w3c.dom.Node parentNode,
Component component,
Style fallbackStyle)
This render the Menu that is "floating" on the page, and acts as both a menu item and floating menu box |
protected org.w3c.dom.Element |
renderMenuBox(RenderingContext rc,
Component component,
Style fallbackStyle)
|
void |
renderRootMenu(RenderingContext rc,
org.w3c.dom.Node parentNode,
Component component,
Style fallbackStyle)
This render the Menu that is "fixed" to the page and not floating like its parent |
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.MenuItemPeer |
|---|
convertIconTextPositionToOrientation, createMenuItemInitDirective, processAction, renderAsMenuItem, renderCellIcon, renderCellText, renderDisposeDirective |
| 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 |
| Constructor Detail |
|---|
public MenuPeer()
| Method Detail |
|---|
public java.lang.String getContainerId(Component child)
AbstractEchoPointContainerPeer
getContainerId in interface ComponentSynchronizePeergetContainerId in class MenuItemPeerchild - a Component whose parent is of the type
synchronized by this peer object.
nextapp.echo2.webcontainer.SynchronizePeer#getContainerId(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.
nextapp.echo2.webcontainer.SynchronizePeer#renderUpdate(nextapp.echo2.webcontainer.RenderContext,
nextapp.echo2.app.update.ServerComponentUpdate, java.lang.String)
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 MenuItemPeerrc - 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 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 MenuItemPeerrc - -
the RenderingContext to useparentNode - -
the parent Node to put content intocomponent - -
the component in questionAbstractEchoPointPeer.renderHtml(echopointng.ui.util.RenderingContext, Node, nextapp.echo2.app.Component)
public void renderRootMenu(RenderingContext rc,
org.w3c.dom.Node parentNode,
Component component,
Style fallbackStyle)
public void renderMenu(RenderingContext rc,
org.w3c.dom.Node parentNode,
Component component,
Style fallbackStyle)
protected org.w3c.dom.Element renderMenuBox(RenderingContext rc,
Component component,
Style fallbackStyle)
protected void renderInComponentBox(RenderingContext rc,
org.w3c.dom.Element parentE,
Component child,
int componentBoxCount)
protected void createComponentBoxInitDirective(RenderingContext rc,
java.lang.String componentBoxId)
ServerMessage to
initalising the state of a Menu's component box
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||