Package spin.demo.progress
Class ProgressBeanImpl
- java.lang.Object
-
- spin.demo.progress.ProgressBeanImpl
-
- All Implemented Interfaces:
ProgressBean
public class ProgressBeanImpl extends java.lang.Object implements ProgressBean
Implementation of a progress.
-
-
Constructor Summary
Constructors Constructor Description ProgressBeanImpl()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)Add a listener to property changes.voidcancel()Cancel the progress.doublegetStatus()Get the current status.voidstart()Start.
-
-
-
Method Detail
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a listener to property changes.- Specified by:
addPropertyChangeListenerin interfaceProgressBean- Parameters:
listener- listener to add
-
start
public void start()
Start.- Specified by:
startin interfaceProgressBean
-
cancel
public void cancel()
Cancel the progress.- Specified by:
cancelin interfaceProgressBean
-
getStatus
public double getStatus()
Get the current status.- Specified by:
getStatusin interfaceProgressBean- Returns:
- status of progress
-
-