|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tridas.io.defaults.AbstractDefaultValue<Integer>
org.tridas.io.defaults.values.IntegerDefaultValue
public class IntegerDefaultValue
Constructor Summary | |
---|---|
IntegerDefaultValue()
|
|
IntegerDefaultValue(Integer argInteger)
|
|
IntegerDefaultValue(Integer argInteger,
int argMin,
int argMax)
|
|
IntegerDefaultValue(Integer argInteger,
int argMin,
int argMax,
int argMinLength,
int argMaxLength)
Constructor for a default field of type integer |
|
IntegerDefaultValue(int argMin,
int argMax)
|
Method Summary | |
---|---|
int |
getMax()
Maximum the integer can be |
int |
getMin()
Minimum the integer can be |
Integer |
getValue()
Gets the value. |
boolean |
isFriendlyRangeValidation()
if true, it will move the value into the range instead of disregarding the modification. |
void |
setFriendlyRangeValidation(boolean changeToRange)
if true, it will move the value into the range instead of disregarding the modification. |
void |
setMax(int max)
Maximum the integer can be |
void |
setMin(int min)
Minimum the integer can be |
protected boolean |
validateAndSetValue(Integer argValue)
Validate and set the value. |
Methods inherited from class org.tridas.io.defaults.AbstractDefaultValue |
---|
clone, getKey, getMaxLength, getMinLength, getParent, getStringValue, isOverriding, isPadRight, setKey, setMaxLength, setMinLength, setOverriding, setOverridingValue, setPadRight, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntegerDefaultValue()
public IntegerDefaultValue(Integer argInteger)
public IntegerDefaultValue(Integer argInteger, int argMin, int argMax)
public IntegerDefaultValue(int argMin, int argMax)
public IntegerDefaultValue(Integer argInteger, int argMin, int argMax, int argMinLength, int argMaxLength)
argInteger
- argMin
- argMax
- argMinLength
- argMaxLength
- Method Detail |
---|
public Integer getValue()
AbstractDefaultValue
getValue
in class AbstractDefaultValue<Integer>
org.tridas.io.defaults.IDefaultValue#getValue()
protected boolean validateAndSetValue(Integer argValue)
AbstractDefaultValue
validateAndSetValue
in class AbstractDefaultValue<Integer>
argValue
- the value, can be null.
org.tridas.io.defaults.IDefaultValue#setValue(java.lang.Object)
public void setMax(int max)
max
- the max to setpublic int getMax()
public void setMin(int min)
min
- the min to setpublic int getMin()
public void setFriendlyRangeValidation(boolean changeToRange)
changeToRange
- the changeToRange to setpublic boolean isFriendlyRangeValidation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |