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 void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a listener to property changes.void
cancel()
Cancel the progress.double
getStatus()
Get the current status.void
start()
Start.
-
-
-
Method Detail
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a listener to property changes.- Specified by:
addPropertyChangeListener
in interfaceProgressBean
- Parameters:
listener
- listener to add
-
start
public void start()
Start.- Specified by:
start
in interfaceProgressBean
-
cancel
public void cancel()
Cancel the progress.- Specified by:
cancel
in interfaceProgressBean
-
getStatus
public double getStatus()
Get the current status.- Specified by:
getStatus
in interfaceProgressBean
- Returns:
- status of progress
-
-