Package io.github.mmm.ui.spi.controller
Class AbstractUiControllerPage
- java.lang.Object
-
- io.github.mmm.ui.spi.controller.AbstractUiController<V>
-
- io.github.mmm.ui.spi.controller.AbstractUiControllerContent<UiBorderPanel>
-
- io.github.mmm.ui.spi.controller.AbstractUiControllerPage
-
- All Implemented Interfaces:
AttributeReadId,AttributeReadTitle,AttributeReadVisible,UiController<UiBorderPanel>
public abstract class AbstractUiControllerPage extends AbstractUiControllerContent<UiBorderPanel>
Controllerfor thepagedialog.- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from interface io.github.mmm.ui.api.controller.UiController
ID_CONTENT, ID_FOOTER, ID_HEADER, ID_HOME, ID_MARGIN, ID_NAVIGATION, ID_PAGE, ID_ROOT
-
-
Constructor Summary
Constructors Constructor Description AbstractUiControllerPage()The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UiBorderPanelcreateView()protected booleandoEmbed(String slotId, UiController<?> childController)Override this method for parent controllers to embed children.protected UiEmbeddingdoShow(UiPlace newPlace, UiEmbedding newSlot)StringgetId()The ID of a controller should only contain ASCII letters, Latin digits, hyphens or underscores.-
Methods inherited from class io.github.mmm.ui.spi.controller.AbstractUiControllerContent
getTitle
-
Methods inherited from class io.github.mmm.ui.spi.controller.AbstractUiController
embed, getEmbedding, getView, hide, isVisible, onHide, onReset, onShow, reset, show, show
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.mmm.ui.api.controller.UiController
isNavigable
-
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:UiControllerThe 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:
getIdin interfaceAttributeReadId- Specified by:
getIdin interfaceUiController<UiBorderPanel>- Overrides:
getIdin classAbstractUiControllerContent<UiBorderPanel>- Returns:
- the ID of this object.
- See Also:
UiController.ID_ROOT,UiController.ID_PAGE,UiController.ID_HOME
-
doShow
protected UiEmbedding doShow(UiPlace newPlace, UiEmbedding newSlot)
- Overrides:
doShowin classAbstractUiControllerContent<UiBorderPanel>- Parameters:
newPlace- theUiPlaceto open. Itidentifiesthe leaf childUiControllerand provides potentialparameters.newSlot- the optionalUiEmbeddingwhere to embed the child controller.- Returns:
- the
UiEmbeddingwhere to embed this controller into a parent controller ornullif this is the root controller.
-
createView
protected UiBorderPanel createView()
- Specified by:
createViewin classAbstractUiController<UiBorderPanel>- Returns:
- the new instance of the
view.
-
doEmbed
protected boolean doEmbed(String slotId, UiController<?> childController)
Description copied from class:AbstractUiControllerOverride this method for parent controllers to embed children.- Overrides:
doEmbedin classAbstractUiController<UiBorderPanel>- Parameters:
slotId- theslot IDwhere to embed the given childUiControllersview.childController- the child controller to embed.- Returns:
trueif the embedded slot is dynamic (e.g. a new closable tab),falseotherwise if static and reusable slot in the UI (default).- See Also:
AbstractUiController.embed(UiEmbedding, UiController)
-
-