echopoint.ui
Class PushButtonUI

java.lang.Object
  extended by nextapp.echoservlet.AbstractComponentPeer
      extended by nextapp.echoservlet.ui.AbstractButtonUI
          extended by nextapp.echoservlet.ui.ButtonUI
              extended by echopoint.ui.PushButtonUI
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, ImageUpdateListener, Alignment, ClientActionProducer, ComponentPeer
Direct Known Subclasses:
ConfirmButtonUI, JavaScriptButtonUI, SubmitButtonUI

public class PushButtonUI
extends ButtonUI
implements ClientActionProducer, java.beans.PropertyChangeListener

PushButtonUI is the backend peer class for the component PushButton.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class nextapp.echoservlet.ui.AbstractButtonUI
ICON_IMAGE, imageManager, renderedActive, ROLLOVER_ICON_IMAGE
 
Fields inherited from interface nextapp.echoservlet.ComponentPeer
IGNORE_PROPERTY_CHANGE
 
Constructor Summary
PushButtonUI()
           
 
Method Summary
 void clientAction(java.lang.String action)
          Called when the user causes an action from the client.
static java.lang.String getInitializeScript(Connection connection, InstancePeer instancePeer, java.util.List components, java.util.List peers)
           
 java.lang.String getScriptAction(RenderingContext rc)
          Returns JavaScript code that will be executed when the button is clicked.
 void propertyChange(java.beans.PropertyChangeEvent e)
           
static void register()
          Registers the Component with its peer bindings
 void registered()
          Called when the component is registered.
 void render(RenderingContext rc, Element parent)
          A method that should be overridden for the ComponentPeer to produce HTML output.
 void unregistered()
          Called when the component is unregistered.
 
Methods inherited from class nextapp.echoservlet.ui.AbstractButtonUI
getHorizontalAlignment, getVerticalAlignment, imageUpdate
 
Methods inherited from class nextapp.echoservlet.AbstractComponentPeer
addAncillaryService, generateId, getCalculatedBackground, getCalculatedFont, getCalculatedForeground, getChildCount, getChildren, getComponent, getFocusedElementId, getId, getInstancePeer, getParentComponentPeer, getPeer, redraw, registerAncillaryServices, removeAncillaryService, setComponent, setId, setInstancePeer, unregisterAncillaryServices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PushButtonUI

public PushButtonUI()
Method Detail

register

public static void register()
Registers the Component with its peer bindings


clientAction

public void clientAction(java.lang.String action)
Description copied from interface: ClientActionProducer
Called when the user causes an action from the client.

Specified by:
clientAction in interface ClientActionProducer
Overrides:
clientAction in class AbstractButtonUI
Parameters:
action - The action command generated by the client.
See Also:
ClientActionProducer.clientAction(java.lang.String)

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Overrides:
propertyChange in class AbstractButtonUI
See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)

registered

public void registered()
Description copied from class: AbstractComponentPeer
Called when the component is registered. This method should be overridden if necessary.

Specified by:
registered in interface ComponentPeer
Overrides:
registered in class AbstractButtonUI
See Also:
ComponentPeer.registered()

getScriptAction

public java.lang.String getScriptAction(RenderingContext rc)
Description copied from class: AbstractButtonUI
Returns JavaScript code that will be executed when the button is clicked. On plain Buttons, this will normally send input to the server. On ToggleButtons, the selection state will change and input may also be sent to the server if desired by the application.

Overrides:
getScriptAction in class ButtonUI
Parameters:
rc - The RenderingContext being used for the rendering of the button.
Returns:
A JavaScript method call that will be executed when the button is clicked. The returned string must be valid HTML.
See Also:
ButtonUI.getScriptAction(nextapp.echoservlet.RenderingContext)

render

public void render(RenderingContext rc,
                   Element parent)
Description copied from interface: ComponentPeer
A method that should be overridden for the ComponentPeer to produce HTML output.

Specified by:
render in interface ComponentPeer
Overrides:
render in class AbstractButtonUI
Parameters:
rc - A rendering context provided by the Connection.
parent - The element that will contain content rendered by this ComponentPeer.
See Also:
ComponentPeer.render(nextapp.echoservlet.RenderingContext, nextapp.echoservlet.html.Element)

unregistered

public void unregistered()
Description copied from class: AbstractComponentPeer
Called when the component is unregistered. This method should be overridden if necessary.

Specified by:
unregistered in interface ComponentPeer
Overrides:
unregistered in class AbstractButtonUI
See Also:
ComponentPeer.unregistered()

getInitializeScript

public static java.lang.String getInitializeScript(Connection connection,
                                                   InstancePeer instancePeer,
                                                   java.util.List components,
                                                   java.util.List peers)