com.googlecode.wicket.jquery.ui.widget.menu
Class MenuItem

java.lang.Object
  extended by com.googlecode.wicket.jquery.ui.widget.menu.AbstractMenuItem
      extended by com.googlecode.wicket.jquery.ui.widget.menu.MenuItem
All Implemented Interfaces:
IMenuItem, Serializable, org.apache.wicket.IClusterable

public class MenuItem
extends AbstractMenuItem

Provides a standard menu-item that supports sub-menus

Since:
1.4.2, 6.2.2
Author:
Sebastien Briquet - sebfz1
See Also:
Serialized Form

Constructor Summary
MenuItem(org.apache.wicket.model.IModel<String> title)
          Constructor
MenuItem(org.apache.wicket.model.IModel<String> title, List<IMenuItem> items)
          Constructor
MenuItem(org.apache.wicket.model.IModel<String> title, String icon)
          Constructor
MenuItem(org.apache.wicket.model.IModel<String> title, String icon, List<IMenuItem> items)
          Constructor
MenuItem(String title)
          Constructor
MenuItem(String title, List<IMenuItem> items)
          Constructor
MenuItem(String title, String icon)
          Constructor
MenuItem(String title, String icon, List<IMenuItem> items)
          Constructor
 
Method Summary
 boolean addItem(IMenuItem item)
           
 List<IMenuItem> getItems()
          Gets the List of submenu-items
 void onClick(org.apache.wicket.ajax.AjaxRequestTarget target)
          Triggered when the menu-item is clicked
 
Methods inherited from class com.googlecode.wicket.jquery.ui.widget.menu.AbstractMenuItem
getIcon, getId, getTitle, isEnabled, setEnabled, setIcon, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuItem

public MenuItem(String title)
Constructor

Parameters:
title - the title of the menu-item

MenuItem

public MenuItem(String title,
                String icon)
Constructor

Parameters:
title - the title of the menu-item
icon - the icon css class (ie: ui-my-icon)

MenuItem

public MenuItem(org.apache.wicket.model.IModel<String> title)
Constructor

Parameters:
title - IModel that represent the title of the menu-item

MenuItem

public MenuItem(org.apache.wicket.model.IModel<String> title,
                String icon)
Constructor

Parameters:
title - IModel that represent the title of the menu-item
icon - the icon css class (ie: ui-my-icon)

MenuItem

public MenuItem(String title,
                List<IMenuItem> items)
Constructor

Parameters:
title - the title of the menu-item
items - the sub-menu items

MenuItem

public MenuItem(String title,
                String icon,
                List<IMenuItem> items)
Constructor

Parameters:
title - the title of the menu-item
icon - the icon css class (ie: ui-my-icon)
items - the sub-menu items

MenuItem

public MenuItem(org.apache.wicket.model.IModel<String> title,
                List<IMenuItem> items)
Constructor

Parameters:
title - IModel that represent the title of the menu-item
items - the sub-menu items

MenuItem

public MenuItem(org.apache.wicket.model.IModel<String> title,
                String icon,
                List<IMenuItem> items)
Constructor

Parameters:
title - IModel that represent the title of the menu-item
icon - the icon css class (ie: ui-my-icon)
items - the sub-menu items
Method Detail

getItems

public List<IMenuItem> getItems()
Description copied from interface: IMenuItem
Gets the List of submenu-items

Specified by:
getItems in interface IMenuItem
Overrides:
getItems in class AbstractMenuItem
Returns:
the List of submenu-items

addItem

public boolean addItem(IMenuItem item)

onClick

public void onClick(org.apache.wicket.ajax.AjaxRequestTarget target)
Description copied from interface: IMenuItem
Triggered when the menu-item is clicked

Parameters:
target - the AjaxRequestTarget


Copyright © 2013 7thWeb. All Rights Reserved.