Class CustomMenu
- java.lang.Object
-
- fr.paris.lutece.plugins.menus.business.CustomMenu
-
- All Implemented Interfaces:
java.io.Serializable
public class CustomMenu extends java.lang.Object implements java.io.SerializableThis is the business class for the object CustomMenu- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE_INTERNALstatic java.lang.StringTYPE_MAINstatic java.lang.StringTYPE_SIDEBARstatic java.lang.StringTYPE_SUBMENU
-
Constructor Summary
Constructors Constructor Description CustomMenu()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(CustomMenuItem item)Add an item to the menujava.lang.StringgetBookmark()Returns the Bookmarkjava.lang.StringgetDescription()Returns the DescriptionintgetId()Returns the Idjava.util.List<CustomMenuItem>getListItems()Returns the list of itemsjava.lang.StringgetName()Returns the Namejava.lang.StringgetType()Returns the TypevoidremoveItem(CustomMenuItem item)Remove an item from the menuvoidsetBookmark(java.lang.String strBookmark)Sets the BookmarkvoidsetDescription(java.lang.String strDescription)Sets the descriptionvoidsetId(int nId)Sets the IdvoidsetListItems(java.util.List<CustomMenuItem> listItems)Sets the list of itemsvoidsetName(java.lang.String strName)Sets the NamevoidsetType(java.lang.String strType)Sets the Type
-
-
-
Field Detail
-
TYPE_MAIN
public static final java.lang.String TYPE_MAIN
- See Also:
- Constant Field Values
-
TYPE_SUBMENU
public static final java.lang.String TYPE_SUBMENU
- See Also:
- Constant Field Values
-
TYPE_INTERNAL
public static final java.lang.String TYPE_INTERNAL
- See Also:
- Constant Field Values
-
TYPE_SIDEBAR
public static final java.lang.String TYPE_SIDEBAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public int getId()
Returns the Id- Returns:
- The Id
-
setId
public void setId(int nId)
Sets the Id- Parameters:
nId- The Id
-
getName
public java.lang.String getName()
Returns the Name- Returns:
- The Name
-
setName
public void setName(java.lang.String strName)
Sets the Name- Parameters:
strName- The Name
-
getBookmark
public java.lang.String getBookmark()
Returns the Bookmark- Returns:
- The Bookmark
-
setBookmark
public void setBookmark(java.lang.String strBookmark)
Sets the Bookmark- Parameters:
strBookmark- The Bookmark
-
getType
public java.lang.String getType()
Returns the Type- Returns:
- The Type
-
setType
public void setType(java.lang.String strType)
Sets the Type- Parameters:
strType- The Type
-
getDescription
public java.lang.String getDescription()
Returns the Description- Returns:
- The Description
-
setDescription
public void setDescription(java.lang.String strDescription)
Sets the description- Parameters:
string- Description The Description
-
getListItems
public java.util.List<CustomMenuItem> getListItems()
Returns the list of items- Returns:
- The list of items
-
setListItems
public void setListItems(java.util.List<CustomMenuItem> listItems)
Sets the list of items- Parameters:
listItems- The list of items
-
addItem
public void addItem(CustomMenuItem item)
Add an item to the menu- Parameters:
item- The item to add
-
removeItem
public void removeItem(CustomMenuItem item)
Remove an item from the menu- Parameters:
item- The item to remove
-
-