public final class TypeSafeVerifier
extends javax.swing.InputVerifier
Constructor and Description |
---|
TypeSafeVerifier(java.lang.Class clsType)
Constructor, define the class type of the field.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDatePattern()
Gets the date pattern.
|
byte |
getDefaultByteValue()
Gets the default byte value.
|
java.util.Date |
getDefaultDateValue()
Gets the default date value.
|
double |
getDefaultDoubleValue()
Gets the default double value.
|
float |
getDefaultFloatValue()
Gets the default float value.
|
int |
getDefaultIntegerValue()
Gets the default integer value.
|
long |
getDefaultLongValue()
Gets the default long value.
|
short |
getDefaultShortValue()
Gets the default short value.
|
boolean |
getDefaultsOnError()
Gets defaultsOnError status.
|
byte |
getMaxByteValue()
Gets the max byte value.
|
double |
getMaxDoubleValue()
Gets the max double value.
|
float |
getMaxFloatValue()
Gets the max float value.
|
int |
getMaxIntegerValue()
Gets the max integer value.
|
long |
getMaxLongValue()
Gets the max long value.
|
short |
getMaxShortValue()
Gets the max short value.
|
byte |
getMinByteValue()
Gets the min byte value.
|
int |
getMinChars()
Gets min characters allowed.
|
double |
getMinDoubleValue()
Gets the min double value.
|
float |
getMinFloatValue()
Gets the min float value.
|
int |
getMinIntegerValue()
Gets the min integer value.
|
long |
getMinLongValue()
Gets the min long value.
|
short |
getMinShortValue()
Gets the min short value.
|
boolean |
getTrimSpaces()
Gets trimspaces status.
|
java.lang.Class |
getVerifierClassType()
Gets the class type.
|
void |
setDatePattern(java.lang.String v)
Sets the date pattern.
|
void |
setDefaultByteValue(byte v)
Sets the default byte value.
|
void |
setDefaultDateValue(java.util.Date v)
Sets the default date value.
|
void |
setDefaultDoubleValue(double v)
Sets the default double value.
|
void |
setDefaultFloatValue(float v)
Sets the default float value.
|
void |
setDefaultIntegerValue(int v)
Sets the default integer value.
|
void |
setDefaultLongValue(long v)
Sets the default long value.
|
void |
setDefaultShortValue(short v)
Sets the default short value.
|
void |
setDefaultsOnError(boolean f)
Sets defaultsOnError status.
|
void |
setMaxByteValue(byte v)
Sets the max byte value.
|
void |
setMaxDoubleValue(double v)
Sets the max double value.
|
void |
setMaxFloatValue(float v)
Sets the max float value.
|
void |
setMaxIntegerValue(int v)
Sets the max integer value.
|
void |
setMaxLongValue(long v)
Sets the max long value.
|
void |
setMaxShortValue(short v)
Sets the max short value.
|
void |
setMinByteValue(byte v)
Sets the min byte value.
|
void |
setMinChars(int v)
Sets min characters allowed.
|
void |
setMinDoubleValue(double v)
Sets the min double value.
|
void |
setMinFloatValue(float v)
Sets the min float value.
|
void |
setMinIntegerValue(int v)
Sets the min integer value.
|
void |
setMinLongValue(long v)
Sets the min long value.
|
void |
setMinShortValue(short v)
Sets the min short value.
|
void |
setTrimSpaces(boolean f)
Sets trimspaces status.
|
boolean |
verify(javax.swing.JComponent input)
Verify the component and return true in order to allow focus to progress
to the next component or false to block the user inside this component
until a valid input is entered.
|
public TypeSafeVerifier(java.lang.Class clsType)
public boolean verify(javax.swing.JComponent input)
verify
in class javax.swing.InputVerifier
input
- The component to verify.
public java.lang.Class getVerifierClassType()
public boolean getDefaultsOnError()
public void setDefaultsOnError(boolean f)
f
- true/false.public boolean getTrimSpaces()
public void setTrimSpaces(boolean f)
f
- true/false.public int getMinChars()
public void setMinChars(int v)
v
- minChars.public java.lang.String getDatePattern()
public void setDatePattern(java.lang.String v)
v
- datePattern.public java.util.Date getDefaultDateValue()
public void setDefaultDateValue(java.util.Date v)
v
- defaultDateValue.public byte getMinByteValue()
public void setMinByteValue(byte v)
v
- minByteValue.public byte getMaxByteValue()
public void setMaxByteValue(byte v)
v
- maxByteValue.public byte getDefaultByteValue()
public void setDefaultByteValue(byte v)
v
- defaultByteValue.public short getMinShortValue()
public void setMinShortValue(short v)
v
- minShortValue.public short getMaxShortValue()
public void setMaxShortValue(short v)
v
- maxShortValue.public short getDefaultShortValue()
public void setDefaultShortValue(short v)
v
- defaultShortValue.public int getMinIntegerValue()
public void setMinIntegerValue(int v)
v
- minIntegerValue.public int getMaxIntegerValue()
public void setMaxIntegerValue(int v)
v
- maxIntegerValue.public int getDefaultIntegerValue()
public void setDefaultIntegerValue(int v)
v
- defaultIntegerValue.public long getMinLongValue()
public void setMinLongValue(long v)
v
- minLongValue.public long getMaxLongValue()
public void setMaxLongValue(long v)
v
- maxLongValue.public long getDefaultLongValue()
public void setDefaultLongValue(long v)
v
- defaultLongValue.public float getMinFloatValue()
public void setMinFloatValue(float v)
v
- minFloatValue.public float getMaxFloatValue()
public void setMaxFloatValue(float v)
v
- maxFloatValue.public float getDefaultFloatValue()
public void setDefaultFloatValue(float v)
v
- defaultFloatValue.public double getMinDoubleValue()
public void setMinDoubleValue(double v)
v
- m_minDoubleValue.public double getMaxDoubleValue()
public void setMaxDoubleValue(double v)
v
- maxDoubleValue.public double getDefaultDoubleValue()
public void setDefaultDoubleValue(double v)
v
- defaultDoubleValue.