Package org.nuiton.jaxx.application.type
Class ApplicationProgressionModel
- java.lang.Object
-
- org.jdesktop.beans.AbstractBean
-
- org.jdesktop.beans.AbstractSerializableBean
-
- org.nuiton.jaxx.application.type.ApplicationProgressionModel
-
- All Implemented Interfaces:
Serializable
public class ApplicationProgressionModel extends org.jdesktop.beans.AbstractSerializableBeanSimple model for a progression long task.- Since:
- 2.8
- Author:
- Tony Chemit - chemit@codelutin.com
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intcurrentprotected Stringmessagestatic StringPROPERTY_CURRENTstatic StringPROPERTY_MESSAGEstatic StringPROPERTY_RATEstatic StringPROPERTY_TOTALprotected floatrateprotected inttotal
-
Constructor Summary
Constructors Constructor Description ApplicationProgressionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadaptTotal(int total)intgetCurrent()StringgetMessage()floatgetRate()intgetTotal()voidincrements(int nb)voidincrements(String message)voidsetCurrent(int current)voidsetMessage(String message)voidsetRate(float rate)voidsetTotal(int total)-
Methods inherited from class org.jdesktop.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
-
-
-
Field Detail
-
PROPERTY_TOTAL
public static final String PROPERTY_TOTAL
- See Also:
- Constant Field Values
-
PROPERTY_CURRENT
public static final String PROPERTY_CURRENT
- See Also:
- Constant Field Values
-
PROPERTY_RATE
public static final String PROPERTY_RATE
- See Also:
- Constant Field Values
-
PROPERTY_MESSAGE
public static final String PROPERTY_MESSAGE
- See Also:
- Constant Field Values
-
total
protected int total
-
current
protected int current
-
rate
protected float rate
-
message
protected String message
-
-
Method Detail
-
getTotal
public int getTotal()
-
setTotal
public void setTotal(int total)
-
adaptTotal
public void adaptTotal(int total)
-
getCurrent
public int getCurrent()
-
setCurrent
public void setCurrent(int current)
-
increments
public void increments(int nb)
-
getRate
public float getRate()
-
setRate
public void setRate(float rate)
-
getMessage
public String getMessage()
-
increments
public void increments(String message)
-
setMessage
public void setMessage(String message)
-
-