1 /* 2 * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package com.sun.java.accessibility.util; 27 28 /** 29 * EventID contains integer constants that map to event support in 30 * AWT and Swing. They are used by primarily by AWTEventMonitor, 31 * AWTEventsListener, SwingEventMonitor, and SwingEventListener, but 32 * can be freely used by any other class. 33 * 34 * @see AWTEventMonitor 35 * @see SwingEventMonitor 36 * 37 */ 38 public class EventID { 39 40 /** 41 * Maps to AWT Action support (i.e., ActionListener and ActionEvent) 42 */ 43 static public final int ACTION = 0; 44 45 /** 46 * Maps to AWT Adjustment support (i.e., AdjustmentListener 47 * and AdjustmentEvent) 48 */ 49 static public final int ADJUSTMENT = 1; 50 51 /** 52 * Maps to AWT Component support (i.e., ComponentListener 53 * and ComponentEvent) 54 */ 55 static public final int COMPONENT = 2; 56 57 /** 58 * Maps to AWT Container support (i.e., ContainerListener 59 * and ContainerEvent) 60 */ 61 static public final int CONTAINER = 3; 62 63 /** 64 * Maps to AWT Focus support (i.e., FocusListener and FocusEvent) 65 */ 66 static public final int FOCUS = 4; 67 68 /** 69 * Maps to AWT Item support (i.e., ItemListener and ItemEvent) 70 */ 71 static public final int ITEM = 5; 72 73 /** 74 * Maps to AWT Key support (i.e., KeyListener and KeyEvent) 75 */ 76 static public final int KEY = 6; 77 78 /** 79 * Maps to AWT Mouse support (i.e., MouseListener and MouseEvent) 80 */ 81 static public final int MOUSE = 7; 82 83 /** 84 * Maps to AWT MouseMotion support (i.e., MouseMotionListener 85 * and MouseMotionEvent) 86 */ 87 static public final int MOTION = 8; 88 89 /** 90 * Maps to AWT Text support (i.e., TextListener and TextEvent) 91 */ 92 static public final int TEXT = 10; 93 94 /** 95 * Maps to AWT Window support (i.e., WindowListener and WindowEvent) 96 */ 97 static public final int WINDOW = 11; 98 99 /** 100 * Maps to Swing Ancestor support (i.e., AncestorListener and 101 * AncestorEvent) 102 */ 103 static public final int ANCESTOR = 12; 104 105 /** 106 * Maps to Swing Text Caret support (i.e., CaretListener and 107 * CaretEvent) 108 */ 109 static public final int CARET = 13; 110 111 /** 112 * Maps to Swing CellEditor support (i.e., CellEditorListener and 113 * CellEditorEvent) 114 */ 115 static public final int CELLEDITOR = 14; 116 117 /** 118 * Maps to Swing Change support (i.e., ChangeListener and 119 * ChangeEvent) 120 */ 121 static public final int CHANGE = 15; 122 123 /** 124 * Maps to Swing TableColumnModel support (i.e., 125 * TableColumnModelListener and TableColumnModelEvent) 126 */ 127 static public final int COLUMNMODEL = 16; 128 129 /** 130 * Maps to Swing Document support (i.e., DocumentListener and 131 * DocumentEvent) 132 */ 133 static public final int DOCUMENT = 17; 134 135 /** 136 * Maps to Swing ListData support (i.e., ListDataListener and 137 * ListDataEvent) 138 */ 139 static public final int LISTDATA = 18; 140 141 /** 142 * Maps to Swing ListSelection support (i.e., ListSelectionListener and 143 * ListSelectionEvent) 144 */ 145 static public final int LISTSELECTION = 19; 146 147 /** 148 * Maps to Swing Menu support (i.e., MenuListener and 149 * MenuEvent) 150 */ 151 static public final int MENU = 20; 152 153 /** 154 * Maps to Swing PopupMenu support (i.e., PopupMenuListener and 155 * PopupMenuEvent) 156 */ 157 static public final int POPUPMENU = 21; 158 159 /** 160 * Maps to Swing TableModel support (i.e., TableModelListener and 161 * TableModelEvent) 162 */ 163 static public final int TABLEMODEL = 22; 164 165 /** 166 * Maps to Swing TreeExpansion support (i.e., TreeExpansionListener and 167 * TreeExpansionEvent) 168 */ 169 static public final int TREEEXPANSION = 23; 170 171 /** 172 * Maps to Swing TreeModel support (i.e., TreeModelListener and 173 * TreeModelEvent) 174 */ 175 static public final int TREEMODEL = 24; 176 177 /** 178 * Maps to Swing TreeSelection support (i.e., TreeSelectionListener and 179 * TreeSelectionEvent) 180 */ 181 static public final int TREESELECTION = 25; 182 183 /** 184 * Maps to Swing UndoableEdit support (i.e., UndoableEditListener and 185 * UndoableEditEvent) 186 */ 187 static public final int UNDOABLEEDIT = 26; 188 189 /** 190 * Maps to Beans PropertyChange support (i.e., PropertyChangeListener 191 * and PropertyChangeEvent) 192 */ 193 static public final int PROPERTYCHANGE = 27; 194 195 /** 196 * Maps to Beans VetoableChange support (i.e., VetoableChangeListener 197 * and VetoableChangeEvent) 198 */ 199 static public final int VETOABLECHANGE = 28; 200 201 /** 202 * Maps to Swing InternalFrame support (i.e., InternalFrameListener) 203 */ 204 static public final int INTERNALFRAME = 29; 205 } 206