void (int x, int y, int clickcount, boolean shiftdown, boolean controldown, boolean popuptrigger, int id, Object component, Object part) { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) { setTimer(750L); } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED) { hideTip(); } if (!getBoolean(component, "enabled", true)) { return; } String classname = getClass(component); if (("button" == classname) || ("checkbox" == classname)) { if ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED)) { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) { setFocus(component); } else if ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED) && (mouseinside == component)) { if ("checkbox" == classname) { changeCheck(component, true); } else invoke(component, "action"); } repaint(component); } } else if ("combobox" == classname) { boolean editable = getBoolean(component, "editable", true); if (editable && (part == null)) { <error descr="Cannot resolve symbol 'Image'">Image</error> icon = null; int left = ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) && ((icon = getIcon(component, "icon", null)) != null)) ? icon.<error descr="Cannot resolve method 'getWidth(Thinlet)'">getWidth</error>(this) : 0; processField(x, y, clickcount, id, component, part, false, false, left); } else if (part != "icon") { // part = "down" if (((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED)) && (mousepressed == null)) { if (editable) { repaint(component, "combobox", part); } else { repaint(component); } } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) { Object combolist = get(component, "combolist"); if (combolist == null) { setFocus(component); repaint(component); popup(component, classname); } else { closeup(component, combolist, null); } } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED) { if (mouseinside != component) { Object combolist = get(component, "combolist"); closeup(component, combolist, (mouseinside == combolist) ? insidepart : null); } else { repaint(component); } } } } else if ("combolist" == classname) { if (!processScroll(x, y, id, component, part)) { if ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) || (id == DRAG_ENTERED)) { if (part != null) { // repaint previous inside set(component, "inside", part); repaint(component, classname, part); } } else if ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED) || (id == DRAG_EXITED)) { if (part != null) { set(component, "inside", null); repaint(component, classname, part); } } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED) { closeup(get(component, "combobox"), component, part); } } } else if (("textfield" == classname) || ("passwordfield" == classname)) { processField(x, y, clickcount, id, component, part, false, ("passwordfield" == classname), 0); } else if ("textarea" == classname) { if (!processScroll(x, y, id, component, part)) { processField(x, y, clickcount, id, component, part, true, false, 0); } } //java> else if ("desktop" == classname) { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) { setCursor(<error descr="Cannot resolve symbol 'Cursor'">Cursor</error>.getPredefinedCursor(<error descr="Cannot resolve symbol 'Cursor'">Cursor</error>.WAIT_CURSOR)); } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED) { setCursor(<error descr="Cannot resolve symbol 'Cursor'">Cursor</error>.getPredefinedCursor(<error descr="Cannot resolve symbol 'Cursor'">Cursor</error>.DEFAULT_CURSOR)); } } //<java else if ("spinbox" == classname) { if (part == null) { processField(x, y, clickcount, id, component, part, false, false, 0); } else { // part = "up" || "down" if ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED)) { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) { setFocus(component); if (processSpin(component, part)) { setTimer(375L); } //settext: start end selection, parse exception... } else { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED) { setTimer(0L); } } repaint(component, classname, part); } } } else if ("tabbedpane" == classname) { if ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED)) { if ((part != null) && getBoolean(part, "enabled", true) && (getInteger(component, "selected", 0) != getIndex(component, "tab", part))) { repaint(component, "tabbedpane", part); } } else if ((part != null) && (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) && getBoolean(part, "enabled", true)) { int selected = getInteger(component, "selected", 0); int current = getIndex(component, "tab", part); if (selected == current) { setFocus(component); repaint(component, "tabbedpane", part); } else { setInteger(component, "selected", current, 0); //Object tabcontent = getItemImpl(component, "component", current); //setFocus((tabcontent != null) ? tabcontent : component); setNextFocusable(component, false); repaint(component); invoke(component, "action"); } } } else if ("slider" == classname) { if ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_DRAGGED)) { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) { setReference(component, block / 2, block / 2); setFocus(component); } int minimum = getInteger(component, "minimum", 0); int maximum = getInteger(component, "maximum", 100); int value = getInteger(component, "value", 50); <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> bounds = getRectangle(component, "bounds"); boolean horizontal = ("vertical" != get(component, "orientation")); int newvalue = minimum + (horizontal ? (mousex - referencex) : (mousey - referencey)) * (maximum - minimum) / ((horizontal ? bounds.<error descr="Cannot resolve symbol 'width'">width</error> : bounds.<error descr="Cannot resolve symbol 'height'">height</error>) - block); //... +0.5 newvalue = Math.max(minimum, Math.min(newvalue, maximum)); if (value != newvalue) { setInteger(component, "value", newvalue, 50); invoke(component, "action"); } if ((value != newvalue) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED)) { repaint(component); } } } else if ("splitpane" == classname) { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) { setReference(component, 2, 2); } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_DRAGGED) { int divider = getInteger(component, "divider", -1); boolean horizontal = ("vertical" != get(component, "orientation")); int moveto = horizontal ? (mousex - referencex) : (mousey - referencey); <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> bounds = getRectangle(component, "bounds"); moveto = Math.max(0, Math.min(moveto, Math.abs(horizontal ? bounds.<error descr="Cannot resolve symbol 'width'">width</error> : bounds.<error descr="Cannot resolve symbol 'height'">height</error>) - 5)); if (divider != moveto) { setInteger(component, "divider", moveto, -1); validate(component); } } //java> else if ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) && (mousepressed == null)) { boolean horizontal = ("vertical" != get(component, "orientation")); setCursor(<error descr="Cannot resolve symbol 'Cursor'">Cursor</error>.getPredefinedCursor(horizontal ? <error descr="Cannot resolve symbol 'Cursor'">Cursor</error>.E_RESIZE_CURSOR : <error descr="Cannot resolve symbol 'Cursor'">Cursor</error>.S_RESIZE_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))) { setCursor(<error descr="Cannot resolve symbol 'Cursor'">Cursor</error>.getPredefinedCursor(<error descr="Cannot resolve symbol 'Cursor'">Cursor</error>.DEFAULT_CURSOR)); } //<java } else if (("list" == classname) || ("table" == classname) || ("tree" == classname)) { if (!processScroll(x, y, id, component, part)) { if (((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED)|| ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_DRAGGED) && !shiftdown && !controldown)) && !popuptrigger) { // e.getClickCount() <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> view = getRectangle(component, ":view"); <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> viewport = getRectangle(component, ":port"); int my = mousey + view.<error descr="Cannot resolve symbol 'y'">y</error> - referencey; String itemname = ("list" == classname) ? "item" : (("table" == classname) ? "row" : "node"); String subitem = ("tree" == classname) ? "node" : null; for (Object item = get(component, itemname); item != null;) { <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> r = getRectangle(item, "bounds"); if (my < r.<error descr="Cannot resolve symbol 'y'">y</error> + r.<error descr="Cannot resolve symbol 'height'">height</error>) { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_DRAGGED) { //!!! scrollToVisible(component, r.<error descr="Cannot resolve symbol 'x'">x</error>, r.<error descr="Cannot resolve symbol 'y'">y</error>, 0, r.<error descr="Cannot resolve symbol 'height'">height</error> - 1); } else if ("tree" == classname) { int mx = mousex + view.<error descr="Cannot resolve symbol 'x'">x</error> - referencex; if (mx < r.<error descr="Cannot resolve symbol 'x'">x</error>) { if ((mx >= r.<error descr="Cannot resolve symbol 'x'">x</error> - block) && (get(item, "node") != null)) { boolean expanded = getBoolean(item, "expanded", true); setBoolean(item, "expanded", !expanded, true); selectItem(component, item, "node", "node"); setLead(component, get(component, "lead"), item); setFocus(component); validate(component); invoke(component, expanded ? "collapse" : "expand"); //item } break; } } if ((id != <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_DRAGGED) || !getBoolean(item, "selected", false)) { select(component, item, itemname, subitem, shiftdown, controldown); if (id != <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_DRAGGED) { if (setFocus(component)) { repaint(component, classname, item); } //? } } break; } item = getNextItem(component, item, subitem); } } } } else if ("menubar" == classname) { Object selected = get(component, "selected"); if (((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED)) && (part != null) && (selected == null)) { repaint(component, classname, part); } else if ((part != null) && ((selected == null) ? (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) : ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) || (id == DRAG_ENTERED)))) { set(component, "selected", part); popup(component, classname); repaint(component, classname, part); } else if ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) && (selected != null)) { closeup(component); } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED) { if ((part != insidepart) && ((insidepart == null) || (getClass(insidepart) != "menu"))) { if ((insidepart != null) && getBoolean(insidepart, "enabled", true)) { if (getClass(insidepart) == "checkboxmenuitem") { changeCheck(insidepart, false); } else invoke(insidepart, "action"); } closeup(component); } } } else if ("popupmenu" == classname) { if (part != null) { if ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) || (id == DRAG_ENTERED)) { set(component, "selected", part); popup(component, classname); repaint(component, classname, part); } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED) { if ((insidepart == null) || (getClass(insidepart) != "menu")) { Object menubar = part; do { menubar = getParent(menubar); } while (getClass(menubar) != "menubar"); if ((insidepart != null) && getBoolean(insidepart, "enabled", true)) { if (getClass(insidepart) == "checkboxmenuitem") { changeCheck(insidepart, false); } else invoke(insidepart, "action"); } closeup(menubar); } } else if ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED) || (id == DRAG_EXITED)) { if (getClass(part) != "menu") { set(component, "selected", null); } repaint(component, classname, part); } } } else if ("dialog" == classname) { if (part == "header") { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) { referencex = mousex; referencey = mousey; if (!getBoolean(component, "modal", false) && (get(content, "component") != component)) { removeItemImpl(content, "component", component); insertItem(content, "component", component, 0); set(component, ":parent", content); repaint(component); } } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_DRAGGED) { <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> bounds = getRectangle(component, "bounds"); int dx = mousex - referencex; int dy = mousey - referencey; repaint(component, bounds.<error descr="Cannot resolve symbol 'x'">x</error> + Math.min(0, dx), bounds.<error descr="Cannot resolve symbol 'y'">y</error> + Math.min(0, dy), bounds.<error descr="Cannot resolve symbol 'width'">width</error> + Math.abs(dx), bounds.<error descr="Cannot resolve symbol 'height'">height</error> + Math.abs(dy)); bounds.<error descr="Cannot resolve symbol 'x'">x</error> += dx; bounds.<error descr="Cannot resolve symbol 'y'">y</error> += dy; referencex = mousex; referencey = mousey; } } } }