public class Menu extends Object implements Serializable
Menu
class represents a complete menu within a MenuBarPanel
. A
MenuBarPanel
consist of a List
of Menu
s.Constructor and Description |
---|
Menu(org.apache.wicket.model.Model<String> model) |
Menu(org.apache.wicket.model.Model<String> model,
List<IMenuLink> menuItems)
Constructs a menu.
|
Modifier and Type | Method and Description |
---|---|
Menu |
addMenuItem(IMenuLink item) |
List<IMenuLink> |
getMenuItems()
|
org.apache.wicket.model.Model<String> |
getModel()
Gets the model.
|
boolean |
isVisible()
Gets whether the
Menu is visible. |
void |
redraw(org.apache.wicket.ajax.AjaxRequestTarget target) |
Menu |
setAssociatedComponent(org.apache.wicket.Component c) |
Menu |
setVisible(boolean visible)
Sets wheter the complete
Menu is visible. |
String |
toString() |
public Menu(org.apache.wicket.model.Model<String> model, List<IMenuLink> menuItems)
model
- The Model
that name of the menumenuItems
- A List
of the IMenuLink that belong to this Menu
.public Menu(org.apache.wicket.model.Model<String> model)
public org.apache.wicket.model.Model<String> getModel()
Menu
is used to hold the String
that is used to disply the title
of a menu.public Menu setVisible(boolean visible)
Menu
is visible.visible
- true
if this Menu
should be visible.public boolean isVisible()
Menu
is visible.true
if the Menu
is visible.public Menu setAssociatedComponent(org.apache.wicket.Component c)
public void redraw(org.apache.wicket.ajax.AjaxRequestTarget target)
Copyright © 2015. All rights reserved.