Class SfMenuItem
- java.lang.Object
-
- com.googlecode.wicket.jquery.ui.plugins.sfmenu.AbstractSfMenuItem
-
- com.googlecode.wicket.jquery.ui.plugins.sfmenu.SfMenuItem
-
- All Implemented Interfaces:
ISfMenuItem,Serializable,org.apache.wicket.util.io.IClusterable
public class SfMenuItem extends AbstractSfMenuItem
Provides a standard menu-item that supports sub-menus, adapted for Superfish- Since:
- 6.12.0
- Author:
- Ludger Kluitmann - JavaLuigi, Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SfMenuItem(String title)ConstructorSfMenuItem(String title, Class<? extends org.apache.wicket.Page> pageClass)ConstructorSfMenuItem(String title, Class<? extends org.apache.wicket.Page> pageClass, List<ISfMenuItem> items)ConstructorSfMenuItem(String title, Class<? extends org.apache.wicket.Page> pageClass, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)ConstructorSfMenuItem(String title, String pageUrl)ConstructorSfMenuItem(String title, String pageUrl, boolean openInNewWindow)ConstructorSfMenuItem(String title, List<ISfMenuItem> items)ConstructorSfMenuItem(org.apache.wicket.model.IModel<String> title)ConstructorSfMenuItem(org.apache.wicket.model.IModel<String> title, Class<? extends org.apache.wicket.Page> pageClass)ConstructorSfMenuItem(org.apache.wicket.model.IModel<String> title, Class<? extends org.apache.wicket.Page> pageClass, List<ISfMenuItem> items)ConstructorSfMenuItem(org.apache.wicket.model.IModel<String> title, Class<? extends org.apache.wicket.Page> pageClass, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)ConstructorSfMenuItem(org.apache.wicket.model.IModel<String> title, String pageUrl, boolean openInNewWindow)ConstructorSfMenuItem(org.apache.wicket.model.IModel<String> title, List<ISfMenuItem> items)ConstructorSfMenuItem(org.apache.wicket.model.Model<String> title, String pageUrl)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddItem(ISfMenuItem item)Adds an menu-item as child of this menu-itemList<ISfMenuItem>getItems()Gets theListof submenu-items-
Methods inherited from class com.googlecode.wicket.jquery.ui.plugins.sfmenu.AbstractSfMenuItem
getPageClass, getPageParameters, getPageUrl, getTitle, isEnabled, isOpenInNewWindow, setEnabled, setOpenInNewWindow, setTitle
-
-
-
-
Constructor Detail
-
SfMenuItem
public SfMenuItem(String title)
Constructor- Parameters:
title- the title of the menu-item
-
SfMenuItem
public SfMenuItem(org.apache.wicket.model.IModel<String> title)
Constructor- Parameters:
title- IModel that represents the title of the menu-item
-
SfMenuItem
public SfMenuItem(String title, Class<? extends org.apache.wicket.Page> pageClass)
Constructor- Parameters:
title- the title of the menu-itempageClass- the class of the page to redirect to, when menu-item is clicked
-
SfMenuItem
public SfMenuItem(org.apache.wicket.model.IModel<String> title, Class<? extends org.apache.wicket.Page> pageClass)
Constructor- Parameters:
title- IModel that represents the title of the menu-itempageClass- the class of the page to redirect to, when menu-item is clicked
-
SfMenuItem
public SfMenuItem(String title, Class<? extends org.apache.wicket.Page> pageClass, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
Constructor- Parameters:
title- the title of the menu-itempageClass- the class of the page to redirect to, when menu-item is clickedpageParameters- thePageParameters
-
SfMenuItem
public SfMenuItem(org.apache.wicket.model.IModel<String> title, Class<? extends org.apache.wicket.Page> pageClass, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
Constructor- Parameters:
title- IModel that represents the title of the menu-itempageClass- the class of the page to redirect to, when menu-item is clickedpageParameters- thePageParameters
-
SfMenuItem
public SfMenuItem(String title, List<ISfMenuItem> items)
Constructor- Parameters:
title- the title of the menu-itemitems- the sub-menu items
-
SfMenuItem
public SfMenuItem(org.apache.wicket.model.IModel<String> title, List<ISfMenuItem> items)
Constructor- Parameters:
title- IModel that represents the title of the menu-itemitems- the sub-menu items
-
SfMenuItem
public SfMenuItem(String title, Class<? extends org.apache.wicket.Page> pageClass, List<ISfMenuItem> items)
Constructor- Parameters:
title- the title of the menu-itempageClass- the class of the page to redirect to, when menu-item is clickeditems- the sub-menu items
-
SfMenuItem
public SfMenuItem(org.apache.wicket.model.IModel<String> title, Class<? extends org.apache.wicket.Page> pageClass, List<ISfMenuItem> items)
Constructor- Parameters:
title- IModel that represents the title of the menu-itempageClass- the class of the page to redirect to, when menu-item is clickeditems- the sub-menu items
-
SfMenuItem
public SfMenuItem(String title, String pageUrl)
Constructor- Parameters:
title- title of the menu-itempageUrl- the url of the page to redirect to when menu-item is clicked
-
SfMenuItem
public SfMenuItem(org.apache.wicket.model.Model<String> title, String pageUrl)
Constructor- Parameters:
title- IModel that represents the title of the menu-itempageUrl- the url of the page to redirect to when menu-item is clicked
-
SfMenuItem
public SfMenuItem(String title, String pageUrl, boolean openInNewWindow)
Constructor- Parameters:
title- title of the menu-itempageUrl- the url of the page to redirect to when menu-item is clickedopenInNewWindow- whether the page is opened in a new window
-
SfMenuItem
public SfMenuItem(org.apache.wicket.model.IModel<String> title, String pageUrl, boolean openInNewWindow)
Constructor- Parameters:
title- IModel that represents the title of the menu-itempageUrl- the url of the page to redirect to when menu-item is clickedopenInNewWindow- whether the page is opened in a new window
-
-
Method Detail
-
getItems
public List<ISfMenuItem> getItems()
Description copied from interface:ISfMenuItemGets theListof submenu-items- Specified by:
getItemsin interfaceISfMenuItem- Overrides:
getItemsin classAbstractSfMenuItem- Returns:
- the
Listof submenu-items
-
addItem
public boolean addItem(ISfMenuItem item)
Adds an menu-item as child of this menu-item- Parameters:
item- theISfMenuItem- Returns:
- true (as specified by
Collection.add(Object))
-
-