Package org.opennms.web.navigate
Class DefaultMenuEntry
- java.lang.Object
-
- org.opennms.web.navigate.DefaultMenuEntry
-
-
Constructor Summary
Constructors Constructor Description DefaultMenuEntry(String name, String url, DisplayStatus displayStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEntries(List<MenuEntry> entries)
DisplayStatus
getDisplayStatus()
List<MenuEntry>
getEntries()
If the list is null or empty, theMenuEntry
is a leaf element and actually clickable.String
getName()
String
getUrl()
-
-
-
Constructor Detail
-
DefaultMenuEntry
public DefaultMenuEntry(String name, String url, DisplayStatus displayStatus)
-
-
Method Detail
-
getEntries
public List<MenuEntry> getEntries()
Description copied from interface:MenuEntry
If the list is null or empty, theMenuEntry
is a leaf element and actually clickable.- Specified by:
getEntries
in interfaceMenuEntry
- Returns:
- The number of sub elements if this
MenuEntry
is a parent element. Otherwise an empty list or null.
-
getDisplayStatus
public DisplayStatus getDisplayStatus()
- Specified by:
getDisplayStatus
in interfaceMenuEntry
-
-