Package de.esoco.process.ui
Klasse UiListControl<T,C extends UiListControl<T,C>>
java.lang.Object
org.obrel.core.RelatedObject
de.esoco.process.param.ParameterWrapper<T,C>
de.esoco.process.ui.UiComponent<T,C>
de.esoco.process.ui.UiControl<T,C>
de.esoco.process.ui.UiListControl<T,C>
- Alle implementierten Schnittstellen:
UiHasFocusEvents<T,
,C> UiHasUpdateEvents<T,
,C> org.obrel.core.Relatable
- Bekannte direkte Unterklassen:
UiMultiSelectionList
,UiSingleSelectionList
public abstract class UiListControl<T,C extends UiListControl<T,C>>
extends UiControl<T,C>
implements UiHasUpdateEvents<T,C>
Base class for interactive components that display a list of selectable
values.
-
Konstruktorübersicht
KonstruktorBeschreibungUiListControl
(UiContainer<?> parent, Class<? super T> datatype, de.esoco.lib.property.ListStyle listStyle) Creates a new instance.UiListControl
(UiContainer<?> parent, org.obrel.core.RelationType<T> paramType, de.esoco.lib.property.ListStyle listStyle) Creates a new instance for an existing parameter type. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the currently selected list value.final C
onSelection
(Consumer<T> eventHandler) Sets the event handler for selection events of this table.Registers an event handler that will be invoked on update events with the new component value.Sets the selected value.void
setSelection
(T value) Sets the selected value.Von Klasse geerbte Methoden de.esoco.process.ui.UiControl
onFocusLost, validateFinally, validateInteractive, validateNow
Von Klasse geerbte Methoden de.esoco.process.ui.UiComponent
applyProperties, 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
-
UiListControl
public UiListControl(UiContainer<?> parent, org.obrel.core.RelationType<T> paramType, de.esoco.lib.property.ListStyle listStyle) Creates a new instance for an existing parameter type.- Parameter:
parent
- The parent containerparamType
- The parameter relation typelistStyle
- The list style
-
UiListControl
public UiListControl(UiContainer<?> parent, Class<? super T> datatype, de.esoco.lib.property.ListStyle listStyle) Creates a new instance. If the datatype is an enum all enum values will be pre-set as the list values.- Parameter:
parent
- The parent containerdatatype
- The datatype of the list valueslistStyle
- The list style
-
-
Methodendetails
-
getSelection
Returns the currently selected list value.- Gibt zurück:
- The selected value (NULL for none)
-
onSelection
Sets the event handler for selection events of this table.- 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<T,
C extends UiListControl<T, C>> - Parameter:
eventHandler
- The event handler to be invoked- Gibt zurück:
- The component the handler has been registered on
-
select
Sets the selected value.- Parameter:
value
- The new selection or NULL for none- Gibt zurück:
- This instance
-
setSelection
Sets the selected value.- Parameter:
value
- The new selection or NULL for none
-