<!-- <listener> -->\r
<!-- <listener-class>user.jobengine.zk.util.LogEventInterceptor</listener-class> -->\r
<!-- </listener> -->\r
- <listener>\r
- <description>Monitor the statistic</description>\r
- <listener-class>org.zkoss.zk.ui.util.Statistic</listener-class>\r
- </listener>\r
- <listener>\r
- <description>ZK performance monitor</description>\r
- <listener-class>org.zkoss.performance.monitor.PerformanceMeter</listener-class>\r
- </listener>\r
+<!-- <listener> -->\r
+<!-- <description>Monitor the statistic</description> -->\r
+<!-- <listener-class>org.zkoss.zk.ui.util.Statistic</listener-class> -->\r
+<!-- </listener> -->\r
+<!-- <listener> -->\r
+<!-- <description>ZK performance monitor</description> -->\r
+<!-- <listener-class>org.zkoss.performance.monitor.PerformanceMeter</listener-class> -->\r
+<!-- </listener> -->\r
<listener>\r
<listener-class>user.jobengine.zk.util.DesktopCleanupListener</listener-class>\r
</listener>\r
\r
private List<UITask> uiTasks = new ArrayList<>();\r
\r
- protected void NotifyChange(String... names) {\r
+ protected void notifyChange(String... names) {\r
List<String> nameList = Arrays.asList(names);\r
nameList.forEach(name -> BindUtils.postNotifyChange(null, null, this, name));\r
}\r
\r
private void onJobCreated(IJobRuntime job) {\r
jobList.add(job);\r
- NotifyChange("jobList");\r
+ notifyChange("jobList");\r
}\r
\r
private void onJobDeleted(IJobRuntime job) {\r
// selectedJobs.remove(job);\r
// NotifyChange("selectedJobs");\r
jobList.remove(job);\r
- NotifyChange("jobList");\r
+ notifyChange("jobList");\r
}\r
\r
private void onJobUpdated(IJobRuntime job) {\r
\r
public void setShutdownDisabled(boolean shutdownDisabled) {\r
this.shutdownDisabled = shutdownDisabled;\r
- NotifyChange("shutdownDisabled");\r
+ notifyChange("shutdownDisabled");\r
}\r
\r
public void setStartupDisabled(boolean startupDisabled) {\r
this.startupDisabled = startupDisabled;\r
- NotifyChange("startupDisabled");\r
+ notifyChange("startupDisabled");\r
}\r
\r
@Command\r
\r
public void setImportDisabled(boolean importDisabled) {\r
this.importDisabled = importDisabled;\r
- NotifyChange(IMPORT_DISABLED);\r
+ notifyChange(IMPORT_DISABLED);\r
}\r
\r
public void setJobList(ListModelList<BasicDBObject> jobList) {\r
orderBy = columnHeaders.get(column.getLabel());\r
orderAscending = evt.isAscending();\r
doSearch();\r
- NotifyChange("searchResult", "selectedObject", "hasLowresMediaFile", "lowresMediaFilePath");\r
+ notifyChange("searchResult", "selectedObject", "hasLowresMediaFile", "lowresMediaFilePath");\r
\r
evt.stopPropagation();\r
}\r
\r
registerTask(() -> {\r
allChecked = check[0];\r
- NotifyChange("allChecked");\r
+ notifyChange("allChecked");\r
});\r
}\r
}\r