1 7 package javax.swing.event; 8 9 import javax.swing.MenuElement ; 10 import javax.swing.MenuSelectionManager ; 11 import java.util.EventObject ; 12 import java.awt.event.MouseEvent ; 13 import java.awt.Component ; 14 15 16 33 public class MenuDragMouseEvent extends MouseEvent { 34 private MenuElement path[]; 35 private MenuSelectionManager manager; 36 37 58 public MenuDragMouseEvent(Component source, int id, long when, 59 int modifiers, int x, int y, int clickCount, 60 boolean popupTrigger, MenuElement p[], 61 MenuSelectionManager m) { 62 super(source, id, when, modifiers, x, y, clickCount, popupTrigger); 63 path = p; 64 manager = m; 65 } 66 67 72 public MenuElement [] getPath() { 73 return path; 74 } 75 76 81 public MenuSelectionManager getMenuSelectionManager() { 82 return manager; 83 } 84 } 85 86 | Popular Tags |