Package de.esoco.process.ui
Klasse UiContainer<C extends UiContainer<C>>
java.lang.Object
org.obrel.core.RelatedObject
de.esoco.process.param.ParameterWrapper<List<org.obrel.core.RelationType<?>>,C>
de.esoco.process.ui.UiComponent<List<org.obrel.core.RelationType<?>>,C>
de.esoco.process.ui.UiContainer<C>
- Alle implementierten Schnittstellen:
org.obrel.core.Relatable
- Bekannte direkte Unterklassen:
UiComposite
,UiLayoutContainer
,UiSubFragment
public abstract class UiContainer<C extends UiContainer<C>>
extends UiComponent<List<org.obrel.core.RelationType<?>>,C>
The base class for all UI containers.
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungprotected static class
An interaction fragment subclass that wraps containers. -
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
UiContainer
(UiContainer<?> parent, InteractionFragment fragment, UiLayout layout) Creates a new instance that wraps a specific fragment.protected
UiContainer
(UiContainer<?> parent, UiLayout layout) Creates a new instance with a certain layout. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected void
Overridden to apply the container layout and to invoke this method recursively on all child components.protected void
attachTo
(UiContainer<?> parent) Overridden to setup the container fragment and to attach it to the parent fragment.protected void
buildContent
(UiBuilder<?> builder) This method can be overridden by subclasses to build the content of this container.builder()
Returns aUiBuilder
instance for this container.void
clear()
Clears this container by removing all child components.protected void
componentAdded
(UiComponent<?, ?> component) Will be invoked if a new component has been added to this container.protected void
Will be invoked after the list of components has been modified.List
<UiComponent<?, ?>> Returns the components of this container in the order in which they have been added.protected UiLayout
Returns the layout of this container.protected final boolean
isBuilt()
Checks if the content of this container has already been built.final C
onClickInContainerArea
(Consumer<C> eventHandler) Sets the event handler for click events on this container's visible area that is not occupied by components.protected void
remove
(UiComponent<?, ?> component) Removes a component from this container.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
-
UiContainer
Creates a new instance with a certain layout.- Parameter:
parent
- The parent container or NULL for a root containerlayout
- The layout of this container
-
UiContainer
Creates a new instance that wraps a specific fragment.- Parameter:
parent
- The parent container or NULL for a root containerfragment
- The fragment to wraplayout
- The layout of this container
-
-
Methodendetails
-
builder
Returns aUiBuilder
instance for this container. The builder instance is cached internally so that it doesn't need to be kept by the invoking code.- Gibt zurück:
- A UI builder instance for this container
-
clear
public void clear()Clears this container by removing all child components. -
getComponents
Returns the components of this container in the order in which they have been added.- Gibt zurück:
- The collection of components
-
onClickInContainerArea
Sets the event handler for click events on this container's visible area that is not occupied by components. The handler will receive this container instance as it's argument.- Parameter:
eventHandler
- The event handler- Gibt zurück:
- This instance for concatenation
-
toString
- Setzt außer Kraft:
toString
in KlasseUiComponent<List<org.obrel.core.RelationType<?>>,
C extends UiContainer<C>>
-
applyProperties
protected void applyProperties()Overridden to apply the container layout and to invoke this method recursively on all child components.- Setzt außer Kraft:
applyProperties
in KlasseUiComponent<List<org.obrel.core.RelationType<?>>,
C extends UiContainer<C>> - Siehe auch:
-
attachTo
Overridden to setup the container fragment and to attach it to the parent fragment.- Setzt außer Kraft:
attachTo
in KlasseUiComponent<List<org.obrel.core.RelationType<?>>,
C extends UiContainer<C>> - Parameter:
parent
- The parent container- Siehe auch:
-
buildContent
This method can be overridden by subclasses to build the content of this container. Alternatively, the content can also be built by adding components to it after creation. If both mechanisms are used in combination the call tobuildContent(UiBuilder)
will occur afterwards because it is invoked just before the container is made visible (fromapplyProperties()
.The
UiBuilder
argument is the same instance that is returned bybuilder()
.The default implementation of this method does nothing.
- Parameter:
builder
- The builder to create the container UI with
-
componentAdded
Will be invoked if a new component has been added to this container. Can be overridden by subclasses to handle component additions. The complete list of child components (including the new one at the end) can be queried withgetComponents()
.The default implementation does nothing.
- Parameter:
component
- The component that has been added
-
componentListChanged
protected void componentListChanged()Will be invoked after the list of components has been modified. The base implementation resets the layout for recalculation. -
getLayout
Returns the layout of this container.- Gibt zurück:
- The layout
-
isBuilt
protected final boolean isBuilt()Checks if the content of this container has already been built. Can be used by subclasses to check the initialization status of a container.- Gibt zurück:
- TRUE if the container content has been built
-
remove
Removes a component from this container.- Parameter:
component
- The component to remove
-