|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.netuix.servlets.controls.ControlContext
com.bea.netuix.servlets.controls.PresentationContext
com.bea.netuix.servlets.controls.window.AbstractButtonPresentationContext
com.bea.netuix.servlets.controls.window.ToggleButtonPresentationContext
public class ToggleButtonPresentationContext
An implementation of AbstractButtonPresentationContext. Toggle buttons differ from standard buttons in that they have
two "modes": activate and deactivate. For example, an Edit button has an "enter edit" (activate) mode and
a "leave edit" (deactivate) mode.
Like its parent, this class is typically used during portal rendering via look and feel skeleton files (e.g. togglebutton.jsp).
getToggleButtonPresentationContext(javax.servlet.http.HttpServletRequest),
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.bea.netuix.servlets.controls.window.AbstractButtonPresentationContext |
|---|
CLASS_NAME |
| Method Summary | |
|---|---|
String |
getActivateAltText()
The activateAltText attribute represents the alt text to be rendered when this Button is in its "activate" state. |
String |
getActivateImage()
The activateImage attribute represents the name of the standard image that this Button should use
when representing its "activate" state. |
String |
getActivateRolloverImage()
The activateRolloverImage attribute represents the name of the image to be rendered upon rollover of this Button while in its "activate" state. |
String |
getAltText()
This method will return the appropriate alt text (activateAltText or deactivateAltText) for the current state of the Button. |
String |
getDeactivateAltText()
The deactivateAltText attribute represents the alt text to be rendered when this Button is in its "deactivate" state. |
String |
getDeactivateImage()
The deactivateImage attribute represents the name of the standard image that this Button should use
when representing its "deactivate" state. |
String |
getDectivateRolloverImage()
The deactivateRolloverImage attribute represents the name of the image to be rendered upon rollover of this Button while in its "deactivate" state. |
String |
getImage()
This method will return the appropriate image name (activateImage or deactivateImage) for the current state of the Button. |
String |
getImageSrc()
This method will return the appropriate image content URI (activateImage or deactivateImage) for the current state of the Button. |
String |
getRolloverImage()
This method will return the appropriate rolloverImage name (activateRolloverImage or deactivateRolloverImage) for the current state of the Button. |
String |
getRolloverImageSrc()
This method will return the appropriate rolloverImage content URI (activateRolloverImage or deactivateRolloverImage) for the current state of the Button. |
static ToggleButtonPresentationContext |
getToggleButtonPresentationContext(javax.servlet.http.HttpServletRequest request)
This is a convenience method for returning a reference to the one and only ToggleButtonPresentationContext for a given ToggleButton. |
boolean |
isActive()
This method can be used to determine the current state of the Button. |
| Methods inherited from class com.bea.netuix.servlets.controls.window.AbstractButtonPresentationContext |
|---|
getAbstractButtonPresentationContext, getContextKey, getEvent, getEventParam, getName, getParentWindowPresentationContext, getWindowLabel, isParentPortlet |
| Methods inherited from class com.bea.netuix.servlets.controls.PresentationContext |
|---|
getAttributeRenderer, getChildren, getChildren, getFirstChild, getOrderedChildren, getParsedProperties, getPresentationClass, getPresentationId, getPresentationStyle, getProperties, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsInt, getRenderFormat, getResolvedLocale, getTagName, isVisible, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getActivateImage()
Button should use
when representing its "activate" state.
Button portal component, if anypublic String getDeactivateImage()
Button should use
when representing its "deactivate" state.
Button portal component, if anypublic String getImage()
Button. For example, if the Button is currently in its activate state, the
deactivate image name will be returned.
getImage in class AbstractButtonPresentationContextButton state, if anypublic String getImageSrc()
Button. For example, if the Button is currently in an activate state,
the deactivate image URI will be returned.
getImageSrc in class AbstractButtonPresentationContextButton state, if anypublic String getActivateRolloverImage()
Button while in its "activate" state.
Button portal component, if anypublic String getDectivateRolloverImage()
Button while in its "deactivate" state.
Button portal component, if anypublic String getRolloverImage()
Button. For example, if the Button is currently in an activate
state, the deactivate rolloverImage name will be returned.
getRolloverImage in class AbstractButtonPresentationContextButton state, if anypublic String getRolloverImageSrc()
Button. For example, if the
Button is currently in an activate state, the deactivate rolloverImage content URI will be returned.
getRolloverImageSrc in class AbstractButtonPresentationContextButton state, if anypublic String getActivateAltText()
Button is in its "activate" state.
Button portal component, if anypublic String getDeactivateAltText()
Button is in its "deactivate" state.
Button portal component, if anypublic String getAltText()
Button. For example, if the
Button is currently in an activate state, the deactivate alt text will be returned.
getAltText in class AbstractButtonPresentationContextButton state, if anypublic boolean isActive()
Button. If the
Button is currently in an activate state, true will be returned.
Button is in an activate statepublic static ToggleButtonPresentationContext getToggleButtonPresentationContext(javax.servlet.http.HttpServletRequest request)
ToggleButtonPresentationContext for a given ToggleButton.
Note this method will only work if called from within a portal (e.g. togglebutton.jsp skeleton).
This method may return null if called when no appropriate context exists, but such a context should safely
exist when being fetched from the associated skeleton JSP during normal portal rendering.
request - The current HTTPServletRequest instance
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||