Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.roller.presentation.tags.menu
Class RollerMenuModel  view RollerMenuModel download RollerMenuModel.java

java.lang.Object
  extended byorg.roller.presentation.tags.menu.RollerMenuModel
All Implemented Interfaces:
MenuModel

public class RollerMenuModel
extends java.lang.Object
implements MenuModel


Field Summary
static java.lang.String MENU_ITEM_KEY
          Key used to store selected menu item in request
static java.lang.String MENU_KEY
          Key used to store selected menu in request
private static org.apache.commons.logging.Log mLogger
           
private  java.lang.String mMenuId
           
private  java.util.Vector mMenus
          Vector of MenuImpl objects
 
Constructor Summary
RollerMenuModel(java.lang.String menuId, java.lang.String config, javax.servlet.ServletContext ctx)
          Construct menu model based on hardcoded menu data
 
Method Summary
 void addMenu(Menu menu)
           
(package private) static java.util.Hashtable createParams(javax.servlet.http.HttpServletRequest req)
          Create params based on incoming request
 java.util.Vector getMenus()
          Collection of Menu objects contained in this menu model
 Menu getSelectedMenu(javax.servlet.http.HttpServletRequest req)
          Return menu selected by current request or first menu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

RollerMenuModel

public RollerMenuModel(java.lang.String menuId,
                       java.lang.String config,
                       javax.servlet.ServletContext ctx)
Construct menu model based on hardcoded menu data

Method Detail

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