001/* ----------------------------------------------------------------------------
002   The Kiwi Toolkit - A Java Class Library
003   Copyright (C) 1998-2004 Mark A. Lindner
004
005   This library is free software; you can redistribute it and/or
006   modify it under the terms of the GNU General Public License as
007   published by the Free Software Foundation; either version 2 of the
008   License, or (at your option) any later version.
009
010   This library is distributed in the hope that it will be useful,
011   but WITHOUT ANY WARRANTY; without even the implied warranty of
012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013   General Public License for more details.
014
015   You should have received a copy of the GNU General Public License
016   along with this library; if not, write to the Free Software
017   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
018   02111-1307, USA.
019 
020   The author may be contacted at: mark_a_lindner@yahoo.com
021   ----------------------------------------------------------------------------
022   $Log: FormatConstants.java,v $
023   Revision 1.4  2004/05/05 22:47:37  markl
024   comment block updates
025
026   Revision 1.3  2003/01/19 09:34:27  markl
027   Javadoc & comment header updates.
028
029   Revision 1.2  2001/03/12 02:18:28  markl
030   Source code cleanup.
031
032   Revision 1.1  1999/06/28 08:20:07  markl
033   Initial revision
034   ----------------------------------------------------------------------------
035*/
036
037package kiwi.text;
038
039/** This interface defines common formatting constants.
040 *
041 * @author Mark Lindner
042 */
043
044public interface FormatConstants
045  {
046  /** Currency format. */
047  public static final int CURRENCY_FORMAT = 0x10;
048  /** Percentage format. */
049  public static final int PERCENTAGE_FORMAT = 0x20;
050  /** Integer format. */
051  public static final int INTEGER_FORMAT = 0x30;
052  /** Decimal format. */
053  public static final int DECIMAL_FORMAT = 0x40;
054  /** Date and time format. */
055  public static final int DATE_TIME_FORMAT = 0x50;
056  /** Date format. */
057  public static final int DATE_FORMAT = 0x60;
058  /** Time format. */
059  public static final int TIME_FORMAT = 0x70;
060
061  /** Format type mask. */
062  public static final int TYPE_MASK = 0xF0;
063  
064  /** Short (abbreviated) format. */
065  public static final int SHORT = 0x00;
066  /** Medium (common) format. */
067  public static final int MEDIUM = 0x01;
068  /** Long (extended) format. */
069  public static final int LONG = 0x02;
070
071  /** Format length mask. */
072  public static final int LENGTH_MASK = 0x0F;
073  }
074
075/* end of source file */