|
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.page.MenuPresentationContext
public class MenuPresentationContext
This class represents a portal menu component. All presentation-related attributes of a menu component are available from instances of this class. Such instances are typically used during portal rendering via look and feel skeleton files (e.g. singlelevelmenu.jsp, multilevelmenu.jsp). <p/> This class exposes the render-related attributes of a generic menu, but the actual structural data it uses to generate the menu itself comes from it's parent BookPresentationContext. <p/> The presence of an instance of this class indicates that a tabbed menu (of 'n' levels) should be rendered for the parent book.
getMenuPresentationContext(javax.servlet.http.HttpServletRequest), getBookPresentationContext(), Serialized Form| Field Summary | |
|---|---|
static String |
CENTERAlign the tabs in the center. |
protected static String |
CLASS_NAME |
static String |
LEFTAlign the tabs on the left. |
static String |
RIGHTAlign the tabs on the right. |
| Method Summary | |
|---|---|
String |
getAlign()Returns the preferred alignment of the rendered menu tabs. |
BookPresentationContext |
getBookPresentationContext()Get the presentation context for the parent book. |
static MenuPresentationContext |
getMenuPresentationContext(javax.servlet.http.HttpServletRequest request)This is a convenience method for returning a reference to the current MenuPresentationContext. |
| Methods inherited from class com.bea.netuix.servlets.controls.PresentationContext |
|---|
addCookie, addDateHeader, addHeader, addIntHeader, getAttributeRenderer, 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 |
| Field Detail |
|---|
protected static final String CLASS_NAME
public static final String LEFT
public static final String CENTER
public static final String RIGHT
| Method Detail |
|---|
public String getAlign()
MenuPresentationContext.LEFTMenuPresentationContext.CENTERMenuPresentationContext.RIGHTpublic static MenuPresentationContext getMenuPresentationContext(javax.servlet.http.HttpServletRequest request)
MenuPresentationContext. Note this method will only work if called from within a portal (typically, from the singlelevelmenu.jsp or the multilevelmenu.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 instancepublic BookPresentationContext getBookPresentationContext()
Get the presentation context for the parent book.
Will return null if the menu is not nested within a book.
|
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.