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,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 
 public abstract class SwingRunner<T> extends SPRunner<T> implements java.beans.PropertyChangeListener A runner than invokes success/failure methods in Swing EventDispatch thread.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.snap.util.SPRunnerSPRunner.Status
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.snap.util.SPRunnerActivityText_Prop, Progress_Prop, Status_Prop
 
- 
 - 
Constructor SummaryConstructors Constructor Description SwingRunner()Creates a SwingRunner.SwingRunner(javax.swing.JComponent aComponent, java.lang.String aTitle)Creates a SwingRunner for component and with title - will show a panel if activity takes too long.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponentgetComponent()Returns the parent component.intgetEstimatedTime()Returns the estimated time.java.lang.StringgetTitle()Returns the title.protected voidinvokeFinished()Runs the success method.voidpropertyChange(java.beans.PropertyChangeEvent anEvent)Watch runner property changes to update monitor.SwingRunner<T>setEstimatedTime(int aValue)Sets the estimated time.SwingRunner<T>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, success
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange, toString
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getComponentpublic javax.swing.JComponent getComponent() Returns the parent component.
 - 
getTitlepublic java.lang.String getTitle() Returns the title.
 - 
startpublic SwingRunner<T> start() Override to start timer/panel.
 - 
getEstimatedTimepublic int getEstimatedTime() Returns the estimated time.
 - 
setEstimatedTimepublic SwingRunner<T> setEstimatedTime(int aValue) Sets the estimated time.
 - 
propertyChangepublic void propertyChange(java.beans.PropertyChangeEvent anEvent) Watch runner property changes to update monitor.- Specified by:
- propertyChangein interface- java.beans.PropertyChangeListener
 
 - 
invokeFinishedprotected void invokeFinished() Runs the success method.- Overrides:
- invokeFinishedin class- SPRunner<T>
 
 
- 
 
-