public class EntityPickerImpl<V> extends ValuePickerImpl<V> implements EntityPicker<V>
ValuePickerImpl.WebValuePickerActionHandlerEntityPicker.EntityPickerActionValuePicker.FieldValueChangeEvent<V>, ValuePicker.ValuePickerActionHasValue.ValueChangeEvent<V>Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperHasContextHelp.ContextHelpIconClickEventLookupComponent.LookupSelectionChangeEvent<T>, LookupComponent.LookupSelectionChangeNotifier<T>| Modifier and Type | Field and Description |
|---|---|
protected io.jmix.core.metamodel.model.MetaClass |
metaClass |
protected io.jmix.core.Metadata |
metadata |
actionButtons, actionHandler, actionPropertyChangeListener, actions, actionsPermissions, fieldIconProvider, fieldListenerRegistration, formatter, metadataToolseditable, parentEditableChangeListener, validators, VALIDATORS_LIST_INITIAL_CAPACITYinternalValue, uiTestIdsSupport, valueBindingalignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentNAMETYPE_STRINGAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE| Constructor and Description |
|---|
EntityPickerImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkValueType(V value) |
protected JmixPickerField<V> |
createComponent() |
java.util.Collection<V> |
getLookupSelectedItems() |
io.jmix.core.metamodel.model.MetaClass |
getMetaClass() |
void |
setLookupSelectHandler(java.util.function.Consumer<java.util.Collection<V>> selectHandler) |
void |
setMetaClass(io.jmix.core.metamodel.model.MetaClass metaClass) |
void |
setMetadata(io.jmix.core.Metadata metadata) |
void |
setValue(V value) |
void |
setValueFromUser(V value)
Sets the value of this component as if the user had set it.
|
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, setupButtonActionaddValidator, attachValueChangeListener, getDatatypeConversionErrorMsg, getDefaultRequiredMessage, getErrorMessage, getRequiredMessage, getValidators, isEditable, isRequired, isValid, removeValidator, setEditable, setParent, setRequired, setRequiredMessage, setupComponentErrorProvider, triggerValidators, validateaddValueChangeListener, componentValueChanged, convertToModel, convertToPresentation, fieldValueEquals, getValue, getValueSource, setUiTestId, setUiTestIdsSupport, setValueSource, setValueToPresentation, valueBindingActivated, valueBindingConnectedaddAttachListener, 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, withUnwrappedCompositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofaddFieldValueChangeListener, getFieldIconProvider, isFieldEditable, setFieldEditable, setFieldIconProvidergetValueSource, setValueSourceaddValueChangeListener, clear, getEmptyValue, getValue, isEmptyisEditable, isEditableWithParent, setEditablegetFrame, setFrameaddStyleName, 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, withUnwrappedCompositionisValid, isValidateOnCommit, validategetIcon, setIcon, setIconFromSetgetContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledisCaptionAsHtml, setCaptionAsHtmlgetCaption, setCaptiongetDescription, setDescriptionisDescriptionAsHtml, setDescriptionAsHtmlisHtmlSanitizerEnabled, setHtmlSanitizerEnabledaddValidator, addValidators, getValidators, removeValidatorgetRequiredMessage, isRequired, setRequired, setRequiredMessagegetFormatter, setFormatteraddAction, addAction, getAction, getActionNN, getActions, getSubPart, removeAction, removeAction, removeAllActionscommit, discard, isBuffered, isModified, setBufferedfocus, getTabIndex, isFocusable, setFocusable, setTabIndexprotected io.jmix.core.Metadata metadata
protected io.jmix.core.metamodel.model.MetaClass metaClass
protected JmixPickerField<V> createComponent()
createComponent in class ValuePickerImpl<V>public void setValue(@Nullable
V value)
public void setValueFromUser(@Nullable
V value)
SupportsUserActionHasValue.ValueChangeEvent.setValueFromUser in interface SupportsUserAction<V>setValueFromUser in class ValuePickerImpl<V>value - the new valueprotected void checkValueType(@Nullable
V value)
@Autowired public void setMetadata(io.jmix.core.Metadata metadata)
@Nullable public io.jmix.core.metamodel.model.MetaClass getMetaClass()
getMetaClass in interface EntityPicker<V>public void setMetaClass(@Nullable
io.jmix.core.metamodel.model.MetaClass metaClass)
setMetaClass in interface EntityPicker<V>public void setLookupSelectHandler(java.util.function.Consumer<java.util.Collection<V>> selectHandler)
setLookupSelectHandler in interface LookupComponent<V>selectHandler - handler that should be executed when a user select an item in the lookup screenpublic java.util.Collection<V> getLookupSelectedItems()
getLookupSelectedItems in interface LookupComponent<V>