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.ReadyEventNested classes/interfaces inherited from interface io.jmix.flowui.view.LookupView
LookupView.ValidationContext<E> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TypedTextField<String>protected TypedTextField<String>static final Stringstatic final Stringstatic final Stringstatic final Stringprotected CollectionContainer<JobModel>protected JmixSelect<JobState>protected MessageBundleprotected MessageToolsprotected TypedTextField<String>protected Notificationsprotected QuartzServiceprotected RemoveOperationprotected ScheduleDescriptionProviderFields 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
Constructors -
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 booleanhasActiveState(JobModel jobModel) Checks job model for active (normal\waiting) state without taking into account running job cacheprotected voidprotected voidprotected booleanisJobActive(JobModel jobModel) Checks if job is actually active - waiting for next execution time or running at this momentprotected booleanisJobInvalid(JobModel jobModel) protected booleanisJobRunning(JobModel jobModel) Check if job is actually running via checking running job cacheprotected booleanisJobWaitingForExecution(JobModel jobModel) Checks if job is actually waiting for next executionprotected booleanprotected voidprotected booleanprotected voidjobModelsTableEditAfterCommitHandler(JobModel jobModel) protected booleanprotected booleanprotected StringjobStatePartNameGenerator(JobModel entity) protected voidonBeforeShow(View.BeforeShowEvent event) protected voidonFilterFieldValueChange(com.vaadin.flow.component.ComponentEvent<?> event) protected voidonInit(View.InitEvent event) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidupdateDataWithSelection(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, validateSelectedItemsMethods inherited from class io.jmix.flowui.view.StandardView
initContentMethods 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, 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
-
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)
-