| Modifier and Type | Field and Description |
|---|---|
| private static boolean | |
| private CompositionAreaHandler | |
| private Object | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AttributedCharacterIterator | cancelLatestCommittedText(AttributedCharacterIterator.
Implements java. Calls the current client component's implementation of cancelLatestCommittedText. |
| public JFrame | createInputMethodJFrame(String title, boolean attachToInputContext)
Implements java. Creates a top-level Swing JFrame for use by the input method. |
| public Window | createInputMethodWindow(String title, boolean attachToInputContext)
Implements java. Creates a top-level window for use by the input method. |
| pack-priv static Window | |
| pack-priv synchronized void | dispatchCommittedText(Component
The component that the text should get dispatched to. client, AttributedCharacterIterator The iterator providing access to the committed
(and possible composed) text. text, int The number of committed characters in the text. committedCharacterCount)Dispatches committed text to a client component. |
| public void | dispatchEvent(AWTEvent event)
Overrides sun. Dispatches an event to the active input method. |
| public void | dispatchInputMethodEvent(int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition)
Implements java. Creates an input method event from the arguments given and dispatches it to the client component. |
| public void | enableClientWindowNotification(InputMethod inputMethod, boolean enable)
Overrides sun. Implements java. Enables or disables notification of the current client window's location and state for the specified input method. |
| public AttributedCharacterIterator | getCommittedText(int beginIndex, int endIndex, AttributedCharacterIterator.
Implements java. Calls the current client component's implementation of getCommittedText. |
| public int | getCommittedTextLength()
Implements java. Calls the current client component's implementation of getCommittedTextLength. |
| private CompositionAreaHandler | getCompositionAreaHandler(boolean grab)
Gets this context's composition area handler, creating it if necessary. |
| public int | getInsertPositionOffset()
Implements java. Calls the current client component's implementation of getInsertPositionOffset. |
| public TextHitInfo | getLocationOffset(int x, int y)
Implements java. Calls the current client component's implementation of getLocationOffset. |
| private InputMethodRequests | |
| public AttributedCharacterIterator | getSelectedText(AttributedCharacterIterator.
Implements java. Calls the current client component's implementation of getSelectedText. |
| public Rectangle | getTextLocation(TextHitInfo offset)
Implements java. Calls the current client component's implementation of getTextLocation. |
| pack-priv void | |
| private boolean | |
| pack-priv boolean | isCompositionAreaVisible()
Calls CompositionAreaHandler.isCompositionAreaVisible() to see whether the composition area is visible or not. |
| pack-priv void | releaseCompositionArea()
Releases and closes the composition area if it is currently owned by this context's composition area handler. |
| pack-priv void | setCompositionAreaUndecorated(boolean undecorated)
Disables or enables decorations for the composition window. |
| pack-priv void | setCompositionAreaVisible(boolean visible)
Calls CompositionAreaHandler.setCompositionAreaVisible to show or hide the composition area. |
| pack-priv void | |
| pack-priv boolean |
| belowTheSpotInputRequested | back to summary |
|---|---|
| private static boolean belowTheSpotInputRequested | |
| compositionAreaHandler | back to summary |
|---|---|
| private CompositionAreaHandler compositionAreaHandler | |
| compositionAreaHandlerLock | back to summary |
|---|---|
| private Object compositionAreaHandlerLock | |
| dispatchingCommittedText | back to summary |
|---|---|
| private boolean dispatchingCommittedText | |
| inputMethodSupportsBelowTheSpot | back to summary |
|---|---|
| private boolean inputMethodSupportsBelowTheSpot | |
| InputMethodContext | back to summary |
|---|---|
| public InputMethodContext() Constructs an InputMethodContext. | |
| cancelLatestCommittedText | back to summary |
|---|---|
| public AttributedCharacterIterator cancelLatestCommittedText(AttributedCharacterIterator. Implements java. Calls the current client component's implementation of cancelLatestCommittedText. | |
| createInputMethodJFrame | back to summary |
|---|---|
| public JFrame createInputMethodJFrame(String title, boolean attachToInputContext) Implements java. Doc from java. Creates a top-level Swing JFrame for use by the input method. The intended behavior of this window is:
The title may or may not be displayed, depending on the actual type of window created. 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.
Input methods must call | |
| createInputMethodWindow | back to summary |
|---|---|
| public Window createInputMethodWindow(String title, boolean attachToInputContext) Implements java. Doc from java. Creates a top-level window for use by the input method. The intended behavior of this window is:
The title may or may not be displayed, depending on the actual type of window created. 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.
Input methods must call | |
| createInputMethodWindow | back to summary |
|---|---|
| pack-priv static Window createInputMethodWindow(String title, InputContext context, boolean isSwing) | |
| dispatchCommittedText | back to summary |
|---|---|
| pack-priv synchronized void dispatchCommittedText(Component client, AttributedCharacterIterator text, int committedCharacterCount) Dispatches committed text to a client component. Called by composition window.
| |
| dispatchEvent | back to summary |
|---|---|
| public void dispatchEvent(AWTEvent event) Overrides sun. Doc from java. Dispatches an event to the active input method. Called by AWT. If no input method is available, then the event will never be consumed. | |
| dispatchInputMethodEvent | back to summary |
|---|---|
| public void dispatchInputMethodEvent(int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition) Implements java. Doc from java. Creates an input method event from the arguments given
and dispatches it to the client component. For arguments,
see | |
| enableClientWindowNotification | back to summary |
|---|---|
| public void enableClientWindowNotification(InputMethod inputMethod, boolean enable) Overrides sun. Implements java. Doc from java. 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 | |
| getCommittedText | back to summary |
|---|---|
| public AttributedCharacterIterator getCommittedText(int beginIndex, int endIndex, AttributedCharacterIterator. Implements java. Calls the current client component's implementation of getCommittedText. | |
| getCommittedTextLength | back to summary |
|---|---|
| public int getCommittedTextLength() Implements java. Calls the current client component's implementation of getCommittedTextLength. | |
| getCompositionAreaHandler | back to summary |
|---|---|
| private CompositionAreaHandler getCompositionAreaHandler(boolean grab) Gets this context's composition area handler, creating it if necessary. If requested, it grabs the composition area for use by this context. The composition area's text is not updated. | |
| getInsertPositionOffset | back to summary |
|---|---|
| public int getInsertPositionOffset() Implements java. Calls the current client component's implementation of getInsertPositionOffset. | |
| getLocationOffset | back to summary |
|---|---|
| public TextHitInfo getLocationOffset(int x, int y) Implements java. Calls the current client component's implementation of getLocationOffset. | |
| getReq | back to summary |
|---|---|
| private InputMethodRequests getReq() | |
| getSelectedText | back to summary |
|---|---|
| public AttributedCharacterIterator getSelectedText(AttributedCharacterIterator. Implements java. Calls the current client component's implementation of getSelectedText. | |
| getTextLocation | back to summary |
|---|---|
| public Rectangle getTextLocation(TextHitInfo offset) Implements java. Calls the current client component's implementation of getTextLocation. | |
| grabCompositionArea | back to summary |
|---|---|
| pack-priv void grabCompositionArea(boolean doUpdate) Grabs the composition area for use by this context. If doUpdate is true, updates the composition area with previously sent composed text. | |
| haveActiveClient | back to summary |
|---|---|
| private boolean haveActiveClient() | |
| isCompositionAreaVisible | back to summary |
|---|---|
| pack-priv boolean isCompositionAreaVisible() Calls CompositionAreaHandler.isCompositionAreaVisible() to see whether the composition area is visible or not. Notice that this method is always called on the AWT event dispatch thread. | |
| releaseCompositionArea | back to summary |
|---|---|
| pack-priv void releaseCompositionArea() Releases and closes the composition area if it is currently owned by this context's composition area handler. | |
| setCompositionAreaUndecorated | back to summary |
|---|---|
| pack-priv void setCompositionAreaUndecorated(boolean undecorated) Disables or enables decorations for the composition window. | |
| setCompositionAreaVisible | back to summary |
|---|---|
| pack-priv void setCompositionAreaVisible(boolean visible) Calls CompositionAreaHandler.setCompositionAreaVisible to show or hide the composition area. As isCompositionAreaVisible method, it is always called on AWT event dispatch thread. | |
| setInputMethodSupportsBelowTheSpot | back to summary |
|---|---|
| pack-priv void setInputMethodSupportsBelowTheSpot(boolean supported) | |
| useBelowTheSpotInput | back to summary |
|---|---|
| pack-priv boolean useBelowTheSpotInput() | |