Package io.jmix.quartzflowui.view.jobs
Class JobModelListView
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
,LookupView<JobModel>
,MultiSelectLookupView
,Serializable
@Route(value="quartz/jobmodels",
layout=DefaultMainViewParent.class)
@ViewController("quartz_JobModel.list")
@ViewDescriptor("job-model-list-view.xml")
@DialogMode(width="60em")
public class JobModelListView
extends StandardListView<JobModel>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
Nested classes/interfaces inherited from interface io.jmix.flowui.view.LookupView
LookupView.ValidationContext<E>
-
Field Summary
Modifier and TypeFieldDescriptionprotected TypedTextField<String>
protected TypedTextField<String>
static final String
static final String
static final String
static final String
protected CollectionContainer<JobModel>
protected JmixSelect<JobState>
protected MessageBundle
protected MessageTools
protected TypedTextField<String>
protected Notifications
protected QuartzService
protected RemoveOperation
protected ScheduleDescriptionProvider
Fields inherited from class io.jmix.flowui.view.StandardListView
DISCARD_ACTION_DEFAULT_ID, LOOKUP_ACTIONS_LAYOUT_DEFAULT_ID, SELECT_ACTION_DEFAULT_ID, selectionHandler, selectionValidator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Comparator<JobModel>
createJobModelComparator
(List<com.vaadin.flow.component.grid.GridSortOrder<JobModel>> sorting) protected Comparator<?>
createSortOrderComparator
(MetaClass jobModelMetaClass, String propertyKey, com.vaadin.flow.data.provider.SortDirection direction) protected boolean
hasActiveState
(JobModel jobModel) Checks job model for active (normal\waiting) state without taking into account running job cacheprotected void
protected void
protected boolean
isJobActive
(JobModel jobModel) Checks if job is actually active - waiting for next execution time or running at this momentprotected boolean
isJobInvalid
(JobModel jobModel) protected boolean
isJobRunning
(JobModel jobModel) Check if job is actually running via checking running job cacheprotected boolean
isJobWaitingForExecution
(JobModel jobModel) Checks if job is actually waiting for next executionprotected boolean
protected void
protected boolean
protected void
jobModelsTableEditAfterCommitHandler
(JobModel jobModel) protected boolean
protected boolean
protected String
jobStatePartNameGenerator
(JobModel entity) protected void
onBeforeShow
(View.BeforeShowEvent event) protected void
onFilterFieldValueChange
(com.vaadin.flow.component.ComponentEvent<?> event) protected void
onInit
(View.InitEvent event) protected void
protected void
protected void
protected void
protected void
protected void
updateDataWithSelection
(JobModel selectedJobModel) Methods inherited from class io.jmix.flowui.view.StandardListView
closeWithDiscard, doSelect, findLookupComponent, getDiscardAction, getLookupActionsLayout, getLookupComponent, getSelectAction, getSelectionHandler, getSelectionValidator, handleSelection, lookupEnterPress, setLookupComponentMultiSelect, setSelectionHandler, setSelectionValidator, setupLookupComponent, setupSaveShortcut, validateSelectedItems
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, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, onDetachInternal, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigation
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
-
JOB_NAME_URL_PARAM
- See Also:
-
JOB_GROUP_URL_PARAM
- See Also:
-
JOB_CLASS_URL_PARAM
- See Also:
-
JOB_STATE_URL_PARAM
- See Also:
-
jobModelsTable
-
nameFilter
-
classFilter
-
groupFilter
-
jobStateFilter
-
jobModelsDc
-
removeOperation
-
quartzService
-
scheduleDescriptionProvider
-
notifications
-
messageBundle
-
messageTools
-
-
Constructor Details
-
JobModelListView
public JobModelListView()
-
-
Method Details
-
onInit
-
initTable
protected void initTable() -
jobStatePartNameGenerator
-
initUrlParameters
protected void initUrlParameters() -
onBeforeShow
-
loadJobsData
-
createJobModelComparator
protected Comparator<JobModel> createJobModelComparator(List<com.vaadin.flow.component.grid.GridSortOrder<JobModel>> sorting) -
createSortOrderComparator
protected Comparator<?> createSortOrderComparator(MetaClass jobModelMetaClass, String propertyKey, com.vaadin.flow.data.provider.SortDirection direction) -
jobModelsTableExecuteNowEnabledRule
-
jobModelsTableActivateEnabledRule
-
jobModelsTableDeactivateEnabledRule
-
jobModelsTableRemoveEnabledRule
-
updateDataWithSelection
-
onJobModelsTableExecuteNow
@Subscribe("jobModelsTable.executeNow") protected void onJobModelsTableExecuteNow(ActionPerformedEvent event) -
onJobModelsTableActivate
@Subscribe("jobModelsTable.activate") protected void onJobModelsTableActivate(ActionPerformedEvent event) -
onJobModelsTableDeactivate
@Subscribe("jobModelsTable.deactivate") protected void onJobModelsTableDeactivate(ActionPerformedEvent event) -
onJobModelsTableRemove
@Subscribe("jobModelsTable.remove") protected void onJobModelsTableRemove(ActionPerformedEvent event) -
onJobModelsTableRefresh
@Subscribe("jobModelsTable.refresh") protected void onJobModelsTableRefresh(ActionPerformedEvent event) -
jobModelsTableCreateAfterCommitHandler
-
jobModelsTableEditAfterCommitHandler
-
isJobActive
Checks if job is actually active - waiting for next execution time or running at this moment -
isJobRunning
Check if job is actually running via checking running job cache -
isJobWaitingForExecution
Checks if job is actually waiting for next execution -
isJobInvalid
-
hasActiveState
Checks job model for active (normal\waiting) state without taking into account running job cache -
onFilterFieldValueChange
protected void onFilterFieldValueChange(com.vaadin.flow.component.ComponentEvent<?> event)
-