com.sap.netweaver.bc.uwl.config

Class MenuItemCollection

java.lang.Object
  extended bycom.sap.netweaver.bc.uwl.config.MenuItemCollection
All Implemented Interfaces:
Cloneable, Serializable

public final class MenuItemCollection
extends Object
implements Cloneable, Serializable

Collection of MenuItem objects.

See Also:
Serialized Form

Constructor Summary
MenuItemCollection()
          Empty Constructor
MenuItemCollection(ArrayList list)
          Create a MenuItemCollection using the List of MenuItems to initialize it with.
 
Method Summary
 MenuItem getMenuItem(String name)
          Return the MenuItem by its name.
 MenuItem[] getMenuItems()
          Convert the list into MenuItem array.
 List getMenuList()
          Get access to the List of MenuItem directly
 void setMenuList(List list)
          Replace the current list with the new List of MenuItems
 int size()
          Return the number of MenuItem in the Collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuItemCollection

public MenuItemCollection(ArrayList list)
Create a MenuItemCollection using the List of MenuItems to initialize it with.

Parameters:
list -

MenuItemCollection

public MenuItemCollection()
Empty Constructor

Method Detail

size

public int size()
Return the number of MenuItem in the Collection

Returns:

getMenuList

public List getMenuList()
Get access to the List of MenuItem directly

Returns:

getMenuItem

public MenuItem getMenuItem(String name)
Return the MenuItem by its name.

Parameters:
name -
Returns:
null if the MenuItem is not in the list.

setMenuList

public void setMenuList(List list)
Replace the current list with the new List of MenuItems

Parameters:
list -

getMenuItems

public MenuItem[] getMenuItems()
Convert the list into MenuItem array.

Returns:
an empty MenuItem array will be return if it is empty.


Copyright 2006 SAP AG Complete Copyright Notice