Class AbstractNavigationStructure
java.lang.Object
de.knightsoftnet.navigation.client.ui.navigation.AbstractNavigationStructure
- All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler,ChangePlaceEvent.ChangePlaceHandler,NavigationStructure
- Direct Known Subclasses:
DummyNavigationStructure
public abstract class AbstractNavigationStructure
extends Object
implements ChangePlaceEvent.ChangePlaceHandler, NavigationStructure
The
AbstractNavigationPlace defines the methods which are used to handle
navigation/menu entries.- Author:
- Manfred Tremmel
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractNavigationStructure(com.google.web.bindery.event.shared.EventBus eventBus) default constructor.protectedAbstractNavigationStructure(com.google.web.bindery.event.shared.EventBus eventBus, String loginToken) constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract List<NavigationEntryInterface> build the navigation list.final voidbuildVisibleNavigation(de.knightsoftnet.gwtp.spring.shared.models.User user) build the visible navigation entries.protected com.google.gwt.safehtml.shared.SafeHtmlcreateMenuEntry(com.google.gwt.resources.client.ImageResource image, String text) final NavigationEntryInterfaceget active navigation entry interface.final List<NavigationEntryInterface> get full navigation list.final Stringget the login token.final NavigationEntryInterfacegetNavigationForToken(String token) get navigation entry for given token.final List<NavigationEntryInterface> get navigation list.voidvoidonChangePlace(ChangePlaceEvent event) called on place changed.final voidsetActiveNavigationEntryInterface(NavigationEntryInterface activeNavigationEntryInterface) set active navigation entry interface.final voidset active navigation entry interface.final voidsetLoginToken(String loginToken) set the login token.final voidsetNavigationList(List<NavigationEntryInterface> navigationList) set navigation list.
-
Constructor Details
-
Method Details
-
init
-
getLoginToken
Description copied from interface:NavigationStructureget the login token.- Specified by:
getLoginTokenin interfaceNavigationStructure- Returns:
- login token
-
setLoginToken
Description copied from interface:NavigationStructureset the login token.- Specified by:
setLoginTokenin interfaceNavigationStructure- Parameters:
loginToken- login token
-
createMenuEntry
protected com.google.gwt.safehtml.shared.SafeHtml createMenuEntry(com.google.gwt.resources.client.ImageResource image, String text)
-