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 java.lang.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)
java.lang.String
getDisplayString()
java.util.List<NavBarEntry>
getEntries()
If this navbar entry has sub-entries, return them.java.lang.String
getLocationMatch()
java.lang.String
getName()
java.lang.String
getUrl()
boolean
hasEntries()
protected boolean
isLinkMatches(MenuContext context)
void
setEntries(java.util.List<NavBarEntry> entries)
void
setLocationMatch(java.lang.String locationMatch)
void
setName(java.lang.String name)
void
setUrl(java.lang.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 java.lang.String getDisplayString()
- Specified by:
getDisplayString
in interfaceNavBarEntry
-
getUrl
public java.lang.String getUrl()
- Specified by:
getUrl
in interfaceNavBarEntry
-
setUrl
public void setUrl(java.lang.String url)
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceNavBarEntry
-
setName
public void setName(java.lang.String name)
-
getEntries
public java.util.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(java.util.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 java.lang.String getLocationMatch()
-
setLocationMatch
public void setLocationMatch(java.lang.String locationMatch)
-
isLinkMatches
protected boolean isLinkMatches(MenuContext context)
-
-