コード例 #1
0
 public static GeckoEvent createIMESelectEvent(int start, int end) {
   GeckoEvent event = new GeckoEvent(IME_EVENT);
   event.mAction = IME_SET_SELECTION;
   event.mStart = start;
   event.mEnd = end;
   return event;
 }
コード例 #2
0
 public static GeckoEvent createIMECompositionEvent(int start, int end) {
   GeckoEvent event = new GeckoEvent(IME_EVENT);
   event.mAction = IME_UPDATE_COMPOSITION;
   event.mStart = start;
   event.mEnd = end;
   return event;
 }
コード例 #3
0
 public static GeckoEvent createIMEReplaceEvent(int start, int end, String text) {
   GeckoEvent event = new GeckoEvent(IME_EVENT);
   event.mAction = IME_REPLACE_TEXT;
   event.mStart = start;
   event.mEnd = end;
   event.mCharacters = text;
   return event;
 }
コード例 #4
0
 public static GeckoEvent createIMERangeEvent(
     int start, int end, int rangeType, int rangeStyles, int rangeForeColor, int rangeBackColor) {
   GeckoEvent event = new GeckoEvent(IME_EVENT);
   event.mAction = IME_ADD_COMPOSITION_RANGE;
   event.mStart = start;
   event.mEnd = end;
   event.mRangeType = rangeType;
   event.mRangeStyles = rangeStyles;
   event.mRangeForeColor = rangeForeColor;
   event.mRangeBackColor = rangeBackColor;
   return event;
 }