package-summary.html
来自「API資料大全」· HTML 代码 · 共 221 行
HTML
221 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:31:38 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Package java.awt.im.spi</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../java/awt/im/package-summary.html"><B>PREV PACKAGE</B></A> <A HREF="../../../../java/awt/image/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="package-summary.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><H2>Package java.awt.im.spi</H2>Provides interfaces that enable the development of input methodsthat can be used with any Java runtime environment.<P><B>See: </B><BR> <A HREF="#package_description"><B>Description</B></A><P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Interface Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="InputMethod.html"><I>InputMethod</I></A></B></TD><TD>Defines the interface for an input method that supports complex text input.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="InputMethodContext.html"><I>InputMethodContext</I></A></B></TD><TD>Provides methods that input methods can use to communicate with their client components or to request other services.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="InputMethodDescriptor.html"><I>InputMethodDescriptor</I></A></B></TD><TD>Defines methods that provide sufficient information about an input method to enable selection and loading of that input method.</TD></TR></TABLE> <P><A NAME="package_description"><!-- --></A><H2>Package java.awt.im.spi Description</H2><P><P>Provides interfaces that enable the development of input methodsthat can be used with any Java runtime environment. Input methods aresoftware components that let the user enter text in ways other thansimple typing on a keyboard. They are commonly used to enterJapanese, Chinese, or Korean - languages using thousands of differentcharacters - on keyboards with far fewer keys. However, this packagealso allows the development of input methods for other languages andthe use of entirely different input mechanisms, such as handwritingrecognition.</P><H2><A NAME="package_specification"></A>Package Specification</H2><UL> <LI><B><A HREF="../../../../../guide/imf/spec.html">Input Method Framework Specification</A></B> <LI><B><A HREF="../../../../../guide/imf/spi-reference.html">Input Method Engine SPI Reference</A></B></UL><H4><A NAME="Packaging"></A>Packaging Input Methods</H4><P>Input methods are packaged as installed extensions, as specifiedby the <A HREF="../../../../../guide/extensions/index.html">ExtensionMechanism</A>. The main JAR file of an input method must contain thefile:</P><PRE> META-INF/services/java.awt.im.spi.InputMethodDescriptor</PRE><P>The file should contain a list of fully-qualified class names, oneper line, of classes implementing the<CODE>java.awt.im.spi.InputMethodDescriptor</CODE> interface. Spaceand tab characters surrounding each name, as well as blank lines, areignored. The comment character is <CODE>'#'</CODE>(<CODE>\u0023</CODE>); on each line all characters following thefirst comment character are ignored. The file must be encoded inUTF-8.</P><P>For example, if the fully-qualified name of the class thatimplements <CODE>java.awt.im.spi.InputMethodDesciptor</CODE> for the<EM>Foo</EM> input method is<CODE>com.sun.ime.FooInputMethodDescriptor</CODE>, the file<CODE>META-INF/services/java.awt.im.spi.InputMethodDescriptor</CODE>contains a line:</P><PRE> com.sun.ime.FooInputMethodDescriptor</PRE><P>The input method must also provide at least two classes: one classimplementing the <CODE>java.awt.im.spi.InputMethodDescriptor</CODE>interface, one class implementing the<CODE>java.awt.im.spi.InputMethod</CODE> interface. The input methodshould separate the implementations for these interfaces, so thatloading of the class implementing <CODE>InputMethod</CODE> can bedeferred until actually needed.</P><H4><A NAME="Loading"></A>Loading Input Methods</H4><P>The input method framework will usually defer loading of inputmethod classes until they are absolutely needed. It loads only the<CODE>InputMethodDescriptor</CODE> implementations during AWTinitialization. It loads an <CODE>InputMethod</CODE> implementationwhen the input method has been selected.</P><H4><A NAME="PeeredComponents"></A>Java Input Methods and Peered TextComponents</H4><P>The Java input method framework intends to support allcombinations of input methods (host input methods and Java inputmethods) and components (peered and lightweight). However, because oflimitations in the underlying platform, it may not always be possibleto enable the communication between Java input methods and peered AWTcomponents. Support for this specific combination is thereforeplatform dependent. In Sun's Java 2 runtime environments, thiscombination is supported on Windows, but not on Solaris.</P><H2>Related Documentation</H2><P>For overviews, tutorials, examples, guides, and tooldocumentation, please see:</P><UL> <LI><B><A HREF="../../../../../guide/imf/overview.html">Input Method Framework Overview</A></B> <LI><B><A HREF="../../../../../guide/imf/spi-tutorial.html">Input Method Engine SPI Tutorial</A></B></UL><P><DL><DT><B>Since: </B><DD>JDK1.3</DD></DL><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../java/awt/im/package-summary.html"><B>PREV PACKAGE</B></A> <A HREF="../../../../java/awt/image/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="package-summary.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?