java.lang.Object
org.roller.presentation.tags.menu.RollerMenuModel
- All Implemented Interfaces:
- MenuModel
- public class RollerMenuModel
- extends java.lang.Object
- implements MenuModel
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mLogger
private static org.apache.commons.logging.Log mLogger
mMenuId
private java.lang.String mMenuId
mMenus
private java.util.Vector mMenus
- Vector of MenuImpl objects
MENU_KEY
public static final java.lang.String MENU_KEY
- Key used to store selected menu in request
- See Also:
- Constant Field Values
MENU_ITEM_KEY
public static final java.lang.String MENU_ITEM_KEY
- Key used to store selected menu item in request
- See Also:
- Constant Field Values
RollerMenuModel
public RollerMenuModel(java.lang.String menuId,
java.lang.String config,
javax.servlet.ServletContext ctx)
- Construct menu model based on hardcoded menu data
getMenus
public java.util.Vector getMenus()
- Description copied from interface:
MenuModel
- Collection of Menu objects contained in this menu model
- Specified by:
getMenus in interface MenuModel
getSelectedMenu
public Menu getSelectedMenu(javax.servlet.http.HttpServletRequest req)
- Description copied from interface:
MenuModel
- Return menu selected by current request or first menu.
If request does not indicate a menu then first menu is returned.
- Specified by:
getSelectedMenu in interface MenuModel
addMenu
public void addMenu(Menu menu)
createParams
static java.util.Hashtable createParams(javax.servlet.http.HttpServletRequest req)
- Create params based on incoming request