Class DateIntervalAction

All Implemented Interfaces:
ExecutableAction, SecuredAction, TargetAction<PickerComponent<BaseDateInterval>>, Action, HasShortcutCombination

@ActionType("value_dateInterval") public class DateIntervalAction extends PickerAction<DateIntervalAction,PickerComponent<BaseDateInterval>,BaseDateInterval>
  • Field Details

  • Constructor Details

    • DateIntervalAction

      public DateIntervalAction()
    • DateIntervalAction

      public DateIntervalAction(String id)
  • Method Details

    • initAction

      protected void initAction()
      Overrides:
      initAction in class PickerAction<DateIntervalAction,PickerComponent<BaseDateInterval>,BaseDateInterval>
    • setMessages

      @Autowired public void setMessages(Messages messages)
    • setDateIntervalSupport

      @Autowired protected void setDateIntervalSupport(DateIntervalSupport dateIntervalSupport)
    • setDialogWindows

      @Autowired public void setDialogWindows(DialogWindows dialogWindows)
    • getMetaPropertyPath

      public MetaPropertyPath getMetaPropertyPath()
      Returns:
      meta property path of entity's property for Date Interval
    • setMetaPropertyPath

      public void setMetaPropertyPath(MetaPropertyPath metaPropertyPath)
      Sets meta property path of entity's property for Date Interval.
      Parameters:
      metaPropertyPath - meta property path
    • execute

      public void execute()
      Description copied from interface: ExecutableAction
      Executes the Action
    • refreshState

      public void refreshState()
      Description copied from interface: Action
      Refreshes 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:
      refreshState in interface Action
      Overrides:
      refreshState in class SecuredBaseAction
    • dateIntervalDialogConfigurer

      protected void dateIntervalDialogConfigurer(DateIntervalDialog dateIntervalDialog)
    • onDateIntervalDialogClose

      protected void onDateIntervalDialogClose(DialogWindow.AfterCloseEvent<DateIntervalDialog> event)
    • onValuePickerValueChange

      protected void onValuePickerValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<ValuePicker<BaseDateInterval>,BaseDateInterval> event)
    • checkValueType

      protected void checkValueType(BaseDateInterval value)