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.AttributeReadVisible
This 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
. AUiController
is not aUiWidget
should NOT be mixed with awinodw
orpopup
.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID_CONTENT
Theid
of the contentUiController
.static String
ID_FOOTER
Theid
of the headerUiController
.static String
ID_HEADER
Theid
of the headerUiController
.static String
ID_HOME
Theid
of theUiController
for the home page.static String
ID_MARGIN
Theid
of the marginUiController
.static String
ID_NAVIGATION
Theid
of the navigationUiController
.static String
ID_PAGE
Theid
of the pageUiController
.static String
ID_ROOT
Theid
of the rootUiController
.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
embed(UiEmbedding embedding, UiController<?> childController)
String
getId()
The ID of a controller should only contain ASCII letters, Latin digits, hyphens or underscores.String
getTitle()
V
getView()
default boolean
isNavigable()
-
-
-
Field Detail
-
ID_ROOT
static final String ID_ROOT
Theid
of the rootUiController
.- See Also:
- Constant Field Values
-
ID_HOME
static final String ID_HOME
Theid
of theUiController
for the home page.- See Also:
- Constant Field Values
-
ID_PAGE
static final String ID_PAGE
Theid
of the pageUiController
.- See Also:
- Constant Field Values
-
ID_CONTENT
static final String ID_CONTENT
Theid
of the contentUiController
.- See Also:
- Constant Field Values
-
ID_NAVIGATION
static final String ID_NAVIGATION
Theid
of 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
Theid
of the marginUiController
. Itsview
is supposed to beembedded
at 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:
getTitle
in interfaceio.github.mmm.ui.api.attribute.AttributeReadTitle
-
isNavigable
default boolean isNavigable()
- Returns:
true
if thisUiController
can benavigated
directly (default),false
otherwise. 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
- theslotId
where to embed the given childUiController
sview
.childController
- the child controller to embed.
-
-