JClass 4.5.0 API
Documentation

com.klg.jclass.field.validate
Class JCDateValidator

java.lang.Object
  |
  +--com.klg.jclass.field.validate.AbstractValidator
        |
        +--com.klg.jclass.field.validate.JCStringValidator
              |
              +--com.klg.jclass.field.validate.JCDateTimeValidator
                    |
                    +--com.klg.jclass.field.validate.JCDateValidator

public class JCDateValidator
extends JCDateTimeValidator

The JCDateValidator is used to validate date objects.

See Also:
Serialized Form

Inner classes inherited from class com.klg.jclass.field.validate.JCDateTimeValidator
JCDateTimeValidator.DateTimeChooser
 
Fields inherited from class com.klg.jclass.field.validate.JCDateTimeValidator
cal, compiled_edit_formats, compiled_format, date_format, default_detail, defaultValue, edit_formats, FULL, increment_field, LONG, mask_input, MEDIUM, millenium_threshold, original_format, SHORT, spin_policy, supportedClasses, symbols, tz
 
Fields inherited from class com.klg.jclass.field.validate.JCStringValidator
compiled_mask_ch, compiled_mask_sym, defaultValue, mask, mask_chars, mask_length, num_editable_pos, num_mask_match, place_holder_chars
 
Fields inherited from class com.klg.jclass.field.validate.AbstractValidator
abstractInitializing, allow_null, AS_IS, case_policy, increment, invalid_chars, li, locale, LOWERCASE, match_picklist, max, min, NOT_FOUND, picklist, SPIN_FIELD, spin_policy, SPIN_SUBFIELD, SPIN_WRAP, supportedClasses, UPPERCASE, valid_chars
 
Constructor Summary
JCDateValidator()
          Constructs a JCDateValidator.
JCDateValidator(Locale locale, String format, String place_holder_chars, String[] edit_formats, boolean mask_input, int default_detail, boolean allow_null, Object default_value)
          Constructs a JCDateValidator with the values specified.
 
Method Summary
 PopupFieldEditor createPopupComponent()
          Returns the popup component for this validator.
 String[] getDefaultEditFormats(Locale l)
          Gets the default EditFormats for the validator.
 String getDefaultFormat(Locale l)
          Returns the default format according to the current value of defaultDetail.
 
Methods inherited from class com.klg.jclass.field.validate.JCDateTimeValidator
addEditFormat, addIncrement, convertFromSupported, convertToSupported, copyValue, dayOfMonthOfYear, dayOfWeek, dayOfYear, daysInMonth, daysInYear, format, getDefaultDetail, getDefaultEditFormats, getDefaultFormat, getDefaultValue, getEditFormats, getFormat, getIncrement, getIncrementField, getMaskInput, getMilleniumThreshold, getSupportedClasses, getTimeZone, inferSubField, inRange, internal_validate, isLeap, monthOfYear, parse, setDefaultDetail, setDefaultValue, setEditFormats, setFormat, setIncrement, setIncrementField, setLocale, setMaskInput, setMilleniumThreshold, setTimeZone, subtractIncrement, validate, weekOfMonth, weekOfYear
 
Methods inherited from class com.klg.jclass.field.validate.JCStringValidator
changeText, compileMask, formatForEdit, getFirstValidCursorPosition, getMask, getMaskChars, getNextCursorPosition, getNumMaskMatch, getParsedMask, getPlaceHolderChars, hasEditFormat, internalValidate, isValidChar, setCursor, setMask, setMaskChars, setNumMaskMatch, setPlaceHolderChars
 
Methods inherited from class com.klg.jclass.field.validate.AbstractValidator
calculateSpinability, checkValidInvalid, compareValues, convertCase, getAllowNull, getCasePolicy, getInvalidChars, getItem, getLocale, getMatchPickList, getMax, getMin, getNextValue, getPickList, getPickListIndex, getPreviousValue, getSpinPolicy, getValidChars, isClassSupported, isValidChar, setAllowNull, setCasePolicy, setInvalidChars, setMatchPickList, setMax, setMin, setPickList, setRange, setSpinPolicy, setValidChars, spinDown, spinUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCDateValidator

public JCDateValidator()
Constructs a JCDateValidator.

JCDateValidator

public JCDateValidator(Locale locale,
                       String format,
                       String place_holder_chars,
                       String[] edit_formats,
                       boolean mask_input,
                       int default_detail,
                       boolean allow_null,
                       Object default_value)
Constructs a JCDateValidator with the values specified.
Method Detail

getDefaultEditFormats

public String[] getDefaultEditFormats(Locale l)
Gets the default EditFormats for the validator.
Overrides:
getDefaultEditFormats in class JCDateTimeValidator

getDefaultFormat

public String getDefaultFormat(Locale l)
Returns the default format according to the current value of defaultDetail.
Overrides:
getDefaultFormat in class JCDateTimeValidator
See Also:
JCDateTimeValidator.setDefaultDetail(int)

createPopupComponent

public PopupFieldEditor createPopupComponent()
Returns the popup component for this validator.
Overrides:
createPopupComponent in class JCDateTimeValidator

Copyright© 1999-2000 KL Group Inc.
All rights reserved.