Package io.jmix.quartzflowui.view.jobs
Class JobModelDetailView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,com.vaadin.flow.router.AfterNavigationObserver,com.vaadin.flow.router.BeforeEnterObserver,com.vaadin.flow.router.BeforeLeaveObserver,com.vaadin.flow.router.HasDynamicTitle,com.vaadin.flow.router.internal.AfterNavigationHandler,com.vaadin.flow.router.internal.BeforeEnterHandler,com.vaadin.flow.router.internal.BeforeLeaveHandler,FragmentOwner,ChangeTracker,DetailView<JobModel>,ReadOnlyAwareView,Serializable
@Route(value="quartz/jobmodels/:id",
layout=DefaultMainViewParent.class)
@ViewController("quartz_JobModel.detail")
@ViewDescriptor("job-model-detail-view.xml")
@DialogMode(width="80em",
resizable=true)
public class JobModelDetailView
extends StandardDetailView<JobModel>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.StandardDetailView
StandardDetailView.AfterSaveEvent, StandardDetailView.BeforeSaveEvent, StandardDetailView.InitEntityEvent<E>, StandardDetailView.SetupLockEvent, StandardDetailView.ValidationEventNested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.component.button.Buttonprotected UnconstrainedDataManagerprotected booleanprotected com.vaadin.flow.component.combobox.ComboBox<String>protected CollectionContainer<JobDataParameterModel>protected DataGrid<JobDataParameterModel>protected com.vaadin.flow.component.combobox.ComboBox<String>protected com.vaadin.flow.component.textfield.TextFieldprotected MessageBundleprotected Stringprotected Stringprotected QuartzJobClassFinderprotected QuartzServiceprotected booleanprotected ScheduleDescriptionProviderprotected CollectionContainer<TriggerModel>protected DataGrid<TriggerModel>Fields inherited from class io.jmix.flowui.view.StandardDetailView
DEFAULT_ROUTE_PARAM, LOCKED_BEFORE_REFRESH_ATTR_NAME, MODE_PARAM, MODE_READONLY, NEW_ENTITY_ID, READ_ONLY_BEFORE_REFRESH_ATTR_NAME, reloadSaved -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Predicate<T>distinctByKey(Function<? super T, ?> keyExtractor) protected voidprotected voidprotected voidonBeforeShow(View.BeforeShowEvent event) protected voidonInit(View.InitEvent event) protected voidprotected voidonJobDataParameterEditorCancel(com.vaadin.flow.component.grid.editor.EditorCancelEvent<JobDataParameterModel> event) protected voidprotected voidonJobGroupFieldChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<String>, String> event) protected voidonJobGroupFieldValueSet(com.vaadin.flow.component.combobox.ComboBoxBase.CustomValueSetEvent<com.vaadin.flow.component.combobox.ComboBox<String>> event) protected voidonjobNameFieldChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.textfield.TextField, String> event) protected voidvoidsetReadOnly(boolean readOnly) Changes the read-only mode.Methods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addValidationEventListener, beforeEnter, closeWithDiscard, closeWithSave, findEntityId, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getLockStatus, getRouteParamName, getSaveNotificationText, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isReloadEdited, isReloadSaved, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, onDetachInternal, save, setCrossFieldValidationEnabled, setEntityToEdit, setReloadEdited, setReloadSaved, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, setupEntityToEdit, setupEntityToEdit, validateViewMethods inherited from class io.jmix.flowui.view.StandardView
initContentMethods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, removeApplicationListeners, removeViewAttributes, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
jobDataParamsTable
-
jobNameField
-
jobGroupField
-
jobClassField
-
triggerModelTable
-
addDataParamButton
-
jobDataParamsDc
-
triggerModelDc
-
quartzService
-
quartzJobClassFinder
-
messageBundle
-
dataManager
-
scheduleDescriptionProvider
-
replaceJobIfExists
protected boolean replaceJobIfExists -
deleteObsoleteJob
protected boolean deleteObsoleteJob -
obsoleteJobName
-
obsoleteJobGroup
-
jobGroupNames
-
-
Constructor Details
-
JobModelDetailView
public JobModelDetailView()
-
-
Method Details
-
onInit
-
onJobDataParameterEditorCancel
protected void onJobDataParameterEditorCancel(com.vaadin.flow.component.grid.editor.EditorCancelEvent<JobDataParameterModel> event) -
initModelTable
protected void initModelTable() -
onJobGroupFieldValueSet
@Subscribe("jobGroupField") protected void onJobGroupFieldValueSet(com.vaadin.flow.component.combobox.ComboBoxBase.CustomValueSetEvent<com.vaadin.flow.component.combobox.ComboBox<String>> event) -
onJobGroupFieldChange
@Subscribe("jobGroupField") protected void onJobGroupFieldChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<String>, String> event) -
onjobNameFieldChange
@Subscribe("jobNameField") protected void onjobNameFieldChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.textfield.TextField, String> event) -
onInitEntity
-
setReadOnly
public void setReadOnly(boolean readOnly) Description copied from interface:ReadOnlyAwareViewChanges the read-only mode.- Specified by:
setReadOnlyin interfaceReadOnlyAwareView- Overrides:
setReadOnlyin classStandardDetailView<JobModel>- Parameters:
readOnly-trueto enable the read-only mode,falseotherwise
-
onBeforeShow
-
distinctByKey
-
onValidation
-
onBeforeCommitChanges
-
onJobDataParamsTableCreate
@Subscribe("jobDataParamsTable.addNewDataParam") protected void onJobDataParamsTableCreate(ActionPerformedEvent event)
-