|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.netuix.servlets.controls.ControlContext
com.bea.netuix.servlets.controls.PresentationContext
com.bea.netuix.servlets.controls.application.BodyPresentationContext
public class BodyPresentationContext
This class represents a portal body component. All presentation-related attributes of a body component are available from instances of this class. Such instances are typically used during portal rendering via look and feel skeleton files (e.g. body.jsp).
getBodyPresentationContext(javax.servlet.http.HttpServletRequest)
, Serialized FormMethod Summary | |
---|---|
BodyAttributeRenderer |
getAttributeRenderer() Returns a renderer for body's attributes. |
static BodyPresentationContext |
getBodyPresentationContext(javax.servlet.http.HttpServletRequest request) This is a convenience method for returning a reference to the one and only BodyPresentationContext . |
String |
getEventHandlerScript(String eventHandlerName) Returns any configured script code that should appear in an HTML/XHTML body's event handler attribute for the named event handler. |
List<String> |
getEventHandlerStatements(String eventHandlerName) Returns a list of script statements configured for this body element as specified in the look and feel's .skin, .skeleton, and/or skin.properties files. |
String |
getOnloadScript() Returns any configured onload script code that should appear in an HTML/XHTML body's onload attribute. |
String |
getOnunloadScript() Returns any configured 'onunload' script code that should appear in an HTML/XHTML body's 'onunload' attribute. |
Set<String> |
getPopulatedEventHandlerNames() Returns the names of any HTML/XHTML body tag event handlers that have had script statements added to them in the look and feel's configuration files (i.e. |
Methods inherited from class com.bea.netuix.servlets.controls.PresentationContext |
---|
addCookie, addDateHeader, addHeader, addIntHeader, getChildren, getChildren, getFirstChild, getOrderedChildren, getParsedProperties, getPresentationClass, getPresentationId, getPresentationStyle, getProperties, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsInt, getRenderFormat, getResolvedLocale, getTagName, isVisible, setCharacterEncoding, setContentType, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getOnloadScript()
getEventHandlerScript(String)
with the argument "onload".public String getOnunloadScript()
getEventHandlerScript(String)
with the argument "onunload".public Set<String> getPopulatedEventHandlerNames()
getEventHandlerScript(String)
), and therefore 1-n associated script fragments (obtained with getEventHandlerStatements(String)
).public List<String> getEventHandlerStatements(String eventHandlerName)
eventHandlerName
- The name of the event handler for which to fetch the list of statements; if the name specified is returned by getPopulatedEventHandlerNames()
, then this list will contain at least one associated statementgetPopulatedEventHandlerNames()
public String getEventHandlerScript(String eventHandlerName)
public BodyAttributeRenderer getAttributeRenderer()
getAttributeRenderer
in class PresentationContext
public static BodyPresentationContext getBodyPresentationContext(javax.servlet.http.HttpServletRequest request)
BodyPresentationContext
. Note this method will only work if called from within a portal (typically, from the body.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
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.