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 DisplayStatusevaluate(MenuContext context)StringgetDisplayString()List<NavBarEntry>getEntries()If this navbar entry has sub-entries, return them.StringgetLocationMatch()StringgetName()StringgetUrl()booleanhasEntries()protected booleanisLinkMatches(MenuContext context)voidsetEntries(List<NavBarEntry> entries)voidsetLocationMatch(String locationMatch)voidsetName(String name)voidsetUrl(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:
getDisplayStringin interfaceNavBarEntry
-
getUrl
public String getUrl()
- Specified by:
getUrlin interfaceNavBarEntry
-
setUrl
public void setUrl(String url)
-
getName
public String getName()
- Specified by:
getNamein interfaceNavBarEntry
-
setName
public void setName(String name)
-
getEntries
public List<NavBarEntry> getEntries()
Description copied from interface:NavBarEntryIf this navbar entry has sub-entries, return them. May return null if there are no sub-entries.- Specified by:
getEntriesin interfaceNavBarEntry
-
setEntries
public void setEntries(List<NavBarEntry> entries)
-
hasEntries
public boolean hasEntries()
- Specified by:
hasEntriesin interfaceNavBarEntry
-
evaluate
public DisplayStatus evaluate(MenuContext context)
- Specified by:
evaluatein interfaceNavBarEntry
-
getLocationMatch
public String getLocationMatch()
-
setLocationMatch
public void setLocationMatch(String locationMatch)
-
isLinkMatches
protected boolean isLinkMatches(MenuContext context)
-
-