|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echoservlet.ComponentPeer nextapp.echoservlet.ui.AbstractButtonUI nextapp.echoservlet.ui.ToggleButtonUI
A base peer class for components derived from ToggleButton
.
Field Summary | |
protected static java.lang.String |
ROLLOVER_SELECTED_ICON_IMAGE
A constant used to identify the rollover selected icon for the in the ImageManager . |
protected static java.lang.String |
SELECTED_ICON_IMAGE
A constant used to identify the selected icon for the in the ImageManager . |
protected static Service |
SERVICE_TOGGLE_BUTTON_SCRIPT
A service providing JavaScript to handle client-side management of toggle buttons. |
static java.lang.String |
TOGGLE_IMAGE_PREFIX
A prefix used in the value of the image "name" attribute of a an <img> element rendered to represent a toggle button's state icon. |
Fields inherited from class nextapp.echoservlet.ui.AbstractButtonUI |
ICON_IMAGE, imageManager, renderedActive, ROLLOVER_ICON_IMAGE |
Constructor Summary | |
ToggleButtonUI()
|
Method Summary | |
abstract java.lang.String |
getDefaultStateImageUri(RenderingContext rc,
boolean selected)
Returns the URI of the default image used to represent the toggle button's state. |
static java.lang.String |
getScriptCustomStateIconToggleRollover(Connection conn,
java.lang.String id,
java.lang.String stateId,
java.lang.String imageUri,
java.lang.String selectedImageUri,
java.lang.String styleName)
Returns the necessary script to produce a button rollover effect. |
Id |
getStateId()
Returns the Id of the controller input field in which the
ToggleButton 's state is to be stored. |
java.lang.String |
getStateImageUri(RenderingContext rc,
boolean selected)
Returns the URI of the image that will be used to represent state for this particular toggle button. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
void |
registered()
Called when the component is registered. |
void |
unregistered()
Called when the component is unregistered. |
Methods inherited from class nextapp.echoservlet.ui.AbstractButtonUI |
clientAction, getHorizontalAlignment, getScriptAction, getVerticalAlignment, imageUpdate, render |
Methods inherited from class nextapp.echoservlet.ComponentPeer |
addAncillaryService, generateId, getBackground, getChildCount, getChildren, getComponent, getFocusedElementId, getFont, getForeground, getId, getInstancePeer, getParent, getPeer, getTabIndex, redraw, removeAncillaryService |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TOGGLE_IMAGE_PREFIX
protected static final Service SERVICE_TOGGLE_BUTTON_SCRIPT
protected static final java.lang.String SELECTED_ICON_IMAGE
ImageManager
.
protected static final java.lang.String ROLLOVER_SELECTED_ICON_IMAGE
ImageManager
.
Constructor Detail |
public ToggleButtonUI()
Method Detail |
public static java.lang.String getScriptCustomStateIconToggleRollover(Connection conn, java.lang.String id, java.lang.String stateId, java.lang.String imageUri, java.lang.String selectedImageUri, java.lang.String styleName)
conn
- The connection
on which the button is being
rendered.id
- The Id
of the toggle button.stateId
- The Id
of the toggle button that holds the
selected state of the toggle button. This property is different
from the id
on RadioButtons.imageUri
- The URI of the icon that should be displayed when the
button is not selected.selectedImageUri
- The URI of the icon that should be displayed when the
button is selected.styleName
- The toggle button's CSS style name.
public abstract java.lang.String getDefaultStateImageUri(RenderingContext rc, boolean selected)
rc
- The RenderingContext
to which the button is being
rendered.selected
- True if the selected state image is being requested.
public Id getStateId()
Id
of the controller input field in which the
ToggleButton
's state is to be stored. In the case where
multiple RadioButton
s are in a ButtonGroup
,
the state will be stored in only one field, specified by this
method.Id
of this peer.
Id
of the controller input field used to
store the ToggleButton
's state.public java.lang.String getStateImageUri(RenderingContext rc, boolean selected)
rc
- The RenderingContext
to which the button is being
rendered.selected
- True if the selected state image is being requested.
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class AbstractButtonUI
PropertyChangeListener.propertyChange(PropertyChangeEvent)
public void registered()
ComponentPeer
registered
in class AbstractButtonUI
ComponentPeer.registered()
public void unregistered()
ComponentPeer
unregistered
in class AbstractButtonUI
ComponentPeer.unregistered()
|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |