public class ValuesPickerImpl<V> extends ValuePickerImpl<java.util.Collection<V>> implements ValuesPicker<V>
ValuePickerImpl.WebValuePickerActionHandler
ValuePicker.FieldValueChangeEvent<V>, ValuePicker.ValuePickerAction
HasValue.ValueChangeEvent<V>
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
actionButtons, actionHandler, actionPropertyChangeListener, actions, actionsPermissions, fieldIconProvider, fieldListenerRegistration, formatter, metadataTools
editable, parentEditableChangeListener, validators, VALIDATORS_LIST_INITIAL_CAPACITY
internalValue, uiTestIdsSupport, valueBinding
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
NAME, TYPE_STRING
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Constructor and Description |
---|
ValuesPickerImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<V> |
convertToModel(java.util.Collection<V> componentRawValue) |
protected java.util.List<V> |
convertToPresentation(java.util.Collection<V> modelValue) |
protected JmixPickerField<java.util.Collection<V>> |
createComponent() |
protected boolean |
equalCollections(java.util.Collection<V> a,
java.util.Collection<V> b) |
protected boolean |
fieldValueEquals(java.util.Collection<V> value,
java.util.Collection<V> oldValue) |
protected void |
fireValueChange(java.util.Collection<V> oldValue,
java.util.Collection<V> value,
boolean userOriginated) |
protected java.util.Collection<V> |
getOldValue(java.util.Collection<V> newValue) |
boolean |
isEmpty() |
void |
setValue(java.util.Collection<V> value) |
void |
setValueFromUser(java.util.Collection<V> value)
Sets the value of this component as if the user had set it.
|
protected void |
setValueInternal(java.util.Collection<V> value,
boolean userOriginated) |
actionPropertyChanged, addAction, addAction, addFieldValueChangeListener, afterPropertiesSet, applyDefaultValueFormat, commit, discard, focus, formatValue, generateOptionIcon, getAction, getActions, getActionsPermissions, getFieldIconProvider, getFormatter, getTabIndex, initComponent, isBuffered, isFieldEditable, isModified, onFieldValueChange, refreshActionsState, removeAction, removeAction, removeAllActions, setBuffered, setButtonIcon, setDebugId, setEditableToComponent, setFieldEditable, setFieldIconProvider, setFormatter, setFrame, setMetadataTools, setTabIndex, setUiComponentProperties, setupButtonAction
addValidator, attachValueChangeListener, getDatatypeConversionErrorMsg, getDefaultRequiredMessage, getErrorMessage, getRequiredMessage, getValidators, isEditable, isRequired, isValid, removeValidator, setEditable, setParent, setRequired, setRequiredMessage, setupComponentErrorProvider, triggerValidators, validate
addValueChangeListener, componentValueChanged, getValue, getValueSource, setUiTestId, setUiTestIdsSupport, setValueSource, setValueToPresentation, valueBindingActivated, valueBindingConnected
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDescription, setDescriptionAsHtml, setEnabled, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
of
addFieldValueChangeListener, getFieldIconProvider, isFieldEditable, setFieldEditable, setFieldIconProvider
getValueSource, setValueSource
addValueChangeListener, clear, getEmptyValue, getValue
isEditable, isEditableWithParent, setEditable
getFrame, setFrame
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
isValid, isValidateOnCommit, validate
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
isCaptionAsHtml, setCaptionAsHtml
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
addValidator, addValidators, getValidators, removeValidator
getRequiredMessage, isRequired, setRequired, setRequiredMessage
getFormatter, setFormatter
addAction, addAction, getAction, getActionNN, getActions, getSubPart, removeAction, removeAction, removeAllActions
commit, discard, isBuffered, isModified, setBuffered
focus, getTabIndex, isFocusable, setFocusable, setTabIndex
protected JmixPickerField<java.util.Collection<V>> createComponent()
createComponent
in class ValuePickerImpl<java.util.Collection<V>>
public void setValue(@Nullable java.util.Collection<V> value)
public void setValueFromUser(@Nullable java.util.Collection<V> value)
SupportsUserAction
HasValue.ValueChangeEvent
.setValueFromUser
in interface SupportsUserAction<java.util.Collection<V>>
setValueFromUser
in class ValuePickerImpl<java.util.Collection<V>>
value
- the new valueprotected void setValueInternal(@Nullable java.util.Collection<V> value, boolean userOriginated)
@Nullable protected java.util.Collection<V> getOldValue(@Nullable java.util.Collection<V> newValue)
protected java.util.List<V> convertToPresentation(@Nullable java.util.Collection<V> modelValue) throws ConversionException
convertToPresentation
in class AbstractValueComponent<JmixPickerField<java.util.Collection<V>>,java.util.Collection<V>,java.util.Collection<V>>
ConversionException
protected java.util.Collection<V> convertToModel(@Nullable java.util.Collection<V> componentRawValue) throws ConversionException
convertToModel
in class AbstractValueComponent<JmixPickerField<java.util.Collection<V>>,java.util.Collection<V>,java.util.Collection<V>>
ConversionException
protected boolean fieldValueEquals(@Nullable java.util.Collection<V> value, @Nullable java.util.Collection<V> oldValue)
fieldValueEquals
in class AbstractValueComponent<JmixPickerField<java.util.Collection<V>>,java.util.Collection<V>,java.util.Collection<V>>
protected boolean equalCollections(@Nullable java.util.Collection<V> a, @Nullable java.util.Collection<V> b)
protected void fireValueChange(@Nullable java.util.Collection<V> oldValue, @Nullable java.util.Collection<V> value, boolean userOriginated)