inputmethodcontext.html
来自「API資料大全」· HTML 代码 · 共 274 行
HTML
274 行
<!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:33:55 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Interface InputMethodContext</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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/InputMethodContext.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/spi/InputMethod.html"><B>PREV CLASS</B></A> <A HREF="../../../../java/awt/im/spi/InputMethodDescriptor.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="InputMethodContext.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">java.awt.im.spi</FONT><BR>Interface InputMethodContext</H2><DL><DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../java/awt/im/InputMethodRequests.html">InputMethodRequests</A></DD></DL><HR><DL><DT>public interface <B>InputMethodContext</B><DT>extends <A HREF="../../../../java/awt/im/InputMethodRequests.html">InputMethodRequests</A></DL><P>Provides methods that input methods can use to communicate with their client components or to request other services.<P><DL><DT><B>Since: </B><DD>1.3</DD></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/Window.html">Window</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../java/awt/im/spi/InputMethodContext.html#createInputMethodWindow(java.lang.String, boolean)">createInputMethodWindow</A></B>(<A HREF="../../../../java/lang/String.html">String</A> title, boolean attachToInputContext)</CODE><BR> Creates a top-level window for use by the input method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../java/awt/im/spi/InputMethodContext.html#dispatchInputMethodEvent(int, java.text.AttributedCharacterIterator, int, java.awt.font.TextHitInfo, java.awt.font.TextHitInfo)">dispatchInputMethodEvent</A></B>(int id, <A HREF="../../../../java/text/AttributedCharacterIterator.html">AttributedCharacterIterator</A> text, int committedCharacterCount, <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> caret, <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> visiblePosition)</CODE><BR> Creates an input method event from the arguments given and dispatches it to the client component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../java/awt/im/spi/InputMethodContext.html#enableClientWindowNotification(java.awt.im.spi.InputMethod, boolean)">enableClientWindowNotification</A></B>(<A HREF="../../../../java/awt/im/spi/InputMethod.html">InputMethod</A> inputMethod, boolean enable)</CODE><BR> Enables or disables notification of the current client window's location and state for the specified input method.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.awt.im.InputMethodRequests"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.awt.im.<A HREF="../../../../java/awt/im/InputMethodRequests.html">InputMethodRequests</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../java/awt/im/InputMethodRequests.html#cancelLatestCommittedText(java.text.AttributedCharacterIterator.Attribute[])">cancelLatestCommittedText</A>, <A HREF="../../../../java/awt/im/InputMethodRequests.html#getCommittedText(int, int, java.text.AttributedCharacterIterator.Attribute[])">getCommittedText</A>, <A HREF="../../../../java/awt/im/InputMethodRequests.html#getCommittedTextLength()">getCommittedTextLength</A>, <A HREF="../../../../java/awt/im/InputMethodRequests.html#getInsertPositionOffset()">getInsertPositionOffset</A>, <A HREF="../../../../java/awt/im/InputMethodRequests.html#getLocationOffset(int, int)">getLocationOffset</A>, <A HREF="../../../../java/awt/im/InputMethodRequests.html#getSelectedText(java.text.AttributedCharacterIterator.Attribute[])">getSelectedText</A>, <A HREF="../../../../java/awt/im/InputMethodRequests.html#getTextLocation(java.awt.font.TextHitInfo)">getTextLocation</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="dispatchInputMethodEvent(int, java.text.AttributedCharacterIterator, int, java.awt.font.TextHitInfo, java.awt.font.TextHitInfo)"><!-- --></A><H3>dispatchInputMethodEvent</H3><PRE>public void <B>dispatchInputMethodEvent</B>(int id, <A HREF="../../../../java/text/AttributedCharacterIterator.html">AttributedCharacterIterator</A> text, int committedCharacterCount, <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> caret, <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> visiblePosition)</PRE><DL><DD>Creates an input method event from the arguments given and dispatches it to the client component. For arguments, see <A HREF="../../../../java/awt/event/InputMethodEvent.html#InputMethodEvent(java.awt.Component, int, java.text.AttributedCharacterIterator, int, java.awt.font.TextHitInfo, java.awt.font.TextHitInfo)"><CODE>InputMethodEvent.InputMethodEvent(java.awt.Component, int, java.text.AttributedCharacterIterator, int, java.awt.font.TextHitInfo, java.awt.font.TextHitInfo)</CODE></A>.<DD><DL></DL></DD></DL><HR><A NAME="createInputMethodWindow(java.lang.String, boolean)"><!-- --></A><H3>createInputMethodWindow</H3><PRE>public <A HREF="../../../../java/awt/Window.html">Window</A> <B>createInputMethodWindow</B>(<A HREF="../../../../java/lang/String.html">String</A> title, boolean attachToInputContext)</PRE><DL><DD>Creates a top-level window for use by the input method. The intended behavior of this window is: <ul> <li>it floats above all document windows and dialogs <li>it and all components that it contains do not receive the focus <li>it has lightweight decorations, such as a reduced drag region without title </ul> However, the actual behavior with respect to these three items is platform dependent. <p> The title may or may not be displayed, depending on the actual type of window created. <p> If attachToInputContext is true, the new window will share the input context that corresponds to this input method context, so that events for components in the window are automatically dispatched to the input method. Also, when the window is opened using setVisible(true), the input context will prevent deactivate and activate calls to the input method that might otherwise be caused. <p><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - the title to be displayed in the window's title bar, if there is such a title bar. A <code>null</code> value is treated as an empty string, "".<DD><CODE>attachToInputContext</CODE> - whether this window should share the input context that corresponds to this input method context<DT><B>Returns:</B><DD>a window with special characteristics for use by input methods</DL></DD></DL><HR><A NAME="enableClientWindowNotification(java.awt.im.spi.InputMethod, boolean)"><!-- --></A><H3>enableClientWindowNotification</H3><PRE>public void <B>enableClientWindowNotification</B>(<A HREF="../../../../java/awt/im/spi/InputMethod.html">InputMethod</A> inputMethod, boolean enable)</PRE><DL><DD>Enables or disables notification of the current client window's location and state for the specified input method. When notification is enabled, the input method's <A HREF="../../../../java/awt/im/spi/InputMethod.html#notifyClientWindowChange(java.awt.Rectangle)"><CODE>notifyClientWindowChange</CODE></A> method is called as described in that method's specification. Notification is automatically disabled when the input method is disposed.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>inputMethod</CODE> - the input method for which notifications are enabled or disabled<DD><CODE>enable</CODE> - true to enable, false to disable</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/InputMethodContext.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/spi/InputMethod.html"><B>PREV CLASS</B></A> <A HREF="../../../../java/awt/im/spi/InputMethodDescriptor.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="InputMethodContext.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</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 + -
显示快捷键?