Lines Matching refs:event

29 import java.awt.event.*;
42 import javax.swing.event.*;
216 public void focusGained(FocusEvent event) {}
217 public void focusLost(FocusEvent event) {
220 JMenuItem mi = (JMenuItem)event.getSource();
268 * released while it is over this item, the menu's action event
270 * event will not fire and the menu item will be disarmed.
274 * description: Mouse release will fire an action event
415 * Processes a mouse event forwarded from the
420 * Note: you do not have to forward the event to sub-components.
439 * Processes a key event forwarded from the
443 * Note: you do not have to forward the event to sub-components.
512 * notification on this event type.
514 * @param event a <code>MenuMouseDragEvent</code>
517 protected void fireMenuDragMouseEntered(MenuDragMouseEvent event) {
521 // those that are interested in this event
524 // Lazily create the event:
525 ((MenuDragMouseListener)listeners[i+1]).menuDragMouseEntered(event);
532 * notification on this event type.
534 * @param event a <code>MenuDragMouseEvent</code>
537 protected void fireMenuDragMouseExited(MenuDragMouseEvent event) {
541 // those that are interested in this event
544 // Lazily create the event:
545 ((MenuDragMouseListener)listeners[i+1]).menuDragMouseExited(event);
552 * notification on this event type.
554 * @param event a <code>MenuDragMouseEvent</code>
557 protected void fireMenuDragMouseDragged(MenuDragMouseEvent event) {
561 // those that are interested in this event
564 // Lazily create the event:
565 ((MenuDragMouseListener)listeners[i+1]).menuDragMouseDragged(event);
572 * notification on this event type.
574 * @param event a <code>MenuDragMouseEvent</code>
577 protected void fireMenuDragMouseReleased(MenuDragMouseEvent event) {
581 // those that are interested in this event
584 // Lazily create the event:
585 ((MenuDragMouseListener)listeners[i+1]).menuDragMouseReleased(event);
592 * notification on this event type.
594 * @param event a <code>MenuKeyEvent</code>
597 protected void fireMenuKeyPressed(MenuKeyEvent event) {
600 " " + KeyStroke.getKeyStrokeForEvent(event));
605 // those that are interested in this event
608 // Lazily create the event:
609 ((MenuKeyListener)listeners[i+1]).menuKeyPressed(event);
616 * notification on this event type.
618 * @param event a <code>MenuKeyEvent</code>
621 protected void fireMenuKeyReleased(MenuKeyEvent event) {
624 " " + KeyStroke.getKeyStrokeForEvent(event));
629 // those that are interested in this event
632 // Lazily create the event:
633 ((MenuKeyListener)listeners[i+1]).menuKeyReleased(event);
640 * notification on this event type.
642 * @param event a <code>MenuKeyEvent</code>
645 protected void fireMenuKeyTyped(MenuKeyEvent event) {
648 " " + KeyStroke.getKeyStrokeForEvent(event));
653 // those that are interested in this event
656 // Lazily create the event:
657 ((MenuKeyListener)listeners[i+1]).menuKeyTyped(event);
689 * events and detect if an event is inside a menu component.
880 // Here we will fire the event in case of JMenuItem
930 // Here we will fire the event in case of JMenu