E
- type of entity@StudioAction(target="io.jmix.ui.component.TagPicker", description="Sets an entity to the tag picker using the entity lookup screen") @ActionType(value="tag_lookup") public class TagLookupAction<E> extends AbstractLookupAction<E> implements Action.ScreenOpeningAction, TagPicker.TagPickerAction, org.springframework.beans.factory.InitializingBean, Action.ExecutableAction
BaseAction.EnabledRule
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
Modifier and Type | Field and Description |
---|---|
protected UiComponentProperties |
componentProperties |
protected boolean |
editable |
static java.lang.String |
ID |
protected boolean |
multiSelect |
protected TagPicker |
tagPicker |
icons, messages, screenBuilders, screenInitializer, selectValidator, transformation
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
PROP_MULTISELECT
PROP_EDITABLE
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
Constructor and Description |
---|
TagLookupAction() |
TagLookupAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerform(Component component)
Invoked by owning component to execute the action.
|
void |
afterPropertiesSet() |
void |
editableChanged(boolean editable)
Called by
ValuePicker to inform about its editable state. |
void |
execute()
Executes the
Action |
boolean |
isEditable() |
boolean |
isMultiSelect() |
protected void |
setEditable(boolean editable) |
void |
setMultiSelect(boolean multiSelect)
Sets multiselect to the action.
|
void |
setTagPicker(TagPicker tagPicker)
Sets
TagPicker to the action. |
void |
setUiComponentProperties(UiComponentProperties componentProperties) |
getOpenMode, getScreenClass, getScreenId, setAfterCloseHandler, setIcons, setMessages, setOpenMode, setScreenBuilders, setScreenClass, setScreenConfigurer, setScreenId, setScreenOptionsSupplier, setSelectValidator, setTransformation
addActionPerformedListener, addEnabledRule, isApplicable, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcut
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombination
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOpenMode, getScreenClass, getScreenId, setAfterCloseHandler, setOpenMode, setScreenClass, setScreenConfigurer, setScreenId, setScreenOptionsSupplier
setPicker
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
public static final java.lang.String ID
protected TagPicker tagPicker
protected UiComponentProperties componentProperties
protected boolean multiSelect
protected boolean editable
public TagLookupAction()
public TagLookupAction(java.lang.String id)
@Autowired public void setUiComponentProperties(UiComponentProperties componentProperties)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void setTagPicker(@Nullable TagPicker tagPicker)
TagPicker.TagPickerAction
TagPicker
to the action.setTagPicker
in interface TagPicker.TagPickerAction
tagPicker
- field to setpublic void editableChanged(boolean editable)
ValuePicker.ValuePickerAction
ValuePicker
to inform about its editable state.editableChanged
in interface ValuePicker.ValuePickerAction
editable
- a ValuePicker
editable statepublic boolean isMultiSelect()
@StudioPropertiesItem public void setMultiSelect(boolean multiSelect)
LookupComponent
supports it. The default value is true
.multiSelect
- whether multiselect should be enabled or notpublic boolean isEditable()
isEditable
in interface ValuePicker.ValuePickerAction
protected void setEditable(boolean editable)
public void actionPerform(Component component)
Action
actionPerform
in interface Action
actionPerform
in class BaseAction
component
- invoking componentpublic void execute()
Action.ExecutableAction
Action
execute
in interface Action.ExecutableAction