java.awt.im
4 classes of the module java.desktop.
Load them with:
using {
"java.awt.im"
}
InputContext#
class · extends Object · java.awt.im.InputContext
Methods
| Method | Ring call | Java overloads |
|---|---|---|
dispatchEvent | dispatchEvent(event) | void dispatchEvent(AWTEvent event) |
dispose | dispose() | void dispose() |
endComposition | endComposition() | void endComposition() |
getInputMethodControlObject | getInputMethodControlObject() | Object getInputMethodControlObject() |
getInstance | getInstance() | static InputContext getInstance() |
getLocale | getLocale() | Locale getLocale() |
isCompositionEnabled | isCompositionEnabled() | boolean isCompositionEnabled() |
reconvert | reconvert() | void reconvert() |
removeNotify | removeNotify(client) | void removeNotify(Component client) |
selectInputMethod | selectInputMethod(locale) | boolean selectInputMethod(Locale locale) |
setCharacterSubsets | setCharacterSubsets(subsets) | void setCharacterSubsets(Subset[] subsets) |
setCompositionEnabled | setCompositionEnabled(enable) | void setCompositionEnabled(boolean enable) |
The methods and fields of Object are inherited.
InputMethodHighlight#
class · extends Object · java.awt.im.InputMethodHighlight
Constructors
new InputMethodHighlight(boolean selected, int state) |
new InputMethodHighlight(boolean selected, int state, int variation) |
new InputMethodHighlight(boolean selected, int state, int variation, Map style) |
Ring: new InputMethodHighlight(args) uses the constructor with the fewest parameters (at least one); new InputMethodHighlight makes the object with the constructor without parameters; the others: (new InputMethodHighlight).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
RAW_TEXT | int | constant · static | o.RAW_TEXT |
CONVERTED_TEXT | int | constant · static | o.CONVERTED_TEXT |
UNSELECTED_RAW_TEXT_HIGHLIGHT | InputMethodHighlight | constant · static | o.UNSELECTED_RAW_TEXT_HIGHLIGHT |
SELECTED_RAW_TEXT_HIGHLIGHT | InputMethodHighlight | constant · static | o.SELECTED_RAW_TEXT_HIGHLIGHT |
UNSELECTED_CONVERTED_TEXT_HIGHLIGHT | InputMethodHighlight | constant · static | o.UNSELECTED_CONVERTED_TEXT_HIGHLIGHT |
SELECTED_CONVERTED_TEXT_HIGHLIGHT | InputMethodHighlight | constant · static | o.SELECTED_CONVERTED_TEXT_HIGHLIGHT |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getState | getState() | int getState() |
getStyle | getStyle() | Map getStyle() |
getVariation | getVariation() | int getVariation() |
isSelected | isSelected() | boolean isSelected() |
The methods and fields of Object are inherited.
InputMethodRequests#
interface · java.awt.im.InputMethodRequests
Methods
| Method | Ring call | Java overloads |
|---|---|---|
cancelLatestCommittedText | cancelLatestCommittedText(attributes) | AttributedCharacterIterator cancelLatestCommittedText(Attribute[] attributes) |
getCommittedText | getCommittedText(beginIndex,endIndex,attributes) | AttributedCharacterIterator getCommittedText(int beginIndex, int endIndex, Attribute[] attributes) |
getCommittedTextLength | getCommittedTextLength() | int getCommittedTextLength() |
getInsertPositionOffset | getInsertPositionOffset() | int getInsertPositionOffset() |
getLocationOffset | getLocationOffset(x,y) | TextHitInfo getLocationOffset(int x, int y) |
getSelectedText | getSelectedText(attributes) | AttributedCharacterIterator getSelectedText(Attribute[] attributes) |
getTextLocation | getTextLocation(offset) | Rectangle getTextLocation(TextHitInfo offset) |
InputSubset#
class final · extends CharacterSubset · java.awt.im.InputSubset
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
LATIN | InputSubset | constant · static | o.LATIN |
LATIN_DIGITS | InputSubset | constant · static | o.LATIN_DIGITS |
TRADITIONAL_HANZI | InputSubset | constant · static | o.TRADITIONAL_HANZI |
SIMPLIFIED_HANZI | InputSubset | constant · static | o.SIMPLIFIED_HANZI |
KANJI | InputSubset | constant · static | o.KANJI |
HANJA | InputSubset | constant · static | o.HANJA |
HALFWIDTH_KATAKANA | InputSubset | constant · static | o.HALFWIDTH_KATAKANA |
FULLWIDTH_LATIN | InputSubset | constant · static | o.FULLWIDTH_LATIN |
FULLWIDTH_DIGITS | InputSubset | constant · static | o.FULLWIDTH_DIGITS |
The methods and fields of CharacterSubset are inherited.