NextApp Echo
App Container 1.0.5

nextapp.echoservlet.ui
Class ButtonUI

java.lang.Object
  extended bynextapp.echoservlet.ComponentPeer
      extended bynextapp.echoservlet.ui.AbstractButtonUI
          extended bynextapp.echoservlet.ui.ButtonUI
All Implemented Interfaces:
Alignment, ClientActionProducer, java.util.EventListener, nextapp.echo.event.ImageUpdateListener, java.beans.PropertyChangeListener, java.io.Serializable

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

A peer for Button components.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class nextapp.echoservlet.ui.AbstractButtonUI
ICON_IMAGE, imageManager, renderedActive, ROLLOVER_ICON_IMAGE
 
Fields inherited from class nextapp.echoservlet.ComponentPeer
 
Constructor Summary
ButtonUI()
           
 
Method Summary
 java.lang.String getScriptAction(RenderingContext rc)
          Returns JavaScript code that will be executed when the button is clicked.
 
Methods inherited from class nextapp.echoservlet.ui.AbstractButtonUI
clientAction, getHorizontalAlignment, getVerticalAlignment, imageUpdate, propertyChange, registered, render, unregistered
 
Methods inherited from class nextapp.echoservlet.ComponentPeer
addAncillaryService, generateId, getBackground, getChildCount, getChildren, getComponent, getFont, getForeground, getId, getInstancePeer, getParent, getPeer, redraw, removeAncillaryService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nextapp.echoservlet.ClientActionProducer
clientAction
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Constructor Detail

ButtonUI

public ButtonUI()
Method Detail

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.

Specified by:
getScriptAction in class AbstractButtonUI
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.
See Also:
AbstractButtonUI.getScriptAction(RenderingContext)

NextApp Echo
App Container 1.0.5