Class UrlMenuItem
- java.lang.Object
-
- com.googlecode.wicket.kendo.ui.widget.menu.item.AbstractMenuItem
-
- com.googlecode.wicket.kendo.ui.widget.menu.item.UrlMenuItem
-
- All Implemented Interfaces:
IMenuItem
,Serializable
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
PageMenuItem
public class UrlMenuItem extends AbstractMenuItem
Provides a menu-item that redirect to a url- Since:
- 6.15.0
- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UrlMenuItem(String title, CharSequence url)
ConstructorUrlMenuItem(String title, String icon, CharSequence url)
ConstructorUrlMenuItem(org.apache.wicket.model.IModel<String> title, CharSequence url)
ConstructorUrlMenuItem(org.apache.wicket.model.IModel<String> title, String icon, CharSequence url)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getUrl()
void
onClick(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the menu-item is clicked-
Methods inherited from class com.googlecode.wicket.kendo.ui.widget.menu.item.AbstractMenuItem
getIcon, getId, getItems, getTitle, isEnabled, isSelected, setEnabled, setIcon, setSelected, setTitle
-
-
-
-
Constructor Detail
-
UrlMenuItem
public UrlMenuItem(String title, CharSequence url)
Constructor- Parameters:
title
- the title of the menu-itemurl
- the url to redirect to
-
UrlMenuItem
public UrlMenuItem(String title, String icon, CharSequence url)
Constructor- Parameters:
title
- the title of the menu-itemicon
- either aKendoIcon
constant or a 'k-i-icon' css classurl
- the url to redirect to
-
UrlMenuItem
public UrlMenuItem(org.apache.wicket.model.IModel<String> title, CharSequence url)
Constructor- Parameters:
title
- IModel that represent the title of the menu-itemurl
- the url to redirect to
-
UrlMenuItem
public UrlMenuItem(org.apache.wicket.model.IModel<String> title, String icon, CharSequence url)
Constructor- Parameters:
title
- IModel that represent the title of the menu-itemicon
- either aKendoIcon
constant or a 'k-i-icon' css classurl
- the url to redirect to
-
-