www.element4solution.com

e4s.html.input.extended
Class E4ValidatorDATEFIELD

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.html.input.extended.E4ValidatorDATEFIELD
All Implemented Interfaces:
AEP_ValidationObject_Intf

public class E4ValidatorDATEFIELD
extends E4Object
implements AEP_ValidationObject_Intf


Field Summary
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4ValidatorDATEFIELD(DATEFIELD field, boolean mandatory)
          Create a validator for min/max date values.
E4ValidatorDATEFIELD(java.text.SimpleDateFormat format)
          Create a validator for min/max date values.
E4ValidatorDATEFIELD(java.text.SimpleDateFormat format, boolean mandatory)
          Create a validator for min/max date values.
E4ValidatorDATEFIELD(java.text.SimpleDateFormat format, java.util.Calendar from, java.util.Calendar to)
          Create a validator for min/max date values.
E4ValidatorDATEFIELD(java.text.SimpleDateFormat format, java.util.Calendar from, java.util.Calendar to, boolean mandatory)
          Create a validator for min/max date values.
E4ValidatorDATEFIELD(java.text.SimpleDateFormat format, java.util.Date from, java.util.Date to)
          Create a validator for min/max date values.
E4ValidatorDATEFIELD(java.text.SimpleDateFormat format, java.util.Date from, java.util.Date to, boolean mandatory)
          Create a validator for min/max date values.
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 java.lang.String Format(java.util.Date dat)
           
 boolean isMandatory()
          Check, if this validator is mandatory.
 void setFieldset(char mode, E4Fieldset fieldset)
          Ignored
 void setMandatory(boolean mandatory)
          Define if this validator is mandatory.
 E4Label_Intf validate(E4InputFieldName_Intf name, E4Label_Intf label, java.lang.String value)
          Validate a field during input.
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

E4ValidatorDATEFIELD

public E4ValidatorDATEFIELD(java.text.SimpleDateFormat format)
Create a validator for min/max date values.

Parameters:
format - the date format picture

E4ValidatorDATEFIELD

public E4ValidatorDATEFIELD(java.text.SimpleDateFormat format,
                            boolean mandatory)
Create a validator for min/max date values.

Parameters:
format - the date format picture

E4ValidatorDATEFIELD

public E4ValidatorDATEFIELD(DATEFIELD field,
                            boolean mandatory)
Create a validator for min/max date values.

Parameters:
format - the date format picture

E4ValidatorDATEFIELD

public E4ValidatorDATEFIELD(java.text.SimpleDateFormat format,
                            java.util.Calendar from,
                            java.util.Calendar to)
Create a validator for min/max date values.

Parameters:
format - the date format picture
from - the minimum value, use null to disable minimum validation
to - the maximum value, use null to disable maximum validation

E4ValidatorDATEFIELD

public E4ValidatorDATEFIELD(java.text.SimpleDateFormat format,
                            java.util.Calendar from,
                            java.util.Calendar to,
                            boolean mandatory)
Create a validator for min/max date values.

Parameters:
format - the date format picture
from - the minimum value, use null to disable minimum validation
to - the maximum value, use null to disable maximum validation
mandatory - teh value is mandatory (input required)

E4ValidatorDATEFIELD

public E4ValidatorDATEFIELD(java.text.SimpleDateFormat format,
                            java.util.Date from,
                            java.util.Date to)
Create a validator for min/max date values.

Parameters:
format - the date format picture
from - the minimum value, use null to disable minimum validation
to - the maximum value, use null to disable maximum validation

E4ValidatorDATEFIELD

public E4ValidatorDATEFIELD(java.text.SimpleDateFormat format,
                            java.util.Date from,
                            java.util.Date to,
                            boolean mandatory)
Create a validator for min/max date values.

Parameters:
format - the date format picture
from - the minimum value, use null to disable minimum validation
to - the maximum value, use null to disable maximum validation
mandatory - teh value is mandatory (input required)
Method Detail

isMandatory

public boolean isMandatory()
Check, if this validator is mandatory.

Specified by:
isMandatory in interface AEP_ValidationObject_Intf
Returns:
true
See Also:
E4InputField.isMandatory()

setMandatory

public void setMandatory(boolean mandatory)
Define if this validator is mandatory.

Parameters:
mandatory - true means, that a value must be entered (default)

validate

public E4Label_Intf validate(E4InputFieldName_Intf name,
                             E4Label_Intf label,
                             java.lang.String value)
Description copied from interface: AEP_ValidationObject_Intf
Validate a field during input.

Specified by:
validate in interface AEP_ValidationObject_Intf
Parameters:
name - the name of the field
label - the label of the field (translated)
value - the current value the user has entered
Returns:
null, if validation is o.k. (no errors) or an error message beeingt displayed and also indicating that the validation has failed.

Format

public java.lang.String Format(java.util.Date dat)

setFieldset

public void setFieldset(char mode,
                        E4Fieldset fieldset)
Ignored

Specified by:
setFieldset in interface AEP_ValidationObject_Intf
Parameters:
mode - one of AEP_EditingDataDescriptor_Intf.MODE_INSERT, AEP_EditingDataDescriptor_Intf.MODE_UPDATE or AEP_EditingDataDescriptor_Intf.MODE_DELETE.
fieldset - the fieldset containing all the fields in the editing screen

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com