public interface PickerField<V extends Entity> extends Field<V>, ActionsHolder, Buffered, LookupComponent, Component.Focusable, HasOptionCaptionProvider<V>, SupportsUserAction<V>, HasCaptionMode
Modifier and Type | Interface and Description |
---|---|
static class |
PickerField.ActionType
Deprecated.
|
static interface |
PickerField.AfterLookupCloseHandler |
static interface |
PickerField.AfterLookupSelectionHandler |
static class |
PickerField.ClearAction
Action to clear the PickerField content.
|
static interface |
PickerField.FieldListener
Deprecated.
Use
addFieldValueChangeListener(Consumer) instead |
static class |
PickerField.FieldValueChangeEvent<V extends Entity> |
static class |
PickerField.LookupAction
Action to select an entity instance through the entity lookup screen.
|
static class |
PickerField.OpenAction
Action to open an edit screen for entity instance which is currently set in the PickerField.
|
static interface |
PickerField.PickerFieldAction |
static class |
PickerField.StandardAction |
Field.Validator<T>
HasValue.ValueChangeEvent<V>
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
LookupComponent.LookupSelectionChangeEvent<T extends Entity>, LookupComponent.LookupSelectionChangeNotifier<T extends Entity>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
PickerField.ClearAction |
addClearAction()
Deprecated.
|
default void |
addFieldListener(PickerField.FieldListener listener)
Deprecated.
Use
addFieldValueChangeListener(Consumer) instead |
com.haulmont.bali.events.Subscription |
addFieldValueChangeListener(java.util.function.Consumer<PickerField.FieldValueChangeEvent<V>> listener)
Adds a listener that will be fired in case field is editable.
|
PickerField.LookupAction |
addLookupAction()
Deprecated.
|
PickerField.OpenAction |
addOpenAction()
Deprecated.
|
default PickerField.ClearAction |
getClearAction()
Deprecated.
|
default PickerField.LookupAction |
getLookupAction()
Deprecated.
|
com.haulmont.chile.core.model.MetaClass |
getMetaClass() |
default PickerField.OpenAction |
getOpenAction()
Deprecated.
|
static <T extends Entity> |
of(java.lang.Class<T> valueClass) |
void |
setFieldEditable(boolean editable) |
void |
setMetaClass(com.haulmont.chile.core.model.MetaClass metaClass) |
addValidator, getRequiredMessage, getValidators, isRequired, removeValidator, setRequired, setRequiredMessage
getDatasource, getMetaProperty, getMetaPropertyPath, setDatasource
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, removeValueChangeListener, setValue
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getValueSource, setValueSource
isEditable, isEditableWithParent, setEditable
getFrame, setFrame
isValid, isValidateOnCommit, validate
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
isCaptionAsHtml, setCaptionAsHtml
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
addAction, addAction, getAction, getActionNN, getActions, getSubPart, removeAction, removeAction, removeAllActions
commit, discard, isBuffered, isModified, setBuffered
getLookupSelectedItems, setLookupSelectHandler
focus, getTabIndex, isFocusable, setFocusable, setTabIndex
getOptionCaptionProvider, setOptionCaptionProvider
setValueFromUser
getCaptionMode, getCaptionProperty, setCaptionMode, setCaptionProperty
static final java.lang.String NAME
static <T extends Entity> com.google.common.reflect.TypeToken<PickerField<T>> of(java.lang.Class<T> valueClass)
com.haulmont.chile.core.model.MetaClass getMetaClass()
void setMetaClass(com.haulmont.chile.core.model.MetaClass metaClass)
@Deprecated PickerField.LookupAction addLookupAction()
@Deprecated default PickerField.LookupAction getLookupAction()
java.lang.IllegalArgumentException
- if the LookupAction does not exist in the component@Deprecated PickerField.ClearAction addClearAction()
@Deprecated default PickerField.ClearAction getClearAction()
java.lang.IllegalArgumentException
- if the ClearAction does not exist in the component@Deprecated PickerField.OpenAction addOpenAction()
@Deprecated default PickerField.OpenAction getOpenAction()
java.lang.IllegalArgumentException
- if the OpenAction does not exist in the component@Deprecated default void addFieldListener(PickerField.FieldListener listener)
addFieldValueChangeListener(Consumer)
insteadvoid setFieldEditable(boolean editable)
com.haulmont.bali.events.Subscription addFieldValueChangeListener(java.util.function.Consumer<PickerField.FieldValueChangeEvent<V>> listener)
listener
- a listener to addSubscription
objectsetFieldEditable(boolean)