Package io.jmix.ui.action.entitypicker
Class EntityLookupAction<E>
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.ui.action.BaseAction
io.jmix.ui.action.AbstractLookupAction<E>
io.jmix.ui.action.entitypicker.EntityLookupAction<E>
- Type Parameters:
- E- type of entity
- All Implemented Interfaces:
- Action,- Action.ExecutableAction,- Action.HasPrimaryState,- Action.ScreenOpeningAction,- Action.SecuredAction,- EntityPicker.EntityPickerAction,- ValuePicker.ValuePickerAction,- org.springframework.beans.factory.InitializingBean
@StudioAction(target="io.jmix.ui.component.EntityPicker",
              description="Sets an entity to the entity picker using the entity lookup screen")
@ActionType("entity_lookup")
public class EntityLookupAction<E>
extends AbstractLookupAction<E>
implements EntityPicker.EntityPickerAction, Action.ScreenOpeningAction, org.springframework.beans.factory.InitializingBean, Action.ExecutableAction
Standard action for setting an entity to the entity picker using the entity lookup screen.
 
 Should be defined for EntityPicker or its subclass in a screen XML descriptor.
 
 The action instance can be parameterized using the nested properties XML element or programmatically in the
 screen controller.
- 
Nested Class SummaryNested classes/interfaces inherited from class io.jmix.ui.action.BaseActionBaseAction.EnabledRuleNested classes/interfaces inherited from interface io.jmix.ui.action.ActionAction.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected UiComponentPropertiesprotected booleanprotected EntityPickerstatic final StringFields inherited from class io.jmix.ui.action.AbstractLookupActionicons, messages, screenBuilders, screenInitializer, selectValidator, transformationFields inherited from class io.jmix.ui.action.AbstractActioncaption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visibleFields inherited from interface io.jmix.ui.action.ActionPROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLEFields inherited from interface io.jmix.ui.component.ValuePicker.ValuePickerActionPROP_EDITABLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidactionPerform(Component component) Invoked by owning component to execute the action.voidvoideditableChanged(boolean editable) Called byValuePickerto inform about its editable state.voidexecute()Executes the action.booleanprotected voidsetEditable(boolean editable) voidsetEntityPicker(EntityPicker entityPicker) protected voidsetUiComponentProperties(UiComponentProperties componentProperties) Methods inherited from class io.jmix.ui.action.AbstractLookupActiongetOpenMode, getScreenClass, getScreenId, setAfterCloseHandler, setIcons, setMessages, setOpenMode, setScreenBuilders, setScreenClass, setScreenConfigurer, setScreenId, setScreenOptionsSupplier, setSelectValidator, setTransformationMethods inherited from class io.jmix.ui.action.BaseActionaddActionPerformedListener, addEnabledRule, isApplicable, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcutMethods inherited from class io.jmix.ui.action.AbstractActionaddOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombinationMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.action.ActionaddOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisibleMethods inherited from interface io.jmix.ui.action.Action.ScreenOpeningActiongetOpenMode, getScreenClass, getScreenId, setAfterCloseHandler, setOpenMode, setScreenClass, setScreenConfigurer, setScreenId, setScreenOptionsSupplierMethods inherited from interface io.jmix.ui.component.EntityPicker.EntityPickerActionsetPicker
- 
Field Details- 
ID- See Also:
 
- 
entityPicker
- 
componentProperties
- 
editableprotected boolean editable
 
- 
- 
Constructor Details- 
EntityLookupActionpublic EntityLookupAction()
- 
EntityLookupAction
 
- 
- 
Method Details- 
setEntityPicker- Specified by:
- setEntityPickerin interface- EntityPicker.EntityPickerAction
 
- 
editableChangedpublic void editableChanged(boolean editable) Description copied from interface:ValuePicker.ValuePickerActionCalled byValuePickerto inform about its editable state.- Specified by:
- editableChangedin interface- ValuePicker.ValuePickerAction
- Parameters:
- editable- a- ValuePickereditable state
 
- 
isEditablepublic boolean isEditable()- Specified by:
- isEditablein interface- ValuePicker.ValuePickerAction
- Returns:
- whether this action is editable
 
- 
setEditableprotected void setEditable(boolean editable) 
- 
setUiComponentProperties
- 
afterPropertiesSetpublic void afterPropertiesSet()- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
 
- 
actionPerformDescription copied from interface:ActionInvoked by owning component to execute the action.- Specified by:
- actionPerformin interface- Action
- Overrides:
- actionPerformin class- BaseAction
- Parameters:
- component- invoking component
 
- 
executepublic void execute()Executes the action.- Specified by:
- executein interface- Action.ExecutableAction
 
 
-