Back to index

im-sdk  12.3.91
IIIMProtocol.java
Go to the documentation of this file.
00001 /*
00002 Copyright 1990-2001 Sun Microsystems, Inc. All Rights Reserved.
00003 
00004 Permission is hereby granted, free of charge, to any person obtaining a
00005 copy of this software and associated documentation files (the
00006 "Software"), to deal in the Software without restriction, including
00007 without limitation the rights to use, copy, modify, merge, publish,
00008 distribute, sublicense, and/or sell copies of the Software, and to
00009 permit persons to whom the Software is furnished to do so, subject to
00010 the following conditions: The above copyright notice and this
00011 permission notice shall be included in all copies or substantial
00012 portions of the Software.
00013 
00014 
00015 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00016 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00017 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00018 IN NO EVENT SHALL THE OPEN GROUP OR SUN MICROSYSTEMS, INC. BE LIABLE
00019 FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
00020 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
00021 THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE EVEN IF
00022 ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
00023 
00024 
00025 Except as contained in this notice, the names of The Open Group and/or
00026 Sun Microsystems, Inc. shall not be used in advertising or otherwise to
00027 promote the sale, use or other dealings in this Software without prior
00028 written authorization from The Open Group and/or Sun Microsystems,
00029 Inc., as applicable.
00030 
00031 
00032 X Window System is a trademark of The Open Group
00033 
00034 OSF/1, OSF/Motif and Motif are registered trademarks, and OSF, the OSF
00035 logo, LBX, X Window System, and Xinerama are trademarks of the Open
00036 Group. All other trademarks and registered trademarks mentioned herein
00037 are the property of their respective owners. No right, title or
00038 interest in or to any trademark, service mark, logo or trade name of
00039 Sun Microsystems, Inc. or its licensors is granted.
00040 
00041 */
00042 
00043 
00044 package sun.awt.im.iiimp;
00045 
00046 interface IIIMProtocol {
00047     // Version of this protocol spec.
00048     final static int VERSION                            = 1;
00049     
00050     // Packet size
00051     final static int FOURBYTES_PACKET                   = 0;
00052     final static int EIGHTBYTES_PACKET                  = 1;
00053 
00054     // Protocol values
00055     final static int IM_NO_PROTOCOL                     = 0;
00056     final static int IM_CONNECT                  = 1;
00057     final static int IM_CONNECT_REPLY                   = 2;
00058     final static int IM_DISCONNECT               = 3;
00059     final static int IM_DISCONNECT_REPLY         = 4;
00060     final static int IM_REGISTER_TRIGGER_KEYS           = 5;
00061     final static int IM_TRIGGER_NOTIFY           = 6;
00062     final static int IM_TRIGGER_NOTIFY_REPLY            = 7;
00063     final static int IM_SETIMVALUES                     = 8;
00064     final static int IM_SETIMVALUES_REPLY        = 9;
00065     final static int IM_GETIMVALUES                     = 10;
00066     final static int IM_GETIMVALUES_REPLY        = 11;
00067     final static int IM_FORWARD_EVENT                   = 12;
00068     final static int IM_FORWARD_EVENT_REPLY             = 13;
00069     final static int IM_COMMIT_STRING                   = 14;
00070     final static int IM_FORWARD_EVENT_WITH_OPERATIONS   = 15;
00071     final static int IM_FORWARD_EVENT_WITH_OPERATIONS_REPLY           = 16;
00072     final static int IM_CREATEIC                 = 20;
00073     final static int IM_CREATEIC_REPLY           = 21;
00074     final static int IM_DESTROYIC                = 22;
00075     final static int IM_DESTROYIC_REPLY          = 23;
00076     final static int IM_SETICVALUES                     = 24;
00077     final static int IM_SETICVALUES_REPLY        = 25;
00078     final static int IM_GETICVALUES                     = 26;
00079     final static int IM_GETICVALUES_REPLY        = 27;
00080     final static int IM_SETICFOCUS               = 28;
00081     final static int IM_SETICFOCUS_REPLY         = 29;
00082     final static int IM_UNSETICFOCUS                    = 30;
00083     final static int IM_UNSETICFOCUS_REPLY              = 31;
00084     final static int IM_RESETIC                         = 32;
00085     final static int IM_RESETIC_REPLY                   = 33;
00086     final static int IM_PREEDIT_START                   = 40;
00087     final static int IM_PREEDIT_START_REPLY             = 41;
00088     final static int IM_PREEDIT_DRAW                    = 42;
00089     final static int IM_PREEDIT_DRAW_REPLY              = 43;
00090     final static int IM_PREEDIT_DONE                    = 46;
00091     final static int IM_PREEDIT_DONE_REPLY              = 47;
00092     final static int IM_STATUS_START                    = 50;
00093     final static int IM_STATUS_START_REPLY              = 51;
00094     final static int IM_STATUS_DRAW                     = 52;
00095     final static int IM_STATUS_DRAW_REPLY        = 53;
00096     final static int IM_STATUS_DONE                     = 54;
00097     final static int IM_STATUS_DONE_REPLY        = 55;
00098     final static int IM_LOOKUP_CHOICE_START             = 70;
00099     final static int IM_LOOKUP_CHOICE_START_REPLY       = 71;
00100     final static int IM_LOOKUP_CHOICE_DRAW              = 72;
00101     final static int IM_LOOKUP_CHOICE_DRAW_REPLY = 73;
00102     final static int IM_LOOKUP_CHOICE_DONE              = 74;
00103     final static int IM_LOOKUP_CHOICE_DONE_REPLY = 75;
00104     final static int IM_LOOKUP_CHOICE_PROCESS           = 76;
00105     final static int IM_LOOKUP_CHOICE_PROCESS_REPLY     = 77;
00106     final static int IM_AUX_START                = 90;
00107     final static int IM_AUX_START_REPLY          = 91;
00108     final static int IM_AUX_DRAW                 = 92;
00109     final static int IM_AUX_DRAW_REPLY           = 93;
00110     final static int IM_AUX_DONE                 = 94;
00111     final static int IM_AUX_DONE_REPLY           = 95;
00112     final static int IM_AUX_SETVALUES                   = 96;
00113     final static int IM_AUX_SETVALUES_REPLY             = 97;
00114 
00115     // Encoding values
00116     final static int BIGENDIAN                          = 0x42;
00117     final static int LITTLEENDIAN                = 0x6c;
00118 
00119     final static int LOOKUP_MAX_NUMBER                  = 1;
00120     final static int LOOKUP_STYLE                = 2;
00121     final static int QUERY_LOOKUP_STYLE          = 3;
00122     final static int INPUT_LANGUAGE                     = 4;
00123     final static int PRIMARY_LANGUAGE                   = 5;
00124 
00125     // CONTENTS type
00126     final static int STRING                      = 0;
00127     final static int TEXT                        = 1;
00128     final static int KEYEVENT                           = 2;
00129 
00130     // ATTRIBID
00131     final static int INPUTMETHOD_LIST                   = 0x1001;
00132     final static int OBJECT_DESCRIPTER_LIST             = 0x1010;
00133     final static int CLIENT_DESCRIPTER                  = 0x1011;
00134     final static int CCDEF                       = 0x1030;
00135     final static int GUI_OBJECT                         = 0x1031;
00136     final static int LWE_OBJECT                         = 0x1032;
00137 
00138     // IC ATTRIBID
00139     final static int IC_INPUT_LANGUAGE                  = 1;
00140     final static int IC_CHARACTER_SUBSETS        = 2;
00141     final static int IC_INPUT_METHOD                    = 3;
00142 
00143     // Object Category
00144     final static int NOID                        = -1;
00145     final static int GUI_CATEGORY                = 0;
00146     final static int LWE_CATEGORY                = 1;
00147     final static int SYNTAX_RULE_CATEGORY        = 2;
00148     final static int MANAGE_RULE_CATEGORY        = 3;
00149 
00150     // Feedback ID
00151     final static int DECORATION_FEEDBACK         = 0;
00152     final static int FOREGROUND_RGB_FEEDBACK            = 1;
00153     final static int BACKGROUND_RGB_FEEDBACK            = 2;
00154     final static int UNDERLINE_RGB_FEEDBACK             = 3;
00155 
00156     // Annotation ID
00157     final static int INPUT_STRING                = 0;
00158     final static int READING                            = 1;
00159     final static int PART_OF_SPEECH                     = 2;
00160     final static int CLAUSE                      = 3;
00161 }
00162