@Component(value="ui_DateIntervalAction") @Scope(value="prototype") public class DateIntervalAction extends BaseAction implements ValuePicker.ValuePickerAction, org.springframework.beans.factory.InitializingBean
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 DateIntervalUtils |
dateIntervalUtils |
protected boolean |
editable |
protected Icons |
icons |
static java.lang.String |
ID |
protected io.jmix.core.Messages |
messages |
protected io.jmix.core.metamodel.model.MetaPropertyPath |
metaPropertyPath |
protected ScreenBuilders |
screenBuilders |
protected io.jmix.core.common.event.Subscription |
valueChangeSubscription |
protected ValuePicker<BaseDateInterval> |
valuePicker |
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
PROP_EDITABLE
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
Constructor and Description |
---|
DateIntervalAction() |
DateIntervalAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerform(Component component)
Invoked by owning component to execute the action.
|
void |
afterPropertiesSet() |
protected void |
checkValueType(BaseDateInterval value) |
void |
editableChanged(boolean editable)
Called by
ValuePicker to inform about its editable state. |
io.jmix.core.metamodel.model.MetaPropertyPath |
getMetaPropertyPath() |
boolean |
isEditable() |
protected void |
onDateIntervalDialogCloseEvent(AfterScreenCloseEvent<DateIntervalDialog> closeEvent) |
protected void |
onValuePickerValueChange(HasValue.ValueChangeEvent<BaseDateInterval> event) |
void |
setDateIntervalUtils(DateIntervalUtils dateIntervalUtils) |
protected void |
setEditable(boolean editable) |
void |
setIcons(Icons icons) |
void |
setMessages(io.jmix.core.Messages messages) |
void |
setMetaPropertyPath(io.jmix.core.metamodel.model.MetaPropertyPath metaPropertyPath)
Sets meta property path of entity's property for Date Interval.
|
void |
setPicker(ValuePicker valuePicker)
Sets a
ValuePicker instance associated with this action. |
void |
setScreenBuilders(ScreenBuilders screenBuilders) |
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
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setShortcut, setShortcutCombination
public static final java.lang.String ID
protected Icons icons
protected io.jmix.core.Messages messages
protected ScreenBuilders screenBuilders
protected DateIntervalUtils dateIntervalUtils
protected ValuePicker<BaseDateInterval> valuePicker
protected io.jmix.core.metamodel.model.MetaPropertyPath metaPropertyPath
protected io.jmix.core.common.event.Subscription valueChangeSubscription
protected boolean editable
public DateIntervalAction()
public DateIntervalAction(java.lang.String id)
@Autowired public void setIcons(Icons icons)
@Autowired public void setMessages(io.jmix.core.Messages messages)
@Autowired public void setScreenBuilders(ScreenBuilders screenBuilders)
@Autowired public void setDateIntervalUtils(DateIntervalUtils dateIntervalUtils)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void setPicker(@Nullable ValuePicker valuePicker)
ValuePicker.ValuePickerAction
ValuePicker
instance associated with this action.setPicker
in interface ValuePicker.ValuePickerAction
valuePicker
- a ValuePicker
instance 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 isEditable()
isEditable
in interface ValuePicker.ValuePickerAction
protected void setEditable(boolean editable)
public io.jmix.core.metamodel.model.MetaPropertyPath getMetaPropertyPath()
public void setMetaPropertyPath(io.jmix.core.metamodel.model.MetaPropertyPath metaPropertyPath)
metaPropertyPath
- meta property pathpublic void actionPerform(Component component)
Action
actionPerform
in interface Action
actionPerform
in class BaseAction
component
- invoking componentprotected void onDateIntervalDialogCloseEvent(AfterScreenCloseEvent<DateIntervalDialog> closeEvent)
protected void onValuePickerValueChange(HasValue.ValueChangeEvent<BaseDateInterval> event)
protected void checkValueType(BaseDateInterval value)