Package de.esoco.process.ui
Klasse UiMultiSelectionButtonGroup<T,B extends UiMultiSelectionButtonGroup<T,B>>
java.lang.Object
org.obrel.core.RelatedObject
- Alle implementierten Schnittstellen:
de.esoco.lib.property.HasSelection<List<T>>
,UiHasActionEvents<List<T>,
,B> UiHasFocusEvents<List<T>,
,B> org.obrel.core.Relatable
- Bekannte direkte Unterklassen:
UiCheckBoxes
,UiToggleButtons
public abstract class UiMultiSelectionButtonGroup<T,B extends UiMultiSelectionButtonGroup<T,B>>
extends UiButtonControl<List<T>,B>
implements de.esoco.lib.property.HasSelection<List<T>>
A base class for groups of buttons that allow to select multiple buttons.
-
Konstruktorübersicht
KonstruktorBeschreibungUiMultiSelectionButtonGroup
(UiContainer<?> parent, Class<T> elementType, de.esoco.lib.property.ListStyle listStyle) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addButtons
(Collection<T> buttonLabels) Adds a collection of buttons.void
addButtons
(T... buttonLabels) Adds certain buttons.void
disableButtons
(Collection<T> disabledButtons) Disables certain values of the parameter enum.void
disableButtons
(T... disabledButtons) Disables certain values of the parameter enum.void
Enables all Buttons.Returns the current selection.void
setButtons
(Collection<T> newLabels) Sets the buttons of this instance, overriding any previously set buttons.void
setSelection
(List<T> newSelection) Sets the selection of this button group.Von Klasse geerbte Methoden de.esoco.process.ui.UiButtonControl
initiateDownload, onAction, onClick
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
-
UiMultiSelectionButtonGroup
public UiMultiSelectionButtonGroup(UiContainer<?> parent, Class<T> elementType, de.esoco.lib.property.ListStyle listStyle) Creates a new instance.- Parameter:
parent
- The parent containerelementType
- The datatype of the button labelslistStyle
- The style for the button rendering
-
-
Methodendetails
-
addButtons
Adds certain buttons.- Parameter:
buttonLabels
- The labels of the buttons to add
-
addButtons
Adds a collection of buttons.- Parameter:
buttonLabels
- The collection of button labels to add
-
disableButtons
Disables certain values of the parameter enum.- Parameter:
disabledButtons
- disabledElements A collection of the elements to disable
-
disableButtons
Disables certain values of the parameter enum.- Parameter:
disabledButtons
- disabledElements The elements to disable
-
enableAllButtons
public void enableAllButtons()Enables all Buttons. -
getSelection
Returns the current selection. Depending on the datatype of this instance it will either be a single value or a collection of values.- Angegeben von:
getSelection
in Schnittstellede.esoco.lib.property.HasSelection<T>
- Gibt zurück:
- The current selection
-
setButtons
Sets the buttons of this instance, overriding any previously set buttons. This can also be used to remove the current buttons by setting an empty collection.- Parameter:
newLabels
- The new collection of button labels
-
setSelection
Sets the selection of this button group. Depending on the datatype of this instance this either needs to be a single value or a collection of values.- Angegeben von:
setSelection
in Schnittstellede.esoco.lib.property.HasSelection<T>
- Parameter:
newSelection
- The new selection
-