|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.model.BoundedRangeModel
org.apache.myfaces.trinidad.model.DefaultBoundedRangeModel
public class DefaultBoundedRangeModel
Default BoundedRangeModel implementation. Defaults 'maximum' and 'value' to be -1. Validates that value <= maximum. This model implementation can conveniently be used by the 'progress' components.
Constructor Summary | |
---|---|
DefaultBoundedRangeModel()
Construct a new DefaultBoundedRangeModel with defaults. |
|
DefaultBoundedRangeModel(long value,
long maximum)
Constructs a new DefaultBoundedRangeModel with specified 'maximum' and 'value'. |
Method Summary | |
---|---|
long |
getMaximum()
Gets the maximum value for this model. |
long |
getValue()
Gets the current value for this model. |
void |
setMaximum(long maximum)
Sets the maximum value for this model. |
void |
setValue(long value)
Sets the current value for this model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultBoundedRangeModel()
public DefaultBoundedRangeModel(long value, long maximum)
value
- - the value for this model.maximum
- - the maximum for this bounded range.
IllegalArgumentException
- if the value is not in the valid range.Method Detail |
---|
public long getMaximum()
BoundedRangeModel
getMaximum
in class BoundedRangeModel
public long getValue()
BoundedRangeModel
getValue
in class BoundedRangeModel
public void setMaximum(long maximum)
maximum
- the maximum value to be setpublic void setValue(long value)
value
- the current value to be set.
IllegalArgumentException
- if the value is not in the valid range.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |