Package de.esoco.process.ui.app
Klasse UiWebPage
java.lang.Object
org.obrel.core.RelatedObject
de.esoco.process.param.ParameterWrapper<List<org.obrel.core.RelationType<?>>,UiWebPage>
de.esoco.process.ui.UiComponent<List<org.obrel.core.RelationType<?>>,UiWebPage>
- Alle implementierten Schnittstellen:
org.obrel.core.Relatable
A UI composite that provides the framework to render and manage a web page.
The page will typically consist of header, footer, content, and optionally
navigation menus which are added by this class in the required order. Menus
are added by overriding the methods
addTopMenu(Collection)
and
addSideMenu(Collection)
.
By default the component itself is rendered with an inline layout, i.e. it doesn't have a DOM representation and only the mentioned child components are added to the DOM as direct children of the page's parent.
This component can also be used to manage a full website by replacing or switching the page content depending on the context. Content switching can be achieved by embedding different pages a deck or tab panel, for example.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen de.esoco.process.ui.UiContainer
UiContainer.UiContainerFragment
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
UiWebPage
(UiContainer<?> parent) Constructor for subclassing.UiWebPage
(UiContainer<?> parent, Consumer<UiWebPage> initPage) Creates a new instance for direct usage, i.e. without subclassing. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung<T> UiSideMenu
<T> Adds an empty side menu to this page.<T> UiSideMenu
<T> addSideMenu
(Collection<T> menuItems) Adds a side navigation menu to this page.<T> UiTopMenu
<T> Adds an empty top menu to this page.<T> UiTopMenu
<T> addTopMenu
(Collection<T> menuItems) Adds a top navigation menu to this page.protected void
buildContent
(UiBuilder<?> builder) Builds and configures the website elements.protected void
Builds the site structure.protected UiWebPageContent
createContent
(UiContainer<?> parent) Creates the page content container.protected UiWebPageFooter
createFooter
(UiContainer<?> parent) Create the page footer.protected UiWebPageHeader
createHeader
(UiContainer<?> parent) Creates the page header.protected <T> UiSideMenu
<T> createSideMenu
(UiContainer<?> parent, Collection<T> menuItems) Creates the side menu of this page.protected <T> UiTopMenu
<T> createTopMenu
(UiContainer<?> parent, Collection<T> menuItems) Creates the top menu of this page.Returns the content container.Returns the footer of this page.Returns the header of this page.UiSideMenu
<?> Returns the side menu of this page.UiTopMenu
<?> Returns the top menu of this page.protected void
initPage()
Initializes the page content after it has been created bybuildStructure()
.Von Klasse geerbte Methoden de.esoco.process.ui.UiContainer
applyProperties, attachTo, builder, clear, componentAdded, componentListChanged, getComponents, getLayout, isBuilt, onClickInContainerArea, remove, toString
Von Klasse geerbte Methoden de.esoco.process.ui.UiComponent
cell, cell, getComponentStyleName, getImage, getParent, getRootView, getValueImpl, getView, height, icon, image, label, placeBefore, resid, setValueImpl, size, style, style, styleName, tooltip, update, visibleOn, width
Von Klasse geerbte Methoden de.esoco.process.param.ParameterWrapper
clear, disable, enable, fragment, get, getParam, has, hide, id, initiateDownload, isEnabled, isVisible, remove, set, set, set, setEnabled, setFragment, setParam, setParameterEventHandler, setParameterType, setVisible, show, type
Von Klasse geerbte Methoden org.obrel.core.RelatedObject
deleteRelation, get, getRelation, getRelations, notifyRelationListeners, readRelations, relationsEqual, relationsHashCode, relationsString, set, set, transform, writeRelations
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.obrel.core.Relatable
deleteRelation, deleteRelations, getAll, getOption, getRelationCount, getRelations, hasFlag, hasRelation, hasRelations, init, set, set, set, setOption, streamRelations
-
Konstruktordetails
-
UiWebPage
Creates a new instance for direct usage, i.e. without subclassing. The argument function will be invoked from within thebuildContent(UiBuilder)
method with this instance as the argument after the page structure has been created.- Parameter:
parent
- The parent container (typically a root view)initPage
- A function that initializes the page after it's structure has been created
-
UiWebPage
Constructor for subclassing.- Parameter:
parent
- The parent container (typically a root view)
-
-
Methodendetails
-
addSideMenu
Adds an empty side menu to this page.- Siehe auch:
-
addSideMenu
Adds a side navigation menu to this page. The actual menu creation is done by invokingcreateSideMenu(UiContainer, Collection)
. Because menus depend on other page components this call must be performed after the page structure has been fully created (typically by extending the methodbuildStructure()
).- Parameter:
menuItems
- The initial menu items to display- Gibt zurück:
- The new top menu
-
addTopMenu
Adds an empty top menu to this page.- Siehe auch:
-
addTopMenu
Adds a top navigation menu to this page. The actual menu creation is done by invokingcreateTopMenu(UiContainer, Collection)
. Because menus depend on other page components this call must be performed after the page structure has been fully created (typically by extending the methodbuildStructure()
).- Parameter:
menuItems
- The initial menu items to display- Gibt zurück:
- The new top menu
-
getContent
Returns the content container.- Gibt zurück:
- The content container
-
getHeader
Returns the header of this page.- Gibt zurück:
- The page header
-
getSideMenu
Returns the side menu of this page. If no menu has been created by overridingaddSideMenu(Collection)
this method will return NULL.- Gibt zurück:
- The side menu or NULL for none
-
getTopMenu
Returns the top menu of this page. If no menu has been created by overridingaddTopMenu(Collection)
this method will return NULL.- Gibt zurück:
- The top menu or NULL for none
-
buildContent
Builds and configures the website elements. Subclasses should typically not override this but instead append additional site building code to thebuildStructure()
method or perform additional initializations (after building) by overridinginitPage()
.- Setzt außer Kraft:
buildContent
in KlasseUiContainer<UiWebPage>
- Parameter:
builder
- The parent container builder
-
buildStructure
protected void buildStructure()Builds the site structure. -
createContent
Creates the page content container. Subclasses can override this to return a subclass ofUiWebPageContent
if necessary.- Parameter:
parent
- The parent container to create the content in- Gibt zurück:
- The page header
-
createHeader
Creates the page header. Subclasses can override this to return a subclass ofUiWebPageHeader
if necessary.- Parameter:
parent
- The parent container to create the header in- Gibt zurück:
- The page header
-
createSideMenu
Creates the side menu of this page. Will be invoked fromaddTopMenu(Collection)
and can be overridden to create a menu subclass if necessary.- Parameter:
parent
- The parent container of the menumenuItems
- The initial menu items- Gibt zurück:
- the new menu
-
createTopMenu
Creates the top menu of this page. Will be invoked fromaddTopMenu(Collection)
and can be overridden to create a menu subclass if necessary.- Parameter:
parent
- The parent container of the menumenuItems
- The initial menu items- Gibt zurück:
- the new menu
-
initPage
protected void initPage()Initializes the page content after it has been created bybuildStructure()
. The default implementation invokes the initialization function if such has been provided at construction. When subclassing this method can be overridden to replace the super version with the page initialization code. Especially menus should be added here by means ofaddTopMenu(Collection)
andaddSideMenu(Collection)
.
-