VALUE
- is the generic type of the value
.public interface UiWidgetWithValue<VALUE> extends UiWidgetAbstractWithValue<VALUE>, UiFeatureValueAndValidation<VALUE>, UiWidgetRegular
regular widget
that has a value
.STYLE_HEADER
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
Modifier and Type | Method and Description |
---|---|
VALUE |
getValue()
This method gets the value of this object.
|
getValueAndValidate, getValueDirect
addChangeHandler, removeChangeHandler
resetValue, setValue, setValue, setValueForUser
getOriginalValue, getValueOrException
addValidatorMandatory, isMandatory
addValidator, removeValidator
validate
getContext, getParent, getSize
clearMessages
addEventHandler, removeEventHandler
setMode
getMode
setModeFixed
getModeFixed
setId
getId
setTooltip
getTooltip
getVisibleFlag, isVisible, setVisible, setVisible
isVisibleRecursive
setEnabled
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
isModified
getAriaRole
VALUE getValue()
null
instead. If you want to do validation and give feedback to the
user please use AttributeReadValueAdvanced.getValueOrException(Object)
instead. However, there are higher-level ways to do
this such as
getValueAndValidate
.
set values
and allow them to be modified in the UI
without side-effects on the original value. This is especially important for composite custom widgets
(e.g. editors
) to allow the
user to modify business entities and modifications can still be cancelled and changed will be reverted.
All objects that are (potentially) modified by the widgets will be copied. Therefore it is even safe to
modify the result of this method in most cases. However,
tree widgets
build an excuse and use
a copy on set/retrieve
strategy
.getValue
in interface AttributeReadValue<VALUE>
getValue
in interface AttributeReadValueAdvanced<VALUE>
null
unless otherwise stated.Copyright © 2001–2016 mmm-Team. All rights reserved.