|
|||||||||
| Home >> All >> com >> memoire >> [ bu overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.memoire.bu
Class BuNumericValueValidator

java.lang.Objectcom.memoire.bu.BuValueValidator
com.memoire.bu.BuNumericValueValidator
- public class BuNumericValueValidator
- extends BuValueValidator
A validator for numerical input values with a min/max control. Provides standard ones for ints, doubles, positive ints and positive doubles.
| Field Summary | |
private boolean |
integer_only_
|
private double |
max_
|
private double |
min_
|
static BuNumericValueValidator |
POSITIVE_DOUBLE
|
static BuNumericValueValidator |
POSITIVE_INTEGER
|
| Fields inherited from class com.memoire.bu.BuValueValidator |
DATE, DOUBLE, FILE, FLOAT, ID, INTEGER, LONG, TIME |
| Constructor Summary | |
BuNumericValueValidator()
|
|
BuNumericValueValidator(boolean _integer_only,
double _min,
double _max)
|
|
| Method Summary | |
double |
getMax()
|
double |
getMin()
|
boolean |
isIntegerOnly()
|
boolean |
isValueValid(java.lang.Object _value)
|
void |
setIntegerOnly(boolean _integer_only)
|
void |
setMax(double _max)
|
void |
setMin(double _min)
|
| Methods inherited from class com.memoire.bu.BuValueValidator |
MAX, MIN, MINMAX, MULTI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
integer_only_
private boolean integer_only_
min_
private double min_
max_
private double max_
POSITIVE_INTEGER
public static final BuNumericValueValidator POSITIVE_INTEGER
POSITIVE_DOUBLE
public static final BuNumericValueValidator POSITIVE_DOUBLE
| Constructor Detail |
BuNumericValueValidator
public BuNumericValueValidator()
BuNumericValueValidator
public BuNumericValueValidator(boolean _integer_only,
double _min,
double _max)
| Method Detail |
isIntegerOnly
public boolean isIntegerOnly()
setIntegerOnly
public void setIntegerOnly(boolean _integer_only)
getMin
public double getMin()
setMin
public void setMin(double _min)
getMax
public double getMax()
setMax
public void setMax(double _max)
isValueValid
public boolean isValueValid(java.lang.Object _value)
- Specified by:
isValueValidin classBuValueValidator
|
|||||||||
| Home >> All >> com >> memoire >> [ bu overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC