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_HEADERHTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_IDPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEWAI_ARIA| Modifier and Type | Method and Description |
|---|---|
VALUE |
getValue()
This method gets the value of this object.
|
getValueAndValidate, getValueDirectaddChangeHandler, removeChangeHandlerresetValue, setValue, setValue, setValueForUsergetOriginalValue, getValueOrExceptionaddValidatorMandatory, isMandatoryaddValidator, removeValidatorvalidategetContext, getParent, getSizeclearMessagesaddEventHandler, removeEventHandlersetModegetModesetModeFixedgetModeFixedsetIdgetIdsetTooltipgetTooltipgetVisibleFlag, isVisible, setVisible, setVisibleisVisibleRecursivesetEnabledisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedisModifiedgetAriaRoleVALUE 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.