Class ApplicationProgressionModel

java.lang.Object
org.jdesktop.beans.AbstractBean
org.jdesktop.beans.AbstractSerializableBean
org.nuiton.jaxx.application.type.ApplicationProgressionModel
All Implemented Interfaces:
java.io.Serializable

public class ApplicationProgressionModel
extends org.jdesktop.beans.AbstractSerializableBean
Simple 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 int current  
    protected java.lang.String message  
    static java.lang.String PROPERTY_CURRENT  
    static java.lang.String PROPERTY_MESSAGE  
    static java.lang.String PROPERTY_RATE  
    static java.lang.String PROPERTY_TOTAL  
    protected float rate  
    protected int total  
  • Constructor Summary

    Constructors
    Constructor Description
    ApplicationProgressionModel()  
  • Method Summary

    Modifier and Type Method Description
    void adaptTotal​(int total)  
    int getCurrent()  
    java.lang.String getMessage()  
    float getRate()  
    int getTotal()  
    void increments​(int nb)  
    void increments​(java.lang.String message)  
    void setCurrent​(int current)  
    void setMessage​(java.lang.String message)  
    void setRate​(float rate)  
    void setTotal​(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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PROPERTY_TOTAL

      public static final java.lang.String PROPERTY_TOTAL
      See Also:
      Constant Field Values
    • PROPERTY_CURRENT

      public static final java.lang.String PROPERTY_CURRENT
      See Also:
      Constant Field Values
    • PROPERTY_RATE

      public static final java.lang.String PROPERTY_RATE
      See Also:
      Constant Field Values
    • PROPERTY_MESSAGE

      public static final java.lang.String PROPERTY_MESSAGE
      See Also:
      Constant Field Values
    • total

      protected int total
    • current

      protected int current
    • rate

      protected float rate
    • message

      protected java.lang.String message
  • Constructor Details

    • ApplicationProgressionModel

      public ApplicationProgressionModel()
  • Method Details

    • 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 java.lang.String getMessage()
    • increments

      public void increments​(java.lang.String message)
    • setMessage

      public void setMessage​(java.lang.String message)