Package snap.util
Class TaskMonitorPanel
java.lang.Object
snap.props.PropObject
snap.util.TaskMonitor
snap.util.TaskMonitorPanel
- All Implemented Interfaces:
PropChange.DoChange
A TaskMonitor implementation that shows task updates in a panel after a short delay.
-
Field Summary
Fields inherited from class snap.util.TaskMonitor
Cancelled_Prop, Finished_Prop, TaskDone_Prop, TasksDone_Prop, TasksTotal_Prop, TaskTitle_Prop, TaskTotal_Prop, Title_Prop
Fields inherited from class snap.props.PropObject
_pcs, EMPTY_OBJECT
-
Constructor Summary
ConstructorDescriptionConstructor.TaskMonitorPanel
(View aView, String aTitle) Constructor for view and title. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Check for whether panel should show.protected void
hide()
Hide panel.protected void
Override to reset UI if needed.void
setCancelled
(boolean aValue) Override to hide panel.void
setFinished
(boolean aValue) Override to hide panel.void
setMonitor
(TaskMonitor sourceMonitor) Override to register for showPanel check.protected void
setTasksTotal
(int aValue) Override to register for showPanel check.protected void
Show panel.Methods inherited from class snap.util.TaskMonitor
beginTask, endTask, getMonitor, getPropValue, getTaskDone, getTaskProgress, getTasksDone, getTasksTotal, getTaskTitle, getTaskTotal, getTitle, initProps, isCancelled, isFinished, setPropValue, setTaskDone, setTasksDone, setTaskTitle, setTaskTotal, setTitle, showProgressPanel, startTasks, updateTask
Methods inherited from class snap.props.PropObject
addDeepChangeListener, addPropChangeListener, addPropChangeListener, clone, firePropChange, firePropChange, firePropChange, getPropDefault, getPropForName, getPropParent, getPropSet, getPropsForArchival, getPropsForArchivalExtra, getPropsString, isPropDefault, processPropChange, removeDeepChangeListener, removePropChangeListener, removePropChangeListener, setPropsString, setPropValues, toString, toStringProps
-
Field Details
-
_view
-
-
Constructor Details
-
TaskMonitorPanel
public TaskMonitorPanel()Constructor. -
TaskMonitorPanel
Constructor for view and title.
-
-
Method Details
-
showPanel
protected void showPanel()Show panel. -
hide
protected void hide()Hide panel. -
checkForShowPanel
protected void checkForShowPanel()Check for whether panel should show. -
setMonitor
Override to register for showPanel check.- Overrides:
setMonitor
in classTaskMonitor
-
setTasksTotal
protected void setTasksTotal(int aValue) Override to register for showPanel check.- Overrides:
setTasksTotal
in classTaskMonitor
-
setCancelled
public void setCancelled(boolean aValue) Override to hide panel.- Overrides:
setCancelled
in classTaskMonitor
-
setFinished
public void setFinished(boolean aValue) Override to hide panel.- Overrides:
setFinished
in classTaskMonitor
-
monitorDidChange
Override to reset UI if needed.- Overrides:
monitorDidChange
in classTaskMonitor
-