public class ScheduledTaskEditor extends AbstractEditor<ScheduledTask>
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
Window.BeforeCloseEvent, Window.BeforeCloseWithCloseButtonEvent, Window.BeforeCloseWithShortcutEvent, Window.CloseListener, Window.CloseOrigin, Window.CloseWithCommitListener, Window.Committable, Window.ContentSwitchMode, Window.Editor<T extends Entity>, Window.HasFoldersPane, Window.HasUserIndicator, Window.HasWorkArea, Window.Lookup<T extends Entity>, Window.TopLevelWindow, Window.Wrapper
Frame.MessageMode, Frame.MessageType, Frame.NotificationType
ExpandingLayout.ExpandDirection
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider
commitActionPerformed, crossFieldValidate, justLocked, readOnly, readOnlyDueToLock, showEnableEditingBtn, showSaveNotification
frame, messages, UNKNOWN_CLOSE_ACTION_ID
NAME
BROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, SELECT_ACTION_ID
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
ENABLE_EDITING, WINDOW_CLOSE, WINDOW_COMMIT, WINDOW_COMMIT_AND_CLOSE
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
Constructor and Description |
---|
ScheduledTaskEditor() |
Modifier and Type | Method and Description |
---|---|
protected void |
clear(Field... fields) |
protected void |
clearMethodParamsGrid() |
protected void |
createMethodParamsGrid(MethodInfo methodInfo) |
void |
getCronHelp() |
protected void |
hide(Component... components) |
protected void |
hideAll() |
void |
init(java.util.Map<java.lang.String,java.lang.Object> params)
Called by the framework after creation of all components and before showing the screen.
|
protected void |
initNewItem(ScheduledTask item)
Hook to be implemented in subclasses.
|
protected void |
setInitialMethodNameValue(ScheduledTask task)
Method reads values of methodName and parameters from item,
finds appropriate MethodInfo object in methodInfoField's optionsList
and sets found value to methodInfoField
|
void |
setItem(Entity item)
Called by the framework to set an edited entity after creation of all components and datasources, and after
AbstractWindow.init(java.util.Map) . |
protected void |
setSchedulingTypeField(SchedulingType value) |
protected void |
show(Component... components) |
afterWindowApplyPostInit, closeWithCommit, commit, commit, commitAndClose, commitInternal, disableCommitAction, getDatasourceInternal, getEditedEntity, getItem, getMetaClassForLocking, getParentDs, handlePreviouslyDeletedCompositionItems, hasUnsavedChanges, initCommitActions, isCrossFieldValidate, isLocked, isModified, isReadOnly, isShowSaveNotification, postCommit, postInit, preCommit, releaseLock, setCrossFieldValidate, setEntityToEdit, setItemInternal, setParentDs, setReadOnly, setShowSaveNotification, validateAdditionalRules
add, add, addAction, addAction, addBeforeWindowCloseListener, addFacet, addStyleName, addTimer, afterShow, applySettings, beforeClose, closeWithDiscard, deleteSettings, expand, expand, formatMessage, getAction, getActions, getActionsPermissions, getAlignment, getCaption, getCompanion, getComponent, getComponent, getComponent, getComponents, getComposition, getContentSwitchMode, getContext, getDescription, getDialogOptions, getDsContext, getExpandDirection, getExpandRatio, getFacet, getFacets, getFocusComponent, getFrame, getFrameOwner, getHeight, getHeightSizeUnit, getIcon, getMargin, getMaxHeight, getMaxWidth, getMessage, getMessagesPack, getMinHeight, getMinWidth, getOwnComponent, getOwnComponents, getOwnComponentsStream, getParent, getScreenHashCode, getSettings, getSpacing, getStyleName, getTimer, getWidth, getWidthSizeUnit, getWindowManager, getWrappedFrame, getWrappedWindow, getXmlDescriptor, handleValidationErrors, indexOf, init, initEnableEditingActionStub, isAttributeAccessControlEnabled, isCloseable, isEnabled, isEnabledRecursive, isExpanded, isResponsive, isSameScreen, isValid, isVisible, isVisibleRecursive, postValidate, preClose, ready, remove, removeAction, removeAction, removeAll, removeAllActions, removeBeforeWindowCloseListener, removeFacet, removeStyleName, resetExpanded, saveSettings, setAlignment, setCaption, setCloseable, setCompanion, setContentSwitchMode, setDescription, setDsContext, setEnabled, setExpandRatio, setFocusComponent, setFrame, setHeight, setIcon, setIconFromSet, setId, setMargin, setMaxHeight, setMaxWidth, setMessagesPack, setMinHeight, setMinWidth, setParent, setResponsive, setSpacing, setStyleName, setVisible, setWidth, setWindow, setXmlDescriptor, showValidationErrors, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, validate, validate, validateAll, withUnwrapped, withUnwrappedComposition
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, applyDataLoadingSettings, close, close, closeWithDefaultAction, fireEvent, getBeanLocator, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSaveScreenHistoryOnClose, isSaveSettingsOnClose, setBeanLocator, setExtensions, setScreenData, setUiEventListeners, show
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBeforeCloseWithCloseButtonListener, addBeforeCloseWithShortcutListener, addBeforeWindowCloseListener, addCloseListener, addCloseWithCommitListener, addListener, addTimer, applySettings, close, close, closeAndRun, deleteSettings, getContext, getDialogOptions, getFocusComponent, getFrameOwner, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getSettings, getTimer, getWindowManager, isCloseable, removeBeforeCloseWithCloseButtonListener, removeBeforeCloseWithShortcutListener, removeBeforeWindowCloseListener, removeCloseListener, removeCloseWithCommitListener, removeListener, saveSettings, setCloseable, setFocusComponent, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, validate, validateAll
addFacet, getFacet, getFacetNN, getFacets, isValid, removeFacet, validate
expand, expand, getExpandDirection, isExpanded, resetExpanded
add, getComponent, getComponentNN, indexOf
add, add, focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStream, remove, remove, removeAll
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
getFrame, setFrame
getSpacing, setSpacing
getMargin, setMargin, setMargin, setMargin
addAction, addAction, getAction, getActionNN, getActions, getSubPart, removeAction, removeAction, removeAllActions
getIcon, setIcon, setIconFromSet
getCaption, setCaption
getDescription, setDescription
openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPage
getExpandRatio, setExpandRatio
getCompanion, getContext, getDsContext, getMessagesPack, getXmlDescriptor, isValid, setDsContext, setMessagesPack, setXmlDescriptor, validate, validate, validateAll
getComponent, getComposition
getWrappedFrame
@Inject protected LookupField<java.lang.String> beanNameField
@Inject protected LookupField<MethodInfo> methodNameField
@Inject protected SuggestionPickerField<User> userNameField
@Inject protected OptionsGroup<ScheduledTaskDefinedBy,ScheduledTaskDefinedBy> definedByField
@Inject protected TextField<java.lang.String> classNameField
@Inject protected TextField<java.lang.String> scriptNameField
@Inject protected Label<java.lang.String> beanNameLabel
@Inject protected Label<java.lang.String> methodNameLabel
@Inject protected Label<java.lang.String> classNameLabel
@Inject protected Label<java.lang.String> scriptNameLabel
@Inject protected ComponentContainer methodParamsBox
@Inject protected Datasource<ScheduledTask> taskDs
@Inject protected SchedulingService service
@Inject protected UiComponents uiComponents
@Inject protected OptionsGroup<SchedulingType,SchedulingType> schedulingTypeField
@Inject protected TextField<java.lang.String> cronField
@Inject protected TextField<java.lang.Integer> periodField
@Inject protected DateField<java.util.Date> startDateField
@Inject protected Label<java.lang.String> cronLabel
@Inject protected Label<java.lang.String> periodLabel
@Inject protected Label<java.lang.String> startDateLabel
@Inject protected ThemeConstants themeConstants
@Inject protected LinkButton cronHelpButton
@Inject protected BoxLayout cronHbox
@Inject protected BoxLayout methodNameHbox
@Inject protected CheckBox logStartField
@Inject protected CheckBox logFinishField
protected java.util.List<MethodInfo> availableMethods
protected void show(Component... components)
protected void hide(Component... components)
protected void hideAll()
protected void clear(Field... fields)
public void init(java.util.Map<java.lang.String,java.lang.Object> params)
AbstractWindow
init
in class AbstractWindow
params
- parameters passed from caller's code, usually from
HasWindowManager.openWindow(String, WindowManager.OpenType)
and similar methods, or set in
screens.xml
for this registered screenprotected void setSchedulingTypeField(SchedulingType value)
protected void initNewItem(ScheduledTask item)
AbstractEditor
AbstractEditor.setItem(com.haulmont.cuba.core.entity.Entity)
when
the editor is opened for a new entity instance. Allows to additionally initialize the new entity instance
before setting it into the datasource.initNewItem
in class AbstractEditor<ScheduledTask>
item
- entity instancepublic void setItem(Entity item)
AbstractEditor
AbstractWindow.init(java.util.Map)
.
Don't override this method in subclasses, use hooks AbstractEditor.initNewItem(com.haulmont.cuba.core.entity.Entity)
and AbstractEditor.postInit()
instead.
setItem
in interface Window.Editor<ScheduledTask>
setItem
in class AbstractEditor<ScheduledTask>
item
- entity instanceprotected void setInitialMethodNameValue(ScheduledTask task)
protected void createMethodParamsGrid(MethodInfo methodInfo)
protected void clearMethodParamsGrid()
public void getCronHelp()