Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.validate
Class DecimalValidater

java.lang.Object
  |
  +--oracle.cabo.ui.validate.BaseClientValidater
        |
        +--oracle.cabo.ui.validate.DecimalValidater
All Implemented Interfaces:
ClientValidater, Formatter, ServerValidater

public class DecimalValidater
extends BaseClientValidater
implements Formatter

Validater for validating numbers.


Fields inherited from interface oracle.cabo.ui.validate.ServerValidater
NO_CONTENT_ERROR_OFFSET, UNKNOWN_ERROR_OFFSET
 
Constructor Summary
DecimalValidater()
           
 
Method Summary
 java.lang.String formatObject(java.lang.Object value, LocaleContext localeContext)
          Formats the value into a String in a potentially Locale-specific manner.
protected  java.lang.String getHTMLLibReference()
          Returns the name of the Javascript code that this validator requires.
protected  java.lang.String getHTMLValidation(RenderingContext context)
           
 java.lang.String getValidationFormat(RenderingContext context, UINode node)
           
 java.lang.Object parseString(java.lang.String value, LocaleContext localeContext)
          Returns the value as a Double.
 void setMaxPrecision(int maxPrecision)
           
 void setMaxScale(int maxScale)
           
 void setMaxValue(double maxValue)
           
 void setMinValue(double minValue)
           
 java.text.ParseException[] validate(RenderingContext context, java.lang.String value)
           
 
Methods inherited from class oracle.cabo.ui.validate.BaseClientValidater
getLookAndFeelString, getValidation, getWMLValidation, logError, writeDependencies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecimalValidater

public DecimalValidater()
Method Detail

validate

public java.text.ParseException[] validate(RenderingContext context,
                                           java.lang.String value)

formatObject

public java.lang.String formatObject(java.lang.Object value,
                                     LocaleContext localeContext)
Description copied from interface: Formatter
Formats the value into a String in a potentially Locale-specific manner.
Specified by:
formatObject in interface Formatter

parseString

public java.lang.Object parseString(java.lang.String value,
                                    LocaleContext localeContext)
                             throws java.text.ParseException
Returns the value as a Double.
Specified by:
parseString in interface Formatter

getValidationFormat

public java.lang.String getValidationFormat(RenderingContext context,
                                            UINode node)
Overrides:
getValidationFormat in class BaseClientValidater

setMaxPrecision

public void setMaxPrecision(int maxPrecision)

setMaxScale

public void setMaxScale(int maxScale)

setMaxValue

public void setMaxValue(double maxValue)

setMinValue

public void setMinValue(double minValue)

getHTMLValidation

protected java.lang.String getHTMLValidation(RenderingContext context)
Overrides:
getHTMLValidation in class BaseClientValidater

getHTMLLibReference

protected java.lang.String getHTMLLibReference()
Description copied from class: BaseClientValidater
Returns the name of the Javascript code that this validator requires.
Overrides:
getHTMLLibReference in class BaseClientValidater

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.