BrowserConstants.java :  » Development » ivatamasks » com » ivata » mask » web » browser » Java Open Source

Java Open Source » Development » ivatamasks 
ivatamasks » com » ivata » mask » web » browser » BrowserConstants.java
/*
 * Copyright (c) 2001 - 2005 ivata limited.
 * All rights reserved.
 * -----------------------------------------------------------------------------
 * ivata masks may be redistributed under the GNU General Public
 * License as published by the Free Software Foundation;
 * version 2 of the License.
 *
 * These programs are free software; you can redistribute them and/or
 * modify them under the terms of the GNU General Public License
 * as published by the Free Software Foundation; version 2 of the License.
 *
 * These programs are distributed in the hope that they will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * See the GNU General Public License in the file LICENSE.txt for more
 * details.
 *
 * If you would like a copy of the GNU General Public License write to
 *
 * Free Software Foundation, Inc.
 * 59 Temple Place - Suite 330
 * Boston, MA 02111-1307, USA.
 *
 *
 * To arrange commercial support and licensing, contact ivata at
 *                  http://www.ivata.com/contact.jsp
 * -----------------------------------------------------------------------------
 * $Log: BrowserConstants.java,v $
 * Revision 1.2  2005/04/09 18:04:17  colinmacleod
 * Changed copyright text to GPL v2 explicitly.
 *
 * Revision 1.1  2005/01/06 23:00:12  colinmacleod
 * Moved up a version number.
 * Changed copyright notices to 2005.
 * Updated the documentation:
 *   - started working on multiproject:site docu.
 *   - changed the logo.
 * Added checkstyle and fixed LOADS of style issues.
 * Added separate thirdparty subproject.
 * Added struts (in web), util and webgui (in webtheme) from ivata op.
 *
 * Revision 1.3  2004/03/21 21:16:35  colinmacleod
 * Shortened name to ivata op.
 *
 * Revision 1.2  2004/02/01 22:07:31  colinmacleod
 * Added full names to author tags
 *
 * Revision 1.1.1.1  2004/01/27 20:59:38  colinmacleod
 * Moved ivata op to SourceForge.
 *
 * Revision 1.2  2003/10/16 15:43:03  jano
 * Fixes problems with building and some problems with splitting to subprojects
 *
 * Revision 1.1.1.1  2003/10/13 20:49:28  colin
 * Restructured portal into subprojects
 *
 * Revision 1.1  2003/02/24 19:33:32  colin
 * Moved to new subproject.
 *
 * Revision 1.1  2002/09/16 13:52:48  colin
 * Added browser class with checking for browser type, (i)frames support and
 * JavaScript.
 * -----------------------------------------------------------------------------
 */
package com.ivata.mask.web.browser;
/**
 * <p>
 * Just what the name says: this class contains constants used by
 * {@link Browser}.
 * </p>
 *
 * @since ivata masks 0.4 (2002-09-12)
 * @author Colin MacLeod
 * <a href='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
 * @version $Revision: 1.2 $
 */
public class BrowserConstants {
    /**
     * <p>
     * Identifies any unrecognized web browser.
     * </p>
     */
    public static final Integer TYPE_UNKNOWN;
    /**
     * <p>
     * Identifies Microsoft Internet Explorer web browser.
     * </p>
     */
    public static final Integer TYPE_INTERNET_EXPLORER;
    /**
     * <p>
     * Identifies Netscape (not Mozilla) web browsers.
     * </p>
     */
    public static final Integer TYPE_NETSCAPE;
    /**
     * <p>
     * Identifies Mozilla (post Netscape code-release) web browsers.
     * </p>
     */
    public static final Integer TYPE_MOZILLA;
    /**
     * <p>
     * Identifies Opera web browser.
     * </p>
     */
    public static final Integer TYPE_OPERA;
    /**
     * <p>
     * Identifies Lynx text web browser.
     * </p>
     */
    public static final Integer TYPE_LYNX;
    /**
     * <p>
     * Identifies KDE Konqueror web browser.
     * </p>
     */
    public static final Integer TYPE_KONQUEROR;
    /**
     * <p>
     * Identifies KDE Konqueror web browser.
     * </p>
     */
    public static final Integer TYPE_GALEON;
    /**
     * <p>
     * Identifies any cyborg, robot, spider or otherwise synthetic browser.
     * </p>
     */
    public static final Integer TYPE_ROBOT;
    // initialize the constants - TODO: JDK 1.5 replace with an enum
    static {
        int counter = 0;
        TYPE_UNKNOWN = new Integer(counter++);
        TYPE_INTERNET_EXPLORER = new Integer(counter++);
        TYPE_NETSCAPE = new Integer(counter++);
        TYPE_MOZILLA = new Integer(counter++);
        TYPE_OPERA = new Integer(counter++);
        TYPE_LYNX = new Integer(counter++);
        TYPE_KONQUEROR = new Integer(counter++);
        TYPE_GALEON = new Integer(counter++);
        TYPE_ROBOT = new Integer(counter++);
   }
}

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.