public abstract class AbstractNavigationStructure extends Object implements ChangePlaceEvent.ChangePlaceHandler, NavigationStructure
AbstractNavigationPlace defines the methods which are used to handle
navigation/menu entries.| Constructor and Description |
|---|
AbstractNavigationStructure(com.google.web.bindery.event.shared.EventBus peventBus)
default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<NavigationEntryInterface> |
buildNavigation()
build the navigation list.
|
void |
buildVisibleNavigation(User puser)
build the visible navigation entries.
|
protected com.google.gwt.safehtml.shared.SafeHtml |
createMenuEntry(com.google.gwt.resources.client.ImageResource pimage,
String ptext) |
NavigationEntryInterface |
getActiveNavigationEntryInterface()
get active navigation entry interface.
|
List<NavigationEntryInterface> |
getFullNavigationList()
get full navigation list.
|
NavigationEntryInterface |
getNavigationForToken(String ptoken)
get navigation entry for given token.
|
List<NavigationEntryInterface> |
getNavigationList()
get navigation list.
|
void |
init(Session psession) |
void |
onChangePlace(ChangePlaceEvent pevent)
called on place changed.
|
void |
setActiveNavigationEntryInterface(NavigationEntryInterface pactiveNavigationEntryInterface)
set active navigation entry interface.
|
void |
setActiveNavigationEntryInterface(String ptoken)
set active navigation entry interface.
|
void |
setNavigationList(List<NavigationEntryInterface> pnavigationList)
set navigation list.
|
@Inject public AbstractNavigationStructure(com.google.web.bindery.event.shared.EventBus peventBus)
@Inject public void init(Session psession)
public final void buildVisibleNavigation(User puser)
NavigationStructurebuildVisibleNavigation in interface NavigationStructurepuser - the user to build navigation forprotected abstract List<NavigationEntryInterface> buildNavigation()
public final List<NavigationEntryInterface> getFullNavigationList()
NavigationStructuregetFullNavigationList in interface NavigationStructurepublic final List<NavigationEntryInterface> getNavigationList()
NavigationStructuregetNavigationList in interface NavigationStructurepublic final void setNavigationList(List<NavigationEntryInterface> pnavigationList)
NavigationStructuresetNavigationList in interface NavigationStructurepnavigationList - the navigationList to setpublic final NavigationEntryInterface getActiveNavigationEntryInterface()
NavigationStructuregetActiveNavigationEntryInterface in interface NavigationStructurepublic final void setActiveNavigationEntryInterface(NavigationEntryInterface pactiveNavigationEntryInterface)
NavigationStructuresetActiveNavigationEntryInterface in interface NavigationStructurepactiveNavigationEntryInterface - the activeNavigationEntryInterface to setpublic final void setActiveNavigationEntryInterface(String ptoken)
NavigationStructuresetActiveNavigationEntryInterface in interface NavigationStructureptoken - the token to setpublic final NavigationEntryInterface getNavigationForToken(String ptoken)
NavigationStructuregetNavigationForToken in interface NavigationStructureptoken - the token of the place to get navigation entry forpublic void onChangePlace(ChangePlaceEvent pevent)
NavigationStructureonChangePlace in interface ChangePlaceEvent.ChangePlaceHandleronChangePlace in interface NavigationStructurepevent - change place event fired on place changeprotected com.google.gwt.safehtml.shared.SafeHtml createMenuEntry(com.google.gwt.resources.client.ImageResource pimage,
String ptext)
Copyright © 2015–2016. All rights reserved.