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 StringTheidof the contentUiController.static final StringTheidof the headerUiController.static final StringTheidof the headerUiController.static final StringTheidof theUiControllerfor the home page.static final StringTheidof the marginUiController.static final StringTheidof the navigationUiController.static final StringTheidof the pageUiController.static final StringTheidof the rootUiController. -
Method Summary
Modifier and TypeMethodDescriptionvoidembed(UiEmbedding embedding, UiController<?> childController) getId()The ID of a controller should only contain ASCII letters, Latin digits, hyphens or underscores.getTitle()getView()default booleanMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadVisible
isVisible
-
Field Details
-
ID_ROOT
Theidof the rootUiController.- See Also:
-
ID_HOME
Theidof theUiControllerfor the home page.- See Also:
-
ID_PAGE
Theidof the pageUiController.- See Also:
-
ID_CONTENT
Theidof the contentUiController.- See Also:
-
ID_NAVIGATION
Theidof the navigationUiController.- See Also:
-
ID_HEADER
- See Also:
-
ID_FOOTER
- See Also:
-
ID_MARGIN
Theidof the marginUiController. Itsviewis supposed to beembeddedat 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 '?', 'invalid input: '&'', '=', ':', ';', '\\' or ' '.- Specified by:
getIdin interfaceio.github.mmm.ui.api.attribute.AttributeReadId- See Also:
-
getTitle
String getTitle()- Specified by:
getTitlein 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- theslotIdwhere to embed the given childUiControllersview.childController- the child controller to embed.
-