echopointng.ui.syncpeer
Class PushButtonPeer
java.lang.Object
echopointng.ui.syncpeer.AbstractEchoPointPeer
echopointng.ui.syncpeer.ButtonExPeer
echopointng.ui.syncpeer.PushButtonPeer
- All Implemented Interfaces:
- ActionProcessor, ComponentSynchronizePeer, DomUpdateSupport
public class PushButtonPeer
- extends ButtonExPeer
ButtonExPeer is a peer for PushButton
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PushButtonPeer
public PushButtonPeer()
getContainerId
public java.lang.String getContainerId(Component child)
- Description copied from class:
AbstractEchoPointPeer
- Returns an identifier in the form "parentId_contains_childId".
- Specified by:
getContainerId in interface ComponentSynchronizePeer- Overrides:
getContainerId in class ButtonExPeer
- 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)
renderDispose
public void renderDispose(RenderContext rc,
ServerComponentUpdate update,
Component component)
- Description copied from class:
AbstractEchoPointPeer
- Removes any render state that is associated with the component.
Remember to call super.renderDispose() if you overrride
this method.
- Specified by:
renderDispose in interface ComponentSynchronizePeer- Overrides:
renderDispose in class ButtonExPeer
- Parameters:
rc - the relevant RenderContextupdate - the ServerComponentUpdate for which this
operation is being performed- See Also:
nextapp.echo2.webcontainer.SynchronizePeer#renderDispose(nextapp.echo2.webcontainer.RenderContext,
nextapp.echo2.app.update.ServerComponentUpdate,
nextapp.echo2.app.Component)
getTopLevelButtonElement
protected org.w3c.dom.Element getTopLevelButtonElement(RenderingContext rc,
ButtonEx button,
Style fallbackStyle)
- We use the BUTTON tag instead of DIV
- Overrides:
getTopLevelButtonElement in class ButtonExPeer
- See Also:
echopointng.ui.syncpeer.ButtonExPeer#getTopLevelButtonElement(echopointng.ui.util.RenderingContext, echopointng.ButtonEx)
renderEventSupport
protected void renderEventSupport(RenderingContext rc,
ButtonEx button,
boolean addRolloverListener)
- Our event support is a little different to the base ButtonEx code
- Overrides:
renderEventSupport in class ButtonExPeer
- Parameters:
rc - -
the RenderingContext in placebutton - -
the current buttonaddRolloverListener - -
the result of the renderRolloverStyleSupport() method call- See Also:
ButtonExPeer.renderEventSupport(RenderingContext, ButtonEx, boolean)