home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
DateMaskedFieldConstants.java
< prev
next >
Wrap
Text File
|
1998-12-09
|
3KB
|
68 lines
/*
* @(#DateMaskedFieldConstants.java
*
* Copyright (c) 1998 Symantec Corporation. All Rights Reserved.
*
*/
package com.symantec.itools.swing;
import java.util.ResourceBundle;
/**
* DateMaskedFieldConstants is an useful interface which all the date masked
* components could implement to access the common constants or directly access
* them.
*
* @author Vasudev J. Rao
* @version 1.0
* @see com.symantec.itools.swing.JDateMaskedField
*/
public interface DateMaskedFieldConstants
{
/** A constant which is equal to java.sql.Types.DATE. */
public static final int DATE_TYPE = java.sql.Types.DATE ;
/** A constant which is equal to java.sql.Types.TIME. */
public static final int TIME_TYPE = java.sql.Types.TIME ;
/** A constant which is equal to java.sql.Types.TIMESTAMP. */
public static final int TIMESTAMP_TYPE = java.sql.Types.TIMESTAMP ;
/** A useful constant which is the number of types supported. */
public static final int NUMBER_OF_TYPES = 3;
/**
* A useful constant which is the number of formatting
* styles currently supported.
*/
public static final int NUMBER_OF_STYLES = 5;
/** A useful constant for custom property editors. */
public static final String DATE_TYPE_STRING = "DATE_TYPE" ;
/** A useful constant for custom property editors. */
public static final String TIME_TYPE_STRING = "TIME_TYPE" ;
/** A useful constant for custom property editors. */
public static final String TIMESTAMP_TYPE_STRING = "TIMESTAMP_TYPE" ;
/** A useful constant for custom property editors. */
public static final String DEFAULT_STYLE_STRING = "DEFAULT" ;
/** A useful constant for custom property editors. */
public static final String FULL_STYLE_STRING = "FULL" ;
/** A useful constant for custom property editors. */
public static final String LONG_STYLE_STRING = "LONG" ;
/** A useful constant for custom property editors. */
public static final String MEDIUM_STYLE_STRING = "MEDIUM" ;
/** A useful constant for custom property editors. */
public static final String SHORT_STYLE_STRING = "SHORT" ;
public static DateMaskResourceLoader resourceLoader = DateMaskResourceLoader.getInstance();
public static ResourceBundle MyResource = resourceLoader.getBundle();
/** A useful constant for constructing illegal arguments exception. */
public static String INVALID_TYPE = MyResource.getString( "DATEMASK_INVALID_TYPE" ); //"invalid type";
/** A useful constant for constructing illegal arguments exception. */
public static String INVALID_STYLE = MyResource.getString( "DATEMASK_INVALID_STYLE" );//"invalid formatting style";
/** A useful constant for constructing illegal arguments exception. */
public static String INVALID_DATE = MyResource.getString( "DATEMASK_INVALID_DATE" );//"invalid date";
}