Lines Matching defs:path

85      * @param path  an array of <code>MenuElement</code> objects specifying
86 * the selected path
88 public void setSelectedPath(MenuElement[] path) {
93 if(path == null) {
94 path = new MenuElement[0];
99 System.out.print("New: "); printMenuElementArray(path);
102 for(i=0,c=path.length;i<c;i++) {
103 if (i < currentSelectionCount && selection.elementAt(i) == path[i])
115 for(i = firstDifference, c = path.length ; i < c ; i++) {
116 if (path[i] != null) {
117 selection.addElement(path[i]);
118 path[i].menuSelectionChanged(true);
126 * Returns the path to the currently selected menu item
128 * @return an array of MenuElement objects representing the selected path
215 MenuElement path[];
252 path = null;
272 * the selected path or contains the event location
277 if(path == null) {
278 path = new MenuElement[i+2];
280 path[k] = (MenuElement)tmp.elementAt(k);
282 path[i+1] = subElements[j];
287 path[i+1] &&
290 path[i+1])) {
302 processMouseEvent(exitEvent, path, this);
313 subElements[j].processMouseEvent(enterEvent, path, this);
322 subElements[j].processMouseEvent(mouseEvent, path, this);
330 private void printMenuElementArray(MenuElement path[]) {
331 printMenuElementArray(path, false);
334 private void printMenuElementArray(MenuElement path[], boolean dumpStack) {
337 for(i=0,j=path.length; i<j ;i++){
340 MenuElement me = path[i];
360 * Returns the component in the currently selected path
366 * @return The component in the currently selected path which
369 * on the currently selected path, null is returned.
413 * path in whose bounds the event's point occurs
433 MenuElement[] path;
442 path = null;
450 if(path == null) {
451 path = new MenuElement[i+2];
452 System.arraycopy(sel2, 0, path, 0, i+1);
454 path[i+1] = subs[j];
455 subs[j].processKeyEvent(e, path, this);
462 // finally dispatch event to the first component in path
463 path = new MenuElement[1];
464 path[0] = sel2[0];
465 path[0].processKeyEvent(e, path, this);