VLab Common 1.2

pl.psnc.vlab.util
Class FormTools

java.lang.Object
  extended by pl.psnc.vlab.util.FormTools

public class FormTools
extends java.lang.Object

FormTools class - contains various helper methods which checks the correctness of specified data types i.e. whether specified value is valid String, int, long value. There is also a set of methods which acts on swing components

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Constructor Summary
FormTools()
           
 
Method Summary
static boolean isValidateFormStringNull(java.lang.String value)
          Tests whether the validate string is null
static boolean isValidateStringDouble(java.lang.String value)
          Checks whether the string value is a type of Double
static boolean isValidateStringInteger(java.lang.String value)
          Checks whether the string value is a type of Integer
static boolean isValidateStringLong(java.lang.String value)
          Checks whether the string value is a type of Long
static boolean isValidateStringNumber(java.lang.String value)
          Checks whether the string value is a number
static java.lang.String toUpperLetterAndDigit(java.lang.String s)
          Change string value to upper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormTools

public FormTools()
Method Detail

isValidateStringNumber

public static boolean isValidateStringNumber(java.lang.String value)
Checks whether the string value is a number

Parameters:
value - string value
Returns:
true/false

isValidateStringInteger

public static boolean isValidateStringInteger(java.lang.String value)
Checks whether the string value is a type of Integer

Parameters:
value - string value
Returns:
true if it is Integer, false otherwise

isValidateStringLong

public static boolean isValidateStringLong(java.lang.String value)
Checks whether the string value is a type of Long

Parameters:
value - string value
Returns:
true if it is Long, false otherwise

isValidateStringDouble

public static boolean isValidateStringDouble(java.lang.String value)
Checks whether the string value is a type of Double

Parameters:
value - string value
Returns:
true if it is Double, false otherwise

isValidateFormStringNull

public static boolean isValidateFormStringNull(java.lang.String value)
Tests whether the validate string is null

Parameters:
value - the string value
Returns:
true if is not empty, false, otherwise

toUpperLetterAndDigit

public static java.lang.String toUpperLetterAndDigit(java.lang.String s)
Change string value to upper. Letters and digits are allowed

Parameters:
s - string value
Returns:
string value changed to upper case.

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.