public class WebMenu
extends java.lang.Object
WebMenuSection
.Constructor and Description |
---|
WebMenu(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
addSection(java.lang.String sectionName,
java.lang.String label,
java.util.List<? extends com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> items)
Adds a section to the menu with the given name and list of items.
|
java.lang.String |
getId() |
java.util.List<WebMenuSection> |
getSections() |
boolean |
isEmpty() |
java.lang.String |
toString() |
public java.lang.String getId()
public void addSection(java.lang.String sectionName, java.lang.String label, java.util.List<? extends com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> items)
sectionName
- the name of the section, used for ID and class name generationlabel
- the i18n label for the sectionitems
- the list of items in the menu sectionpublic boolean isEmpty()
addSection(String, String, List)
does
not allow the addition of empty sections.public java.util.List<WebMenuSection> getSections()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-2014 Atlassian. All Rights Reserved.