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
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:
-
Constructor Summary
ConstructorsConstructorDescriptionSfMenuItem
(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
Modifier and TypeMethodDescriptionboolean
addItem
(ISfMenuItem item) Adds an menu-item as child of this menu-itemgetItems()
Gets theList
of submenu-itemsMethods inherited from class com.googlecode.wicket.jquery.ui.plugins.sfmenu.AbstractSfMenuItem
getPageClass, getPageParameters, getPageUrl, getTitle, isEnabled, isOpenInNewWindow, setEnabled, setOpenInNewWindow, setTitle
-
Constructor Details
-
SfMenuItem
Constructor- Parameters:
title
- the title of the menu-item
-
SfMenuItem
Constructor- Parameters:
title
- IModel that represents the title of the menu-item
-
SfMenuItem
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
Constructor- Parameters:
title
- the title of the menu-itemitems
- the sub-menu items
-
SfMenuItem
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
Constructor- Parameters:
title
- title of the menu-itempageUrl
- the url of the page to redirect to when menu-item is clicked
-
SfMenuItem
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
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 Details
-
getItems
Description copied from interface:ISfMenuItem
Gets theList
of submenu-items- Specified by:
getItems
in interfaceISfMenuItem
- Overrides:
getItems
in classAbstractSfMenuItem
- Returns:
- the
List
of submenu-items
-