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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.roller.presentation.tags.menu.MenuImpl
All Implemented Interfaces:
Menu

public class MenuImpl
extends java.lang.Object
implements Menu

MenuImpl model has collection of menus


Field Summary
(package private)  boolean mDefault
          Is this the default menu?
private  java.lang.String mMenuId
           
(package private)  java.util.Vector mMenuItems
          Vector of MenuItemImpl objects
(package private)  java.lang.String mName
          Name of menu
 
Constructor Summary
MenuImpl()
           
MenuImpl(java.lang.String n)
          Construct with name
 
Method Summary
 void addItem(MenuItemImpl item)
          Add MenuItemImpl to MenuImpl
 java.lang.String getMenuId()
          Parent menu's ID
 java.util.Vector getMenuItems()
          Collection of MenuItemImpl objects
 java.lang.String getName()
          Name of menu
 MenuItem getSelectedMenuItem(javax.servlet.http.HttpServletRequest req)
          Get currently selected menu item in this menu
 MenuItem getSelectedMenuItem(javax.servlet.http.HttpServletRequest req, boolean returnDefault)
          Get currently selected menu item in this menu
 java.lang.String getUrl(javax.servlet.jsp.PageContext pctx)
          Name of Struts forward menu item should link to
 boolean isDefault()
          Is this the default menu?
 boolean isSelected(javax.servlet.http.HttpServletRequest req)
          Is this menu selected?
 void setDefault(boolean d)
          Is this the default menu?
 void setMenuId(java.lang.String v)
          Parent menu's ID
 void setName(java.lang.String v)
          Name of menu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mMenuId

private java.lang.String mMenuId

mMenuItems

java.util.Vector mMenuItems
Vector of MenuItemImpl objects


mName

java.lang.String mName
Name of menu


mDefault

boolean mDefault
Is this the default menu?

Constructor Detail

MenuImpl

public MenuImpl()

MenuImpl

public MenuImpl(java.lang.String n)
Construct with name

Method Detail

addItem

public void addItem(MenuItemImpl item)
Add MenuItemImpl to MenuImpl


setMenuId

public void setMenuId(java.lang.String v)
Parent menu's ID


getMenuId

public java.lang.String getMenuId()
Parent menu's ID


setDefault

public void setDefault(boolean d)
Is this the default menu?


isDefault

public boolean isDefault()
Is this the default menu?

Specified by:
isDefault in interface Menu

setName

public void setName(java.lang.String v)
Name of menu


getName

public java.lang.String getName()
Name of menu

Specified by:
getName in interface Menu

getMenuItems

public java.util.Vector getMenuItems()
Collection of MenuItemImpl objects

Specified by:
getMenuItems in interface Menu

getSelectedMenuItem

public MenuItem getSelectedMenuItem(javax.servlet.http.HttpServletRequest req)
Get currently selected menu item in this menu

Specified by:
getSelectedMenuItem in interface Menu

getSelectedMenuItem

public MenuItem getSelectedMenuItem(javax.servlet.http.HttpServletRequest req,
                                    boolean returnDefault)
Get currently selected menu item in this menu


isSelected

public boolean isSelected(javax.servlet.http.HttpServletRequest req)
Is this menu selected?

Specified by:
isSelected in interface Menu

getUrl

public java.lang.String getUrl(javax.servlet.jsp.PageContext pctx)
Name of Struts forward menu item should link to

Specified by:
getUrl in interface Menu