Package io.github.mmm.ui.spi.controller
Class AbstractUiNavigationManagerImpl
- java.lang.Object
-
- io.github.mmm.event.AbstractEventSource<UiNavigationEvent,UiNavigationEventListener>
-
- io.github.mmm.ui.spi.controller.AbstractUiNavigationManager
-
- io.github.mmm.ui.spi.controller.AbstractUiNavigationManagerImpl
-
- All Implemented Interfaces:
EventSource<UiNavigationEvent,UiNavigationEventListener>,UiNavigationManager
public class AbstractUiNavigationManagerImpl extends AbstractUiNavigationManager
Abstract default implementation ofUiNavigationManager.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description AbstractUiNavigationManagerImpl()The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddHistory(UiPlace place)protected voiddoInit()intgetIndex()intgetSize()UiPlacenavigateBack()This method navigates back in the history to theUiPlacethat has been visited before.UiPlacenavigateForward()This method navigates forward in the history.protected voidreplaceHistory(UiPlace place)-
Methods inherited from class io.github.mmm.ui.spi.controller.AbstractUiNavigationManager
getController, getCurrentPlace, getRequiredController, init, navigateRecursive, navigateTo, navigateTo, onEmbedded, updatePlace
-
Methods inherited from class io.github.mmm.event.AbstractEventSource
addListener, fireEvent, getEventAdapter, hasListeners, removeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
-
Methods inherited from interface io.github.mmm.ui.api.controller.UiNavigationManager
navigateTo
-
-
-
-
Method Detail
-
doInit
protected void doInit()
- Specified by:
doInitin classAbstractUiNavigationManager- See Also:
AbstractUiNavigationManager.init()
-
addHistory
protected void addHistory(UiPlace place)
- Specified by:
addHistoryin classAbstractUiNavigationManager- Parameters:
place- is theUiPlaceto add to the history.- See Also:
UiNavigationManager.navigateTo(UiPlace)
-
replaceHistory
protected void replaceHistory(UiPlace place)
- Specified by:
replaceHistoryin classAbstractUiNavigationManager- Parameters:
place- is theUiPlaceto replace the current place in the history.- See Also:
UiNavigationManager.navigateTo(UiPlace)
-
navigateBack
public UiPlace navigateBack()
Description copied from interface:UiNavigationManagerThis method navigates back in the history to theUiPlacethat has been visited before. In a web-application this can also be triggered by pressing the back button.- Returns:
- the new
UiPlacethat we just navigated back to. Will benullif there is no history left.
-
navigateForward
public UiPlace navigateForward()
Description copied from interface:UiNavigationManagerThis method navigates forward in the history. AfterUiNavigationManager.navigateBack()was invoked, this method will go to theUiPlacethat has been visited before the invocation ofUiNavigationManager.navigateBack(). In a web-application this can also be triggered by pressing the forward button.- Returns:
- the new
UiPlacethat we just navigated forward to. Will benullif we are already at the end of the history and nothing is left to navigate forward.
-
getSize
public int getSize()
- Returns:
- the total number of places in the history.
-
getIndex
public int getIndex()
- Returns:
- the index of the current place inside the history.
-
-