Lines Matching refs:selectionStart
85 * <code>selectionStart</code> is the start position
92 int selectionStart;
213 selectionStart = peer.getSelectionStart();
350 selectionStart = peer.getSelectionStart();
352 return selectionStart;
361 * If the caller supplies a value for <code>selectionStart</code>
364 * @param selectionStart the start position of the
370 public synchronized void setSelectionStart(int selectionStart) {
372 * between selectionStart and selectionEnd.
374 select(selectionStart, getSelectionEnd());
408 * between selectionStart and selectionEnd.
436 * @param selectionStart the zero-based index of the first
445 public synchronized void select(int selectionStart, int selectionEnd) {
447 if (selectionStart < 0) {
448 selectionStart = 0;
450 if (selectionStart > text.length()) {
451 selectionStart = text.length();
456 if (selectionEnd < selectionStart) {
457 selectionEnd = selectionStart;
460 this.selectionStart = selectionStart;
465 peer.select(selectionStart, selectionEnd);
474 this.selectionStart = 0;
479 peer.select(selectionStart, selectionEnd);
535 position = selectionStart;
767 // selectionStart, selectionEnd, and text aren't necessarily
772 selectionStart = peer.getSelectionStart();
802 // selectionStart and selectionEnd has legal values
804 select(selectionStart, selectionEnd);