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 void
addHistory(UiPlace place)
protected void
doInit()
int
getIndex()
int
getSize()
UiPlace
navigateBack()
This method navigates back in the history to theUiPlace
that has been visited before.UiPlace
navigateForward()
This method navigates forward in the history.protected void
replaceHistory(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:
doInit
in classAbstractUiNavigationManager
- See Also:
AbstractUiNavigationManager.init()
-
addHistory
protected void addHistory(UiPlace place)
- Specified by:
addHistory
in classAbstractUiNavigationManager
- Parameters:
place
- is theUiPlace
to add to the history.- See Also:
UiNavigationManager.navigateTo(UiPlace)
-
replaceHistory
protected void replaceHistory(UiPlace place)
- Specified by:
replaceHistory
in classAbstractUiNavigationManager
- Parameters:
place
- is theUiPlace
to replace the current place in the history.- See Also:
UiNavigationManager.navigateTo(UiPlace)
-
navigateBack
public UiPlace navigateBack()
Description copied from interface:UiNavigationManager
This method navigates back in the history to theUiPlace
that has been visited before. In a web-application this can also be triggered by pressing the back button.- Returns:
- the new
UiPlace
that we just navigated back to. Will benull
if there is no history left.
-
navigateForward
public UiPlace navigateForward()
Description copied from interface:UiNavigationManager
This method navigates forward in the history. AfterUiNavigationManager.navigateBack()
was invoked, this method will go to theUiPlace
that 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
UiPlace
that we just navigated forward to. Will benull
if 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.
-
-