org.sakaiproject.cheftool.api
Interface Menu

All Superinterfaces:
MenuItem

public interface Menu
extends MenuItem

Menu is an interface for an ordered list of MenuItems.


Field Summary
static String CONTEXT_ACTION
           
static String CONTEXT_MENU
           
static String STATE_MENU
           
 
Fields inherited from interface org.sakaiproject.cheftool.api.MenuItem
CHECKED_FALSE, CHECKED_NA, CHECKED_TRUE
 
Method Summary
 MenuItem add(MenuItem item)
          Add a menu item to the bar.
 void adjustDividers()
          Adjust by removing any dividers at the start or end.
 void clear()
          Clear the menu of all items.
 boolean getShowdisabled()
          Access whether disabled items in this menu should be shown.
 Menu setShowdisabled(boolean value)
          Set whether disabled items in this menu should be shown.
 
Methods inherited from interface org.sakaiproject.cheftool.api.MenuItem
getAccessibilityLabel, getAction, getChecked, getForm, getIcon, getIsContainer, getIsDivider, getIsEnabled, getIsField, getItem, getItems, getTitle, getUrl, isEmpty, size
 

Field Detail

CONTEXT_ACTION

static final String CONTEXT_ACTION
See Also:
Constant Field Values

CONTEXT_MENU

static final String CONTEXT_MENU
See Also:
Constant Field Values

STATE_MENU

static final String STATE_MENU
See Also:
Constant Field Values
Method Detail

add

MenuItem add(MenuItem item)
Add a menu item to the bar.

Parameters:
entry - The menu item to add.
Returns:
the item.

clear

void clear()
Clear the menu of all items.


adjustDividers

void adjustDividers()
Adjust by removing any dividers at the start or end.


setShowdisabled

Menu setShowdisabled(boolean value)
Set whether disabled items in this menu should be shown.

Parameters:
value - True to show disabled items, False otherwise.
Returns:
This, for convenience.

getShowdisabled

boolean getShowdisabled()
Access whether disabled items in this menu should be shown.

Returns:
Current setting for show-disabled status (true to show disabled items, false to NOT show disabled items).


Copyright © 2006-2013 The Sakai Foundation. All Rights Reserved.