public class ProgressionModel extends PropertyChangeSupport
Modifier and Type | Field and Description |
---|---|
protected int |
current |
protected String |
message |
static String |
PROPERTY_CURRENT |
static String |
PROPERTY_MESSAGE |
static String |
PROPERTY_RATE |
static String |
PROPERTY_TOTAL |
protected float |
rate |
protected int |
total |
Constructor and Description |
---|
ProgressionModel(Object sourceBean)
Constructs a
ApplicationProgressionModel object. |
Modifier and Type | Method and Description |
---|---|
void |
adaptTotal(int total) |
int |
getCurrent() |
String |
getMessage() |
float |
getRate() |
int |
getTotal() |
void |
increments(int nb) |
void |
increments(String message) |
void |
setCurrent(int current) |
void |
setMessage(String message) |
void |
setRate(float rate) |
void |
setTotal(int total) |
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener
public static final String PROPERTY_TOTAL
public static final String PROPERTY_CURRENT
public static final String PROPERTY_RATE
public static final String PROPERTY_MESSAGE
protected int total
protected int current
protected float rate
public ProgressionModel(Object sourceBean)
ApplicationProgressionModel
object.sourceBean
- The bean to be given as the source for any events.public int getTotal()
public void setTotal(int total)
public void adaptTotal(int total)
public int getCurrent()
public void setCurrent(int current)
public void increments(int nb)
public float getRate()
public void setRate(float rate)
public String getMessage()
public void increments(String message)
public void setMessage(String message)
Copyright © 2012–2014 IFREMER. All rights reserved.