001: /*
002: * Copyright (c) 2001 - 2005 ivata limited.
003: * All rights reserved.
004: * -----------------------------------------------------------------------------
005: * ivata masks may be redistributed under the GNU General Public
006: * License as published by the Free Software Foundation;
007: * version 2 of the License.
008: *
009: * These programs are free software; you can redistribute them and/or
010: * modify them under the terms of the GNU General Public License
011: * as published by the Free Software Foundation; version 2 of the License.
012: *
013: * These programs are distributed in the hope that they will be useful,
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
016: *
017: * See the GNU General Public License in the file LICENSE.txt for more
018: * details.
019: *
020: * If you would like a copy of the GNU General Public License write to
021: *
022: * Free Software Foundation, Inc.
023: * 59 Temple Place - Suite 330
024: * Boston, MA 02111-1307, USA.
025: *
026: *
027: * To arrange commercial support and licensing, contact ivata at
028: * http://www.ivata.com/contact.jsp
029: * -----------------------------------------------------------------------------
030: * $Log: BrowserConstants.java,v $
031: * Revision 1.2 2005/04/09 18:04:17 colinmacleod
032: * Changed copyright text to GPL v2 explicitly.
033: *
034: * Revision 1.1 2005/01/06 23:00:12 colinmacleod
035: * Moved up a version number.
036: * Changed copyright notices to 2005.
037: * Updated the documentation:
038: * - started working on multiproject:site docu.
039: * - changed the logo.
040: * Added checkstyle and fixed LOADS of style issues.
041: * Added separate thirdparty subproject.
042: * Added struts (in web), util and webgui (in webtheme) from ivata op.
043: *
044: * Revision 1.3 2004/03/21 21:16:35 colinmacleod
045: * Shortened name to ivata op.
046: *
047: * Revision 1.2 2004/02/01 22:07:31 colinmacleod
048: * Added full names to author tags
049: *
050: * Revision 1.1.1.1 2004/01/27 20:59:38 colinmacleod
051: * Moved ivata op to SourceForge.
052: *
053: * Revision 1.2 2003/10/16 15:43:03 jano
054: * Fixes problems with building and some problems with splitting to subprojects
055: *
056: * Revision 1.1.1.1 2003/10/13 20:49:28 colin
057: * Restructured portal into subprojects
058: *
059: * Revision 1.1 2003/02/24 19:33:32 colin
060: * Moved to new subproject.
061: *
062: * Revision 1.1 2002/09/16 13:52:48 colin
063: * Added browser class with checking for browser type, (i)frames support and
064: * JavaScript.
065: * -----------------------------------------------------------------------------
066: */
067: package com.ivata.mask.web.browser;
068:
069: /**
070: * <p>
071: * Just what the name says: this class contains constants used by
072: * {@link Browser}.
073: * </p>
074: *
075: * @since ivata masks 0.4 (2002-09-12)
076: * @author Colin MacLeod
077: * <a href='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
078: * @version $Revision: 1.2 $
079: */
080: public class BrowserConstants {
081: /**
082: * <p>
083: * Identifies any unrecognized web browser.
084: * </p>
085: */
086: public static final Integer TYPE_UNKNOWN;
087: /**
088: * <p>
089: * Identifies Microsoft Internet Explorer web browser.
090: * </p>
091: */
092: public static final Integer TYPE_INTERNET_EXPLORER;
093: /**
094: * <p>
095: * Identifies Netscape (not Mozilla) web browsers.
096: * </p>
097: */
098: public static final Integer TYPE_NETSCAPE;
099: /**
100: * <p>
101: * Identifies Mozilla (post Netscape code-release) web browsers.
102: * </p>
103: */
104: public static final Integer TYPE_MOZILLA;
105: /**
106: * <p>
107: * Identifies Opera web browser.
108: * </p>
109: */
110: public static final Integer TYPE_OPERA;
111: /**
112: * <p>
113: * Identifies Lynx text web browser.
114: * </p>
115: */
116: public static final Integer TYPE_LYNX;
117: /**
118: * <p>
119: * Identifies KDE Konqueror web browser.
120: * </p>
121: */
122: public static final Integer TYPE_KONQUEROR;
123: /**
124: * <p>
125: * Identifies KDE Konqueror web browser.
126: * </p>
127: */
128: public static final Integer TYPE_GALEON;
129: /**
130: * <p>
131: * Identifies any cyborg, robot, spider or otherwise synthetic browser.
132: * </p>
133: */
134: public static final Integer TYPE_ROBOT;
135: // initialize the constants - TODO: JDK 1.5 replace with an enum
136: static {
137: int counter = 0;
138: TYPE_UNKNOWN = new Integer(counter++);
139: TYPE_INTERNET_EXPLORER = new Integer(counter++);
140: TYPE_NETSCAPE = new Integer(counter++);
141: TYPE_MOZILLA = new Integer(counter++);
142: TYPE_OPERA = new Integer(counter++);
143: TYPE_LYNX = new Integer(counter++);
144: TYPE_KONQUEROR = new Integer(counter++);
145: TYPE_GALEON = new Integer(counter++);
146: TYPE_ROBOT = new Integer(counter++);
147: }
148: }
|