java.lang.Object
javax.ide.menu.spi.Positionable
javax.ide.menu.spi.Section
- All Implemented Interfaces:
- javax.ide.Identifiable
- public final class Section
- extends Positionable
A section is a collection of Items and Menus.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_items
private final PositionMap _items
Section
public Section(java.lang.String id)
getContent
public java.util.List getContent()
- Get the content of this section. The items in the list may be instances
of either Item or Menu.
getItem
public Positionable getItem(java.lang.String id)
addItem
void addItem(Positionable item)
getBefore
public final java.lang.String getBefore()
getAfter
public final java.lang.String getAfter()
getID
public final java.lang.String getID()
- Description copied from interface:
javax.ide.Identifiable
- Gets this object's unique identifier.
- Specified by:
getID
in interface javax.ide.Identifiable
setBefore
void setBefore(java.lang.String before)
setAfter
void setAfter(java.lang.String after)