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
,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.ValidationEvent
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.vaadin.flow.component.button.Button
protected UnconstrainedDataManager
protected boolean
protected 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.TextField
protected MessageBundle
protected String
protected String
protected QuartzJobClassFinder
protected QuartzService
protected boolean
protected ScheduleDescriptionProvider
protected 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Predicate<T>
distinctByKey
(Function<? super T, ?> keyExtractor) protected void
protected void
protected void
onBeforeShow
(View.BeforeShowEvent event) protected void
onInit
(View.InitEvent event) protected void
protected void
onJobDataParameterEditorCancel
(com.vaadin.flow.component.grid.editor.EditorCancelEvent<JobDataParameterModel> event) protected void
protected void
onJobGroupFieldChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<String>, String> event) protected void
onJobGroupFieldValueSet
(com.vaadin.flow.component.combobox.ComboBoxBase.CustomValueSetEvent<com.vaadin.flow.component.combobox.ComboBox<String>> event) protected void
onjobNameFieldChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.textfield.TextField, String> event) protected void
void
setReadOnly
(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, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isReloadEdited, isReloadSaved, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, save, setCrossFieldValidationEnabled, setEntityToEdit, setReloadEdited, setReloadSaved, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, setupEntityToEdit, setupEntityToEdit, validateView
Methods inherited from class io.jmix.flowui.view.StandardView
initContent
Methods 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, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods 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, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods 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:ReadOnlyAwareView
Changes the read-only mode.- Specified by:
setReadOnly
in interfaceReadOnlyAwareView
- Overrides:
setReadOnly
in classStandardDetailView<JobModel>
- Parameters:
readOnly
-true
to enable the read-only mode,false
otherwise
-
onBeforeShow
-
distinctByKey
-
onValidation
-
onBeforeCommitChanges
-
onJobDataParamsTableCreate
@Subscribe("jobDataParamsTable.addNewDataParam") protected void onJobDataParamsTableCreate(ActionPerformedEvent event)
-