Package de.esoco.process.ui.component
Klasse UiDataTable
java.lang.Object
org.obrel.core.RelatedObject
de.esoco.process.param.ParameterWrapper<SelectionDataElement,UiDataTable>
de.esoco.process.ui.UiComponent<SelectionDataElement,UiDataTable>
de.esoco.process.ui.UiControl<SelectionDataElement,UiDataTable>
de.esoco.process.ui.UiTableControl<SelectionDataElement,UiDataTable>
de.esoco.process.ui.component.UiDataTable
- Alle implementierten Schnittstellen:
UiHasActionEvents<SelectionDataElement,
,UiDataTable> UiHasFocusEvents<SelectionDataElement,
,UiDataTable> UiHasUpdateEvents<SelectionDataElement,
,UiDataTable> org.obrel.core.Relatable
public class UiDataTable
extends UiTableControl<SelectionDataElement,UiDataTable>
implements UiHasUpdateEvents<SelectionDataElement,UiDataTable>, UiHasActionEvents<SelectionDataElement,UiDataTable>
A table that displays a static collection of
HierarchicalDataObject
that is stored in the validator of a SelectionDataElement
.-
Konstruktorübersicht
KonstruktorBeschreibungUiDataTable
(UiContainer<?> container) Creates a new instance.UiDataTable
(UiContainer<?> container, Collection<HierarchicalDataObject> data, Collection<de.esoco.lib.model.ColumnDefinition> columns) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected void
Will be invoked to apply all properties of this component to the corresponding process parameter before it is rendered.Returns the currently selected data object or NULL for none.onAction
(Consumer<SelectionDataElement> eventHandler) Registers an event handler that will be invoked on action events with the new component value.final UiDataTable
onSelection
(Consumer<HierarchicalDataObject> eventHandler) Sets the event handler for selection events of this table.final UiDataTable
onSelectionConfirmed
(Consumer<HierarchicalDataObject> eventHandler) Sets the event handler for selection confirmed events (e.g. by double click) of this table.onUpdate
(Consumer<SelectionDataElement> eventHandler) Registers an event handler that will be invoked on update events with the new component value.void
setColumns
(Collection<de.esoco.lib.model.ColumnDefinition> columns) Sets the table columns.void
Sets the table data as a list of hierarchical data objects that will be rendered as the table rows.Von Klasse geerbte Methoden de.esoco.process.ui.UiTableControl
setTableStyle, tableStyle
Von Klasse geerbte Methoden de.esoco.process.ui.UiControl
onFocusLost, validateFinally, validateInteractive, validateNow
Von Klasse geerbte Methoden de.esoco.process.ui.UiComponent
attachTo, cell, cell, getComponentStyleName, getImage, getParent, getRootView, getValueImpl, getView, height, icon, image, label, placeBefore, resid, setValueImpl, size, style, style, styleName, tooltip, toString, 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
-
UiDataTable
Creates a new instance.- Parameter:
container
- The parent container
-
UiDataTable
public UiDataTable(UiContainer<?> container, Collection<HierarchicalDataObject> data, Collection<de.esoco.lib.model.ColumnDefinition> columns) Creates a new instance.- Parameter:
container
- The parent containerdata
- The table datacolumns
- The table columns
-
-
Methodendetails
-
getSelection
Returns the currently selected data object or NULL for none.- Gibt zurück:
- The current selection (NULL for none)
-
onAction
Registers an event handler that will be invoked on action events with the new component value.- Angegeben von:
onAction
in SchnittstelleUiHasActionEvents<SelectionDataElement,
UiDataTable> - Parameter:
eventHandler
- The event handler to be invoked- Gibt zurück:
- The component the handler has been registered on
-
onSelection
Sets the event handler for selection events of this table. The handler will receive the currently selected data object or NULL if no object is selected.- Parameter:
eventHandler
- The event handler- Gibt zurück:
- This instance for concatenation
-
onSelectionConfirmed
Sets the event handler for selection confirmed events (e.g. by double click) of this table. The handler will receive the currently selected data object or NULL if no object is selected.- Parameter:
eventHandler
- The event handler- Gibt zurück:
- This instance for concatenation
-
onUpdate
Registers an event handler that will be invoked on update events with the new component value.- Angegeben von:
onUpdate
in SchnittstelleUiHasUpdateEvents<SelectionDataElement,
UiDataTable> - Parameter:
eventHandler
- The event handler to be invoked- Gibt zurück:
- The component the handler has been registered on
-
setColumns
Sets the table columns.- Parameter:
columns
- The table column definitions
-
setData
Sets the table data as a list of hierarchical data objects that will be rendered as the table rows.- Parameter:
data
- A list of table data objects
-
applyProperties
protected void applyProperties()Beschreibung aus Klasse kopiert:UiComponent
Will be invoked to apply all properties of this component to the corresponding process parameter before it is rendered.- Setzt außer Kraft:
applyProperties
in KlasseUiComponent<SelectionDataElement,
UiDataTable> - Siehe auch:
-