© 2004 BEA Systems, Inc.

com.bea.netuix.servlets.controls.layout
Class PlaceholderPresentationContext

java.lang.Object
  extended bycom.bea.netuix.servlets.controls.ControlContext
      extended bycom.bea.netuix.servlets.controls.PresentationContext
          extended bycom.bea.netuix.servlets.controls.layout.PlaceholderPresentationContext
All Implemented Interfaces:
Serializable

public class PlaceholderPresentationContext
extends PresentationContext

Used to provide access to presentation-related attributes specific to the Placeholder in use. Typically used during portal rendering via look and feel skeleton files (specifically: JSPs used in layout components, e.g. gridlayout.jsp).

See Also:
getPlaceholderPresentationContext(javax.servlet.http.HttpServletRequest), Serialized Form

Method Summary
 String getFlow()
          Returns the text of the flow attribute for this Placeholder portal component.
static PlaceholderPresentationContext getPlaceholderPresentationContext(HttpServletRequest request)
          This is a convenience method for returning a reference to the one and only PlaceholderPresentationContext for a given Placeholder portal component.
 String getTitle()
          Returns the text of the title attribute for this Placeholder portal component.
 String getWidth()
          Returns the value of the width attribute for this Placeholder portal component.
 boolean isUsingFlow()
          Returns the value of the isUsingFlow attribute for this Placeholder portal component.
 
Methods inherited from class com.bea.netuix.servlets.controls.PresentationContext
getChildren, getChildren, getFirstChild, getParsedProperties, getPresentationClass, getPresentationId, getPresentationStyle, getProperties, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsInt, getResolvedLocale, getTagName, isVisible, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTitle

public String getTitle()
Returns the text of the title attribute for this Placeholder portal component.

Returns:
The text of the title attribute as a String, if any

getFlow

public String getFlow()
Returns the text of the flow attribute for this Placeholder portal component. The flow attribute can be either FlowLayout.ORIENT_HORIZONTAL or FlowLayout.ORIENT_VERTICAL.

Returns:
The text of the flow attribute as a String, if any
See Also:
FlowLayout.ORIENT_HORIZONTAL, FlowLayout.ORIENT_VERTICAL

isUsingFlow

public boolean isUsingFlow()
Returns the value of the isUsingFlow attribute for this Placeholder portal component. If true, a FlowLayout will be used within this Placeholder to manage its contents.

Returns:
The value of the isUsingFlow attribute; if unspecified, defaults to true

getWidth

public String getWidth()
Returns the value of the width attribute for this Placeholder portal component. The width attribute can be used to set the width of a <td> HTML element within a layout JSP, for example.

Returns:
The value of the width attribute, if any

getPlaceholderPresentationContext

public static PlaceholderPresentationContext getPlaceholderPresentationContext(HttpServletRequest request)
This is a convenience method for returning a reference to the one and only PlaceholderPresentationContext for a given Placeholder portal component. Note this method will only work if called from within a portal (typically, from within a *layout.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.

Parameters:
request - The current HTTPServletRequest instance
Returns:
A reference to the current PlaceholderPresentationContext, if any

© 2004 BEA Systems, Inc.

Copyright © 2004 BEA Systems, Inc. All Rights Reserved