LayoutPresentationContext Class
- public class LayoutPresentationContext
extends PresentationContext
Used to provide access to presentation-related attributes specific to the
Layout in use. Typically used during portal rendering via look and feel skeleton files. The skeleton
file name for a Layout portal component must be <type>layout.jsp, where <type> is the
string specified by the type attribute in the Layout portal component. For example:
<netuix:layout type="custom" title="Custom Layout" ...>
will delegate rendering tasks to customlayout.jsp in your skeleton directory.
Related Topics
LayoutPresentationContext.getLayoutPresentationContext(HttpServletRequest)
-
Hierarchy
-
Object
ControlContext
PresentationContext
LayoutPresentationContext
-
All Implemented Interfaces
-
Serializable
-
Direct Known Subclasses
-
BorderLayoutPresentationContext, FlowLayoutPresentationContext, GridLayoutPresentationContext
Methods from com.bea.netuix.servlets.controls.PresentationContext |
getChildren, getChildren, getFirstChild, getParsedProperties, getPresentationClass, getPresentationId, getPresentationStyle, getProperties, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsInt, getResolvedLocale, getTagName, isVisible, setVisible |
Methods from com.bea.netuix.servlets.controls.ControlContext |
getContextFromRequest, getControl, getRequestKey, getUniqueId, removeContextFromRequest, setContextInRequest |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_NAME
protected static final String CLASS_NAME
getLayoutPresentationContext(HttpServletRequest) Method
public static LayoutPresentationContext getLayoutPresentationContext(HttpServletRequest request)
This is a convenience method for returning a reference to the one and only LayoutPresentationContext.
Note this method will only work if called from within a portal.
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.
Parameters
-
request
- The current HTTPServletRequest instance
Returns
- A reference to the current LayoutPresentationContext, if any
getType() Method
public String getType()
Returns the text of the type attribute that corresponds to this
Layout portal component.
Returns
- The text of the type attribute as a String, if any