Interface ISfMenuItem
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable,Serializable
- All Known Implementing Classes:
AbstractSfMenuItem,SfMenuItem
public interface ISfMenuItem
extends org.apache.wicket.util.io.IClusterable
Interface used to represent a single item in a
SfMenu, adapted for Superfish- Since:
- 6.12.0
- Author:
- Ludger Kluitmann - JavaLuigi, Sebastien Briquet - sebfz1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetItems()Gets theListof submenu-itemsClass<? extends org.apache.wicket.Page>Gets the page class registered with the linkorg.apache.wicket.request.mapper.parameter.PageParametersGets the page parametersGets the url for a page.org.apache.wicket.model.IModel<String>getTitle()Gets the menu-item titlebooleanIndicates whether the menu-item is enabledbooleanIndicates whether the pages is opened in a new window
-
Method Details
-
getTitle
org.apache.wicket.model.IModel<String> getTitle()Gets the menu-item title- Returns:
- the menu-item title
-
getItems
List<ISfMenuItem> getItems()Gets theListof submenu-items- Returns:
- the
Listof submenu-items
-
getPageClass
Class<? extends org.apache.wicket.Page> getPageClass()Gets the page class registered with the link- Returns:
- Page Class
-
getPageParameters
org.apache.wicket.request.mapper.parameter.PageParameters getPageParameters()Gets the page parameters- Returns:
- the
PageParameters
-
getPageUrl
String getPageUrl()Gets the url for a page. In most cases this will be an url for an external page.- Returns:
- url of the page
-
isEnabled
boolean isEnabled()Indicates whether the menu-item is enabled- Returns:
- true or false
-
isOpenInNewWindow
boolean isOpenInNewWindow()Indicates whether the pages is opened in a new window- Returns:
- true or false
-