embedCONTROLCore
Public Member Functions | List of all members
com.thecoderscorner.embedcontrol.core.controlmgr.NavigationManager< T, I > Interface Template Reference
Inheritance diagram for com.thecoderscorner.embedcontrol.core.controlmgr.NavigationManager< T, I >:
com.thecoderscorner.embedcontrol.jfx.controlmgr.JfxNavigationManager com.thecoderscorner.embedcontrol.jfx.controlmgr.JfxNavigationHeader

Public Member Functions

void popNavigation ()
 
void resetNavigationTo (PanelPresentable< T > navigation)
 
void pushNavigation (PanelPresentable< T > navigation)
 
void pushMenuNavigation (SubMenuItem subMenuItem, boolean resetNavigation)
 
PanelPresentable< Node > currentNavigationPanel ()
 
void setTitle (String newTitle)
 
void addTitleWidget (TitleWidget< I > titleWidget)
 
void addWidgetClickedListener (BiConsumer< ActionEvent, TitleWidget< Image >> listener)
 
void pushMenuNavigation (SubMenuItem subMenuItem)
 
DialogManager getDialogManager ()
 

Detailed Description

Provides the core navigational capabilities within the app, it handles the stack of panels that have been presented and the ability to go backwards out of them using pop. It is also possible to reset the navigation back to a single panel. Title widgets are also managed by the navigation manager, where you can add widgets and also register for clicks on the widget's underlying button.

Parameters
<T>The UI display type
<I>The UI Image type required by title widgets

Member Function Documentation

◆ addTitleWidget()

void com.thecoderscorner.embedcontrol.core.controlmgr.NavigationManager< T, I >.addTitleWidget ( TitleWidget< I >  titleWidget)

Adds a title widget to the widgets displayed generally on the right hand side of the menu. On touch screen systems it is possible to interact with this and clicking one results in a clicked listener callback.

Parameters
titleWidgetthe title widget to add
See also
TitleWidget

◆ addWidgetClickedListener()

void com.thecoderscorner.embedcontrol.core.controlmgr.NavigationManager< T, I >.addWidgetClickedListener ( BiConsumer< ActionEvent, TitleWidget< Image >>  listener)

Adds a listener that is informed when a title widget is clicked.

Parameters
listenerto be informed when a title widget is clicked in the UI

Implemented in com.thecoderscorner.embedcontrol.jfx.controlmgr.JfxNavigationHeader.

◆ currentNavigationPanel()

Gets the panel that is currently being displayed

Returns
the panel presentable that is being display

Implemented in com.thecoderscorner.embedcontrol.jfx.controlmgr.JfxNavigationHeader.

◆ getDialogManager()

DialogManager com.thecoderscorner.embedcontrol.core.controlmgr.NavigationManager< T, I >.getDialogManager ( )

Get hold of the dialog manager instance that can present a simple one or two button dialog on the display, even remotely.

Implemented in com.thecoderscorner.embedcontrol.jfx.controlmgr.JfxNavigationHeader.

◆ popNavigation()

Go back one level in the navigation. Usually there is a back button that will control going back one level, it will be enabled whenever canClose returns true.

Implemented in com.thecoderscorner.embedcontrol.jfx.controlmgr.JfxNavigationHeader.

◆ pushMenuNavigation() [1/2]

void com.thecoderscorner.embedcontrol.core.controlmgr.NavigationManager< T, I >.pushMenuNavigation ( SubMenuItem  subMenuItem)

Push a new submenu to be displayed, a shortcut for pushNavigation that prepares a new menu panel.

Parameters
subMenuItemthe submenu to present.

Implemented in com.thecoderscorner.embedcontrol.jfx.controlmgr.JfxNavigationHeader.

◆ pushMenuNavigation() [2/2]

void com.thecoderscorner.embedcontrol.core.controlmgr.NavigationManager< T, I >.pushMenuNavigation ( SubMenuItem  subMenuItem,
boolean  resetNavigation 
)

Push a new menu onto the display with the option to reset the layout at the same time by passing true as the second parameter.

Parameters
subMenuItemthe submenu to present
resetNavigationtrue to completely reset the navigation stack, otherwise false.

Implemented in com.thecoderscorner.embedcontrol.jfx.controlmgr.JfxNavigationHeader.

◆ pushNavigation()

Push a new item onto the navigation queue, so that the panel is displayed and at the top of the stack.

Parameters
navigationthe navigation item to add
See also
PanelPresentable

◆ resetNavigationTo()

void com.thecoderscorner.embedcontrol.core.controlmgr.NavigationManager< T, I >.resetNavigationTo ( PanelPresentable< T >  navigation)

Reset the navigation stack to just this single item, removing all other items from the list.

Parameters
navigationthe navigation item to switch to.
See also
PanelPresentable

◆ setTitle()

void com.thecoderscorner.embedcontrol.core.controlmgr.NavigationManager< T, I >.setTitle ( String  newTitle)

Override the current title with the new title, by default the title is set during push/pop operations

Parameters
newTitlethe title text

Implemented in com.thecoderscorner.embedcontrol.jfx.controlmgr.JfxNavigationHeader.


The documentation for this interface was generated from the following file: