Class SwingRunner<T>
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.snap.util.SPRunner<T>
com.inductiveautomation.snap.swing.SwingRunner<T>
- All Implemented Interfaces:
- RMPropertyChanger,- PropertyChangeListener,- Cloneable,- EventListener
A runner than invokes success/failure methods in Swing EventDispatch thread.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.snap.util.SPRunnerSPRunner.Status
- 
Field SummaryFields inherited from class com.inductiveautomation.snap.util.SPRunnerActivityText_Prop, Progress_Prop, Status_Prop
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a SwingRunner.SwingRunner(JComponent aComponent, String aTitle) Creates a SwingRunner for component and with title - will show a panel if activity takes too long.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the parent component.intReturns the estimated time.getTitle()Returns the title.protected voidRuns the success method.voidpropertyChange(PropertyChangeEvent anEvent) Watch runner property changes to update monitor.setEstimatedTime(int aValue) Sets the estimated time.start()Override to start timer/panel.Methods inherited from class com.inductiveautomation.snap.util.SPRunnercancel, cancelled, failure, finished, getActivityText, getElapsedTime, getEndTime, getExeption, getName, getProgress, getResult, getStartTime, getStatus, getSystemTime, getThread, invokeRun, isActive, isCancelled, join, join, run, setActivityText, setName, setProgress, setStatus, successMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange, toStringMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
SwingRunnerpublic SwingRunner()Creates a SwingRunner.
- 
SwingRunnerCreates a SwingRunner for component and with title - will show a panel if activity takes too long.
 
- 
- 
Method Details- 
getComponentReturns the parent component.
- 
getTitleReturns the title.
- 
startOverride to start timer/panel.
- 
getEstimatedTimepublic int getEstimatedTime()Returns the estimated time.
- 
setEstimatedTimeSets the estimated time.
- 
propertyChangeWatch runner property changes to update monitor.- Specified by:
- propertyChangein interface- PropertyChangeListener
 
- 
invokeFinishedprotected void invokeFinished()Runs the success method.- Overrides:
- invokeFinishedin class- SPRunner<T>
 
 
-