public boolean testOK() {
    	String formedString = this.getText();
    	currentRegex = prepareRegex(formedString);
    	if(valueType.equals(IVPValue.INTEGER_TYPE)||valueType.equals(IVPValue.DOUBLE_TYPE)){
    		if(formedString.indexOf("-")!=-1 || formedString.indexOf("+")!= -1){
    			if(formedString.length() > 1 && formedString.matches(currentRegex)){
    				return true;
    			}
    		}else{
    			if(formedString.length() > 0 && formedString.matches(currentRegex)){
    				return true;
    			}
    		}
    	}else{
    		if(formedString.length() > 1 && formedString.matches(currentRegex)){
				return true;
			}
    	}
	    return false;
    }