void (int x, int y, int clickcount, int id, Object component, Object part, boolean multiline, boolean hidden, int left) { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) { setReference(component, 2 + left, 2); int mx = x - referencex; int my = 0; if (!multiline) { mx += getInteger(component, "offset", 0); } else { <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> view = getRectangle(component, ":view"); mx += view.<error descr="Cannot resolve symbol 'x'">x</error> - 1; my = y - referencey + view.<error descr="Cannot resolve symbol 'y'">y</error> - 1; } int caretstart = getCaretLocation(component, mx, my, hidden); int caretend = caretstart; //java> if (clickcount > 1) { String text = getString(component, "text", ""); while ((caretstart > 0) && ((clickcount == 2) ? Character.isLetterOrDigit(text.charAt(caretstart - 1)) : (text.charAt(caretstart - 1) != '\n'))) { caretstart--; } while ((caretend < text.length()) && ((clickcount == 2) ? Character.isLetterOrDigit(text.charAt(caretend)) : (text.charAt(caretend) != '\n'))) { caretend++; } } //<java setInteger(component, "start", caretstart, 0); setInteger(component, "end", caretend, 0); setFocus(component); validate(component); // caret check only } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_DRAGGED) { int mx = x - referencex; int my = 0; if (!multiline) { mx += getInteger(component, "offset", 0); } else { <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> view = getRectangle(component, ":view"); mx += view.<error descr="Cannot resolve symbol 'x'">x</error> - 1; my = y - referencey + view.<error descr="Cannot resolve symbol 'y'">y</error> - 1; } int dragcaret = getCaretLocation(component, mx, my, hidden); if (dragcaret != getInteger(component, "end", 0)) { setInteger(component, "end", dragcaret, 0); validate(component); // caret check only } } //java> else if ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) && (mousepressed == null)) { setCursor(<error descr="Cannot resolve symbol 'Cursor'">Cursor</error>.getPredefinedCursor(<error descr="Cannot resolve symbol 'Cursor'">Cursor</error>.TEXT_CURSOR)); } else if (((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED) && (mousepressed == null)) || ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED) && ((mouseinside != component) || (insidepart != null)))) { setCursor(<error descr="Cannot resolve symbol 'Cursor'">Cursor</error>.getPredefinedCursor(<error descr="Cannot resolve symbol 'Cursor'">Cursor</error>.DEFAULT_CURSOR)); } //<java }