InputMethodHighlightpublic class InputMethodHighlight extends Object This class is not supported in Android 1.0. It is merely provided to maintain
interface compatibility with desktop Java implementations. |
Fields Summary |
---|
public static final int | RAW_TEXT | public static final int | CONVERTED_TEXT | public static final InputMethodHighlight | UNSELECTED_RAW_TEXT_HIGHLIGHT | public static final InputMethodHighlight | SELECTED_RAW_TEXT_HIGHLIGHT | public static final InputMethodHighlight | UNSELECTED_CONVERTED_TEXT_HIGHLIGHT | public static final InputMethodHighlight | SELECTED_CONVERTED_TEXT_HIGHLIGHT | private boolean | selected | private int | state | private int | variation | private Map | style |
Constructors Summary |
---|
public InputMethodHighlight(boolean selected, int state, int variation)
this(selected, state, variation, null);
| public InputMethodHighlight(boolean selected, int state, int variation, Map style)
if ((state != RAW_TEXT) && (state != CONVERTED_TEXT)) {
// awt.20B=unknown input method highlight state
throw new IllegalArgumentException(Messages.getString("awt.20B")); //$NON-NLS-1$
}
this.selected = selected;
this.state = state;
this.variation = variation;
this.style = style;
| public InputMethodHighlight(boolean selected, int state)
this(selected, state, 0, null);
|
Methods Summary |
---|
public int | getState()
return state;
| public java.util.Map | getStyle()
return style;
| public int | getVariation()
return variation;
| public boolean | isSelected()
return selected;
|
|