JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.field.validate
Class JCTimeValidator

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.JCTimeValidator
All Implemented Interfaces:
JCValidator, Serializable

public class JCTimeValidator
extends JCDateTimeValidator

The JCTimeValidator is used to validate time objects.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.klg.jclass.field.validate.JCDateTimeValidator
JCDateTimeValidator.DateChooser, JCDateTimeValidator.DateTimeChooser, JCDateTimeValidator.DateTimePopup, JCDateTimeValidator.TimeSpin, JCDateTimeValidator.WorkingCalendar
 
Field Summary
 
Fields inherited from class com.klg.jclass.field.validate.JCDateTimeValidator
cal, compiled_edit_formats, compiled_format, date_format, default_detail, default_format, 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, 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_SUBFIELD, SPIN_WRAP, UPPERCASE, valid_chars
 
Fields inherited from interface com.klg.jclass.field.validate.JCValidator
DOWN, UP
 
Constructor Summary
JCTimeValidator()
          Constructs a JCTimeValidator.
JCTimeValidator(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 JCTimeValidator with the values specified.
 
Method Summary
 String[] getDefaultEditFormats(Locale l)
          Gets the default EditFormats for the validator.
 String getDefaultFormat(Locale l)
          Returns the default format according to the current defaultDetail.
 
Methods inherited from class com.klg.jclass.field.validate.JCDateTimeValidator
addEditFormat, addIncrement, convertFromSupported, convertToSupported, copyValue, createPopupComponent, 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, getLastValidInputCharPosition, 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

JCTimeValidator

public JCTimeValidator()
Constructs a JCTimeValidator.


JCTimeValidator

public JCTimeValidator(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 JCTimeValidator with the values specified.

Parameters:
default_detail -
allow_null -
default_value -
edit_formats -
format -
locale -
mask_input -
place_holder_chars -
Method Detail

getDefaultEditFormats

public String[] getDefaultEditFormats(Locale l)
Gets the default EditFormats for the validator.

Overrides:
getDefaultEditFormats in class JCDateTimeValidator
Parameters:
l -
Returns:

getDefaultFormat

public String getDefaultFormat(Locale l)
Returns the default format according to the current defaultDetail.

Overrides:
getDefaultFormat in class JCDateTimeValidator
Parameters:
l -
Returns:
See Also:
JCDateTimeValidator.setDefaultDetail(int)

Copyright © 2004 Quest Software Inc..
All rights reserved.