Package de.esoco.process.ui.composite
Klasse UiListPanel.Item
java.lang.Object
org.obrel.core.RelatedObject
de.esoco.process.param.ParameterWrapper<List<org.obrel.core.RelationType<?>>,UiListPanel.Item>
de.esoco.process.ui.UiComponent<List<org.obrel.core.RelationType<?>>,UiListPanel.Item>
- Alle implementierten Schnittstellen:
org.obrel.core.Relatable
- Umschließende Klasse:
UiListPanel
The container for a single list item. The builder returned from the item
is used to create the item content. In the case of expandable lists the
item header can be created with the builder of the header panel returned
by
getHeader()
.-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen de.esoco.process.ui.UiContainer
UiContainer.UiContainerFragment
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Removes the content components from this item.final UiBuilder
<?> createHeaderPanel
(UiLayout layout) Helper method to create a new header panel with a certain layout in the item header returned bygetHeader()
.protected String
Returns the style name for this component.final UiBuilder
<?> Returns the builder of this item's header panel.boolean
Returns the selected state of this item.onSelection
(Consumer<UiListPanel.Item> selectionHandler) Sets the handler for selection events of this item.void
remove
(UiComponent<?, ?> component) Overridden to be publicvoid
setSelected
(boolean selected) Sets the selected state of this item.Von Klasse geerbte Methoden de.esoco.process.ui.UiContainer
applyProperties, attachTo, buildContent, builder, clear, componentAdded, componentListChanged, getComponents, getLayout, isBuilt, onClickInContainerArea, toString
Von Klasse geerbte Methoden de.esoco.process.ui.UiComponent
cell, cell, 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
-
Methodendetails
-
clearContent
public void clearContent()Removes the content components from this item. -
createHeaderPanel
Helper method to create a new header panel with a certain layout in the item header returned bygetHeader()
. This method should only be invoked once or else additional panels will be added to the header. Invoking this method mainly makes sense if an expandable list style is used. Otherwise it will just add an additional panel to the item.- Parameter:
layout
- The header panel layout- Gibt zurück:
- The builder of the new header panel with the given layout
-
getHeader
Returns the builder of this item's header panel. If the list has a simple style this method returns the item's builder so that it can be used to build the content in it.Depending on the underlying implementation the item header may use a special layout. Therefore it is recommended to add only a single component with this builder (typically some panel with it's own layout). Otherwise the resulting rendering can be unexpected.
- Gibt zurück:
- The item header container
-
isSelected
public boolean isSelected()Returns the selected state of this item.- Gibt zurück:
- The selected state
-
onSelection
Sets the handler for selection events of this item.- Parameter:
selectionHandler
- The selection handler- Gibt zurück:
- This instance for fluent invocations
-
remove
Overridden to be public- Setzt außer Kraft:
remove
in KlasseUiContainer<UiListPanel.Item>
- Parameter:
component
- The component to remove- Siehe auch:
-
setSelected
public void setSelected(boolean selected) Sets the selected state of this item.- Parameter:
selected
- The new selected state
-
getComponentStyleName
Returns the style name for this component. By default this is the simple class name of this component. Subclasses should override this if the class name is ambiguous and needs further specification. This is typically the case for non-static inner classes of composites which often have names that start without the 'Ui' prefix.- Setzt außer Kraft:
getComponentStyleName
in KlasseUiComponent<List<org.obrel.core.RelationType<?>>,
UiListPanel.Item> - Gibt zurück:
- The component style name
-