Package io.github.mmm.ui.api.controller
Interface UiController<V extends io.github.mmm.ui.api.widget.UiRegularWidget>
-
- Type Parameters:
V- type of theview.
- All Superinterfaces:
io.github.mmm.ui.api.attribute.AttributeReadId,io.github.mmm.ui.api.attribute.AttributeReadTitle,io.github.mmm.ui.api.attribute.AttributeReadVisible
public interface UiController<V extends io.github.mmm.ui.api.widget.UiRegularWidget> extends io.github.mmm.ui.api.attribute.AttributeReadTitle, io.github.mmm.ui.api.attribute.AttributeReadId, io.github.mmm.ui.api.attribute.AttributeReadVisibleThis is the interface for a dialog of the client application. It displays itself in the page of the main application window. It is a singleton instance that is addressed via aUiPlace. AUiControlleris not aUiWidgetshould NOT be mixed with awinodworpopup.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringID_CONTENTTheidof the contentUiController.static StringID_FOOTERTheidof the headerUiController.static StringID_HEADERTheidof the headerUiController.static StringID_HOMETheidof theUiControllerfor the home page.static StringID_MARGINTheidof the marginUiController.static StringID_NAVIGATIONTheidof the navigationUiController.static StringID_PAGETheidof the pageUiController.static StringID_ROOTTheidof the rootUiController.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidembed(UiEmbedding embedding, UiController<?> childController)StringgetId()The ID of a controller should only contain ASCII letters, Latin digits, hyphens or underscores.StringgetTitle()VgetView()default booleanisNavigable()
-
-
-
Field Detail
-
ID_ROOT
static final String ID_ROOT
Theidof the rootUiController.- See Also:
- Constant Field Values
-
ID_HOME
static final String ID_HOME
Theidof theUiControllerfor the home page.- See Also:
- Constant Field Values
-
ID_PAGE
static final String ID_PAGE
Theidof the pageUiController.- See Also:
- Constant Field Values
-
ID_CONTENT
static final String ID_CONTENT
Theidof the contentUiController.- See Also:
- Constant Field Values
-
ID_NAVIGATION
static final String ID_NAVIGATION
Theidof the navigationUiController.- See Also:
- Constant Field Values
-
ID_HEADER
static final String ID_HEADER
- See Also:
- Constant Field Values
-
ID_FOOTER
static final String ID_FOOTER
- See Also:
- Constant Field Values
-
ID_MARGIN
static final String ID_MARGIN
Theidof the marginUiController. Itsviewis supposed to beembeddedat the right of the page (in the margin column).- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
String getId()
The ID of a controller should only contain ASCII letters, Latin digits, hyphens or underscores. It may also contain slashes ('/') or the hash sign ('#'). It must not contain '?', '&', '=', ':', ';', '\\' or ' '.
-
getTitle
String getTitle()
- Specified by:
getTitlein interfaceio.github.mmm.ui.api.attribute.AttributeReadTitle
-
isNavigable
default boolean isNavigable()
- Returns:
trueif thisUiControllercan benavigateddirectly (default),falseotherwise. Override this method for internal parent controllers than may not be navigated directly.
-
getView
V getView()
- Returns:
- the view of this
UiController. The view is the actual UI represented by aUiWidget, typically aregular widget.
-
embed
void embed(UiEmbedding embedding, UiController<?> childController)
- Parameters:
embedding- theslotIdwhere to embed the given childUiControllersview.childController- the child controller to embed.
-
-