Lines Matching defs:text

34 import java.text.AttributedCharacterIterator;
35 import java.text.CharacterIterator;
38 * Input method events contain information about text that is being
39 * composed using an input method. Whenever the text changes, the
40 * input method sends an event. If the text component that's currently
46 * The text included with the input method event consists of two parts:
47 * committed text and composed text. Either part may be empty. The two
48 * parts together replace any uncommitted composed text sent in previous events,
49 * or the currently selected committed text.
50 * Committed text should be integrated into the text component's persistent
51 * data, it will not be sent again. Composed text may be sent repeatedly,
52 * with changes to reflect the user's editing operations. Committed text
53 * always precedes composed text.
72 * The event type indicating changed input method text. This event is
78 * The event type indicating a changed insertion point in input method text.
99 private transient AttributedCharacterIterator text;
106 * source component, type, time, text, caret, and visiblePosition.
109 * composed text; that is, the composed text within <code>text</code>
111 * the composed text within the <code>text</code> of the
121 * @param text the combined committed and composed text,
122 * committed text first; must be <code>null</code>
126 * committed or composed text
128 * characters in the text
131 * composed text
135 * composed text
140 * <code>text</code> is not <code>null</code>;
142 * <code>0</code>..<code>(text.getEndIndex() - text.getBeginIndex())</code>
148 AttributedCharacterIterator text, int committedCharacterCount,
155 if (id == CARET_POSITION_CHANGED && text != null) {
156 throw new IllegalArgumentException("text must be null for CARET_POSITION_CHANGED");
160 this.text = text;
162 if (text != null) {
163 textLength = text.getEndIndex() - text.getBeginIndex();
177 * source component, type, text, caret, and visiblePosition.
180 * composed text; that is, the composed text within <code>text</code>
182 * the composed text within the <code>text</code> of the
193 * @param text the combined committed and composed text,
194 * committed text first; must be <code>null</code>
198 * committed or composed text
200 * characters in the text
203 * composed text
207 * composed text
212 * <code>text</code> is not <code>null</code>;
214 * <code>0</code>..<code>(text.getEndIndex() - text.getBeginIndex())</code>
218 AttributedCharacterIterator text, int committedCharacterCount,
220 this(source, id, EventQueue.getMostRecentEventTime(), text,
227 * The text is set to <code>null</code>,
231 * are relative to the current composed text; that is,
232 * the composed text within the <code>text</code> of the
235 * For an <code>INPUT_METHOD_TEXT_CHANGED</code> event without text,
249 * composed text
253 * composed text
266 * Gets the combined committed and composed text.
268 * text, the remaining characters are composed text.
270 * @return the text.
272 * may be null for INPUT_METHOD_TEXT_CHANGED if there's no composed or committed text.
275 return text;
279 * Gets the number of committed characters in the text.
289 * composed text; that is, the composed text within getText()
291 * the composed text within getText() of the
295 * Null if there's no caret within current composed text.
305 * composed text; that is, the composed text within getText()
307 * the composed text within getText() of the
311 * Null if there's no recommendation for a visible position within current composed text.
346 * It contains the event ID in text form, the characters of the
347 * committed and composed text
367 if (text == null) {
368 textString = "no text";
372 char c = text.first();
375 c = text.next();
380 c = text.next();