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 a
UiPlace
. A UiController
is not a
UiWidget
should NOT be mixed with a
winodw
or
popup
.- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Theid
of the contentUiController
.static final String
Theid
of the headerUiController
.static final String
Theid
of the headerUiController
.static final String
Theid
of theUiController
for the home page.static final String
Theid
of the marginUiController
.static final String
Theid
of the navigationUiController
.static final String
Theid
of the pageUiController
.static final String
Theid
of the rootUiController
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
embed
(UiEmbedding embedding, UiController<?> childController) getId()
The ID of a controller should only contain ASCII letters, Latin digits, hyphens or underscores.getTitle()
getView()
default boolean
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadVisible
isVisible
-
Field Details
-
ID_ROOT
Theid
of the rootUiController
.- See Also:
-
ID_HOME
Theid
of theUiController
for the home page.- See Also:
-
ID_PAGE
Theid
of the pageUiController
.- See Also:
-
ID_CONTENT
Theid
of the contentUiController
.- See Also:
-
ID_NAVIGATION
Theid
of the navigationUiController
.- See Also:
-
ID_HEADER
- See Also:
-
ID_FOOTER
- See Also:
-
ID_MARGIN
Theid
of the marginUiController
. Itsview
is supposed to beembedded
at the right of the page (in the margin column).- See Also:
-
-
Method Details
-
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 ' '.- Specified by:
getId
in interfaceio.github.mmm.ui.api.attribute.AttributeReadId
- See Also:
-
getTitle
String getTitle()- Specified by:
getTitle
in interfaceio.github.mmm.ui.api.attribute.AttributeReadTitle
-
getView
V getView()- Returns:
- the view of this
UiController
. The view is the actual UI represented by aUiWidget
, typically aregular widget
.
-
embed
- Parameters:
embedding
- theslotId
where to embed the given childUiController
sview
.childController
- the child controller to embed.
-