Class DateIntervalAction
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
io.jmix.flowui.action.SecuredBaseAction
io.jmix.flowui.action.valuepicker.PickerAction<DateIntervalAction,PickerComponent<BaseDateInterval>,BaseDateInterval>
io.jmix.flowui.action.valuepicker.DateIntervalAction
- All Implemented Interfaces:
ExecutableAction,SecuredAction,TargetAction<PickerComponent<BaseDateInterval>>,Action,HasShortcutCombination
@ActionType("value_dateInterval")
public class DateIntervalAction
extends PickerAction<DateIntervalAction,PickerComponent<BaseDateInterval>,BaseDateInterval>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseAction
SecuredBaseAction.EnabledRule -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DateIntervalSupportprotected DialogWindowsstatic final Stringprotected MetaPropertyPathprotected com.vaadin.flow.shared.RegistrationFields inherited from class io.jmix.flowui.action.valuepicker.PickerAction
targetFields inherited from class io.jmix.flowui.action.SecuredBaseAction
enabledByUiPermissions, enabledRules, visibleByUiPermissionsFields inherited from class io.jmix.flowui.kit.action.BaseAction
enabledExplicitly, visibleExplicitlyFields inherited from class io.jmix.flowui.kit.action.AbstractAction
description, enabled, eventBus, icon, id, shortcutCombination, text, variant, visibleFields inherited from interface io.jmix.flowui.kit.action.Action
PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT_COMBINATION, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckValueType(BaseDateInterval value) protected voiddateIntervalDialogConfigurer(DateIntervalDialog dateIntervalDialog) voidexecute()Executes theActionprotected voidprotected voidprotected voidonValuePickerValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<ValuePicker<BaseDateInterval>, BaseDateInterval> event) voidRefreshes internal state of the action to initialize enabled, visible, text, icon, etc.protected voidsetDateIntervalSupport(DateIntervalSupport dateIntervalSupport) voidsetDialogWindows(DialogWindows dialogWindows) voidsetMessages(Messages messages) voidsetMetaPropertyPath(MetaPropertyPath metaPropertyPath) Sets meta property path of entity's property for Date Interval.Methods inherited from class io.jmix.flowui.action.valuepicker.PickerAction
actionPerform, checkTarget, getTarget, isApplicable, setTarget, withEnabled, withEnabledByUiPermissions, withHandler, withIcon, withIcon, withShortcutCombination, withTarget, withText, withTitle, withVariant, withVisible, withVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.action.SecuredBaseAction
addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, removeEnabledRule, setEnabledByUiPermissions, setVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, setEnabled, setEnabledInternal, setVisible, setVisibleInternal, withDescriptionMethods inherited from class io.jmix.flowui.kit.action.AbstractAction
addPropertyChangeListener, firePropertyChange, getDescription, getEventBus, getIcon, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, setShortcutCombination, setText, setVariantMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.kit.action.Action
addPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, setDescription, setEnabled, setIcon, setText, setVariant, setVisibleMethods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombination
getShortcutCombination, setShortcutCombination
-
Field Details
-
ID
- See Also:
-
dateIntervalSupport
-
dialogWindows
-
metaPropertyPath
-
valueChangeSubscription
protected com.vaadin.flow.shared.Registration valueChangeSubscription
-
-
Constructor Details
-
DateIntervalAction
public DateIntervalAction() -
DateIntervalAction
-
-
Method Details
-
initAction
protected void initAction()- Overrides:
initActionin classPickerAction<DateIntervalAction,PickerComponent<BaseDateInterval>, BaseDateInterval>
-
setMessages
-
setDateIntervalSupport
-
setDialogWindows
-
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
-
execute
public void execute()Description copied from interface:ExecutableActionExecutes theAction -
refreshState
public void refreshState()Description copied from interface:ActionRefreshes internal state of the action to initialize enabled, visible, text, icon, etc. properties depending on programmatically set values and user permissions set at runtime.For example, this method is called by visual components holding actions when they are bound to data. At this moment the action can find out what entity it is connected to and change its state according to the user permissions.
- Specified by:
refreshStatein interfaceAction- Overrides:
refreshStatein classSecuredBaseAction
-
dateIntervalDialogConfigurer
-
onDateIntervalDialogClose
-
onValuePickerValueChange
protected void onValuePickerValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<ValuePicker<BaseDateInterval>, BaseDateInterval> event) -
checkValueType
-