Class DateIntervalAction
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.ui.action.BaseAction
io.jmix.ui.app.propertyfilter.dateinterval.action.DateIntervalAction
- All Implemented Interfaces:
Action
,Action.HasPrimaryState
,Action.SecuredAction
,ValuePicker.ValuePickerAction
,org.springframework.beans.factory.InitializingBean
@Component("ui_DateIntervalAction")
@Scope("prototype")
public class DateIntervalAction
extends BaseAction
implements ValuePicker.ValuePickerAction, org.springframework.beans.factory.InitializingBean
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.action.BaseAction
BaseAction.EnabledRule
Nested classes/interfaces inherited from interface io.jmix.ui.action.Action
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
-
Field Summary
Modifier and TypeFieldDescriptionprotected DateIntervalUtils
protected boolean
protected Icons
static final String
protected Messages
protected MetaPropertyPath
protected ScreenBuilders
protected Subscription
protected ValuePicker<BaseDateInterval>
Fields inherited from class io.jmix.ui.action.AbstractAction
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
Fields inherited from interface io.jmix.ui.action.Action
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
Fields inherited from interface io.jmix.ui.component.ValuePicker.ValuePickerAction
PROP_EDITABLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerform
(Component component) Invoked by owning component to execute the action.void
protected void
checkValueType
(BaseDateInterval value) void
editableChanged
(boolean editable) Called byValuePicker
to inform about its editable state.boolean
protected void
protected void
void
setDateIntervalUtils
(DateIntervalUtils dateIntervalUtils) protected void
setEditable
(boolean editable) void
void
setMessages
(Messages messages) void
setMetaPropertyPath
(MetaPropertyPath metaPropertyPath) Sets meta property path of entity's property for Date Interval.void
setPicker
(ValuePicker valuePicker) Sets aValuePicker
instance associated with this action.void
setScreenBuilders
(ScreenBuilders screenBuilders) Methods inherited from class io.jmix.ui.action.BaseAction
addActionPerformedListener, addEnabledRule, isApplicable, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcut
Methods inherited from class io.jmix.ui.action.AbstractAction
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombination
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.action.Action
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setShortcut, setShortcutCombination
-
Field Details
-
ID
- See Also:
-
icons
-
messages
-
screenBuilders
-
dateIntervalUtils
-
valuePicker
-
metaPropertyPath
-
valueChangeSubscription
-
editable
protected boolean editable
-
-
Constructor Details
-
DateIntervalAction
public DateIntervalAction() -
DateIntervalAction
-
-
Method Details
-
setIcons
-
setMessages
-
setScreenBuilders
-
setDateIntervalUtils
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
setPicker
Description copied from interface:ValuePicker.ValuePickerAction
Sets aValuePicker
instance associated with this action.- Specified by:
setPicker
in interfaceValuePicker.ValuePickerAction
- Parameters:
valuePicker
- aValuePicker
instance to set
-
editableChanged
public void editableChanged(boolean editable) Description copied from interface:ValuePicker.ValuePickerAction
Called byValuePicker
to inform about its editable state.- Specified by:
editableChanged
in interfaceValuePicker.ValuePickerAction
- Parameters:
editable
- aValuePicker
editable state
-
isEditable
public boolean isEditable()- Specified by:
isEditable
in interfaceValuePicker.ValuePickerAction
- Returns:
- whether this action is editable
-
setEditable
protected void setEditable(boolean editable) -
getMetaPropertyPath
- Returns:
- meta property path of entity's property for Date Interval
-
setMetaPropertyPath
Sets meta property path of entity's property for Date Interval.- Parameters:
metaPropertyPath
- meta property path
-
actionPerform
Description copied from interface:Action
Invoked by owning component to execute the action.- Specified by:
actionPerform
in interfaceAction
- Overrides:
actionPerform
in classBaseAction
- Parameters:
component
- invoking component
-
onDateIntervalDialogCloseEvent
-
onValuePickerValueChange
-
checkValueType
-