net.sf.jzeno.echo.components.css
Class CSSButtonUI

java.lang.Object
  extended by nextapp.echoservlet.AbstractComponentPeer
      extended by net.sf.jzeno.echo.components.css.CSSButtonUI
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, ClientActionProducer, ComponentPeer

public class CSSButtonUI
extends AbstractComponentPeer
implements ClientActionProducer, java.beans.PropertyChangeListener

CSSButtonUI is the backend peer class for the component CSSButton.

See Also:
Serialized Form

Field Summary
protected static java.lang.String ICON_IMAGE
          A constant used to identify the default icon for the in the ImageManager.
protected  ImageManager imageManager
          The image manager that will handle images for the button, including custom state images for toggle buttons.
protected  boolean renderedActive
          Indicates whether the button was most recently rendered enabled.
protected  ToolTipPopUpSupportHelper toolTipHelper
          a ToolTipPopUpSupportHelper available to subclasses
 
Fields inherited from interface nextapp.echoservlet.ComponentPeer
IGNORE_PROPERTY_CHANGE
 
Constructor Summary
CSSButtonUI()
           
 
Method Summary
 void clientAction(java.lang.String action)
          Called when the user causes an action from the client.
 java.lang.String getScriptAction(RenderingContext rc)
           
 void propertyChange(java.beans.PropertyChangeEvent e)
           
 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.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
 

Field Detail

toolTipHelper

protected ToolTipPopUpSupportHelper toolTipHelper
a ToolTipPopUpSupportHelper available to subclasses


imageManager

protected ImageManager imageManager
The image manager that will handle images for the button, including custom state images for toggle buttons.


ICON_IMAGE

protected static final java.lang.String ICON_IMAGE
A constant used to identify the default icon for the in the ImageManager.

See Also:
Constant Field Values

renderedActive

protected boolean renderedActive
Indicates whether the button was most recently rendered enabled.

Constructor Detail

CSSButtonUI

public CSSButtonUI()
Method Detail

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
Parameters:
action - The action command generated by the client.

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 AbstractComponentPeer
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)

getScriptAction

public java.lang.String getScriptAction(RenderingContext rc)
See Also:
AbstractButtonUI.getScriptAction(RenderingContext)

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
See Also:
PropertyChangeListener.propertyChange(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 AbstractComponentPeer
See Also:
ComponentPeer.registered()

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 AbstractComponentPeer
See Also:
ComponentPeer.unregistered()