nl.surfnet.coin.selfservice.domain
Class MenuItem

java.lang.Object
  extended by nl.surfnet.coin.selfservice.domain.MenuItem

public class MenuItem
extends Object

Menu item


Constructor Summary
MenuItem(String label, String url)
           
MenuItem(String label, String url, boolean selected)
           
 
Method Summary
 void addMenuItem(MenuItem menuItem)
           
 boolean equals(Object obj)
           
 String getLabel()
           
 List<MenuItem> getMenuItems()
           
 String getUrl()
           
 int hashCode()
           
 boolean isSelected()
           
 void setSelected(boolean selected)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuItem

public MenuItem(String label,
                String url)

MenuItem

public MenuItem(String label,
                String url,
                boolean selected)
Method Detail

getLabel

public String getLabel()
Returns:
label of the menu item, can be an i18n key

getUrl

public String getUrl()
Returns:
URL the menu item links to

isSelected

public boolean isSelected()
Returns:
flag to define if this is the selected menu item

setSelected

public void setSelected(boolean selected)

getMenuItems

public List<MenuItem> getMenuItems()
Returns:
List of chile MenuItem's

addMenuItem

public void addMenuItem(MenuItem menuItem)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.