Package org.opennms.web.navigate
Class LocationBasedNavBarEntry
- java.lang.Object
-
- org.opennms.web.navigate.LocationBasedNavBarEntry
-
- All Implemented Interfaces:
NavBarEntry
- Direct Known Subclasses:
AdminUserNavBarEntry
,FileBasedNavBarEntry
,MenuDropdownNavBarEntry
,SurveillanceViewNavBarEntry
public class LocationBasedNavBarEntry extends Object implements NavBarEntry
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opennms.web.navigate.NavBarEntry
NavBarEntry.NavBarContext
-
-
Constructor Summary
Constructors Constructor Description LocationBasedNavBarEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DisplayStatus
evaluate(MenuContext context)
String
getDisplayString()
List<NavBarEntry>
getEntries()
If this navbar entry has sub-entries, return them.String
getLocationMatch()
String
getName()
String
getUrl()
boolean
hasEntries()
protected boolean
isLinkMatches(MenuContext context)
void
setEntries(List<NavBarEntry> entries)
void
setLocationMatch(String locationMatch)
void
setName(String name)
void
setUrl(String url)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.web.navigate.NavBarEntry
evaluate
-
-
-
-
Method Detail
-
getDisplayString
public String getDisplayString()
- Specified by:
getDisplayString
in interfaceNavBarEntry
-
getUrl
public String getUrl()
- Specified by:
getUrl
in interfaceNavBarEntry
-
setUrl
public void setUrl(String url)
-
getName
public String getName()
- Specified by:
getName
in interfaceNavBarEntry
-
setName
public void setName(String name)
-
getEntries
public List<NavBarEntry> getEntries()
Description copied from interface:NavBarEntry
If this navbar entry has sub-entries, return them. May return null if there are no sub-entries.- Specified by:
getEntries
in interfaceNavBarEntry
-
setEntries
public void setEntries(List<NavBarEntry> entries)
-
hasEntries
public boolean hasEntries()
- Specified by:
hasEntries
in interfaceNavBarEntry
-
evaluate
public DisplayStatus evaluate(MenuContext context)
- Specified by:
evaluate
in interfaceNavBarEntry
-
getLocationMatch
public String getLocationMatch()
-
setLocationMatch
public void setLocationMatch(String locationMatch)
-
isLinkMatches
protected boolean isLinkMatches(MenuContext context)
-
-