| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echoservlet.AbstractComponentPeer
nextapp.echoservlet.ui.AbstractButtonUI
public abstract class AbstractButtonUI
A base peer class for components derived from AbstractButton.
| 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 static java.lang.String | 
ROLLOVER_ICON_IMAGE
A constant used to identify the rollover icon for the in the ImageManager. | 
| Fields inherited from interface nextapp.echoservlet.ComponentPeer | 
|---|
IGNORE_PROPERTY_CHANGE | 
| Constructor Summary | |
|---|---|
AbstractButtonUI()
Default constructor.  | 
|
| Method Summary | |
|---|---|
 void | 
clientAction(java.lang.String action)
Called when the user causes an action from the client.  | 
 int | 
getHorizontalAlignment()
Returns the horizontal alignment of a represented component.  | 
abstract  java.lang.String | 
getScriptAction(RenderingContext rc)
Returns JavaScript code that will be executed when the button is clicked.  | 
 int | 
getVerticalAlignment()
Returns the vertical alignment of a represented component.  | 
 void | 
imageUpdate(ImageUpdateEvent e)
Invoked when an image update change occurs.  | 
 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 | 
|---|
protected boolean renderedActive
protected ImageManager imageManager
protected static final java.lang.String ICON_IMAGE
ImageManager.
protected static final java.lang.String ROLLOVER_ICON_IMAGE
ImageManager.
| Constructor Detail | 
|---|
public AbstractButtonUI()
| Method Detail | 
|---|
public void clientAction(java.lang.String action)
ClientActionProducer
clientAction in interface ClientActionProduceraction - The action command generated by the client.ClientActionProducer.clientAction(java.lang.String)public abstract java.lang.String getScriptAction(RenderingContext rc)
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.
rc - The RenderingContext being used for the
        rendering of the button.
public int getHorizontalAlignment()
Alignment
getHorizontalAlignment in interface AlignmentAlignment.getHorizontalAlignment()public int getVerticalAlignment()
Alignment
getVerticalAlignment in interface AlignmentAlignment.getVerticalAlignment()public void imageUpdate(ImageUpdateEvent e)
ImageUpdateListener
imageUpdate in interface ImageUpdateListenere - The event describing the image update.ImageUpdateListener.imageUpdate(ImageUpdateEvent)public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenerPropertyChangeListener.propertyChange(PropertyChangeEvent)public void registered()
AbstractComponentPeer
registered in interface ComponentPeerregistered in class AbstractComponentPeerComponentPeer.registered()
public void render(RenderingContext rc,
                   Element parent)
ComponentPeer
render in interface ComponentPeerrender in class AbstractComponentPeerrc - A rendering context provided by the Connection.parent - The element that will contain content rendered by this
            ComponentPeer.ComponentPeer.render(RenderingContext, Element)public void unregistered()
AbstractComponentPeer
unregistered in interface ComponentPeerunregistered in class AbstractComponentPeerComponentPeer.unregistered()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||