Examples of dispatchEvent()


Examples of java.awt.im.InputContext.dispatchEvent()

        }
        int id = e.getID();
        boolean isInputEvent = ((id >= KeyEvent.KEY_FIRST) && (id <= KeyEvent.KEY_LAST))
                || ((id >= MouseEvent.MOUSE_FIRST) && (id <= MouseEvent.MOUSE_LAST));
        if (((id >= FocusEvent.FOCUS_FIRST) && (id <= FocusEvent.FOCUS_LAST)) || isInputEvent) {
            ic.dispatchEvent(e);
        }
        return e.isConsumed();
    }
}
View Full Code Here

Examples of java.awt.im.InputContext.dispatchEvent()

        }
        int id = e.getID();
        boolean isInputEvent = ((id >= KeyEvent.KEY_FIRST) && (id <= KeyEvent.KEY_LAST))
                || ((id >= MouseEvent.MOUSE_FIRST) && (id <= MouseEvent.MOUSE_LAST));
        if (((id >= FocusEvent.FOCUS_FIRST) && (id <= FocusEvent.FOCUS_LAST)) || isInputEvent) {
            ic.dispatchEvent(e);
        }
        return e.isConsumed();
    }
}
View Full Code Here

Examples of java.awt.im.InputContext.dispatchEvent()

            if (isFocusOwner()) {
                InputContext inputContext = getInputContext();
                if (inputContext != null) {
                    FocusEvent focusGainedEvent =
                        new FocusEvent(this, FocusEvent.FOCUS_GAINED);
                    inputContext.dispatchEvent(focusGainedEvent);
                }
            }

            eventMask |= AWTEvent.INPUT_METHODS_ENABLED_MASK;
        } else {
View Full Code Here

Examples of java.awt.im.InputContext.dispatchEvent()

               (e instanceof InputEvent) || (e instanceof FocusEvent)) {
                InputContext inputContext = getInputContext();


                if (inputContext != null) {
                    inputContext.dispatchEvent(e);
                    if (e.isConsumed()) {
                        if ((e instanceof FocusEvent) && focusLog.isLoggable(PlatformLogger.Level.FINEST)) {
                            focusLog.finest("3579: Skipping " + e);
                        }
                        return;
View Full Code Here

Examples of java.awt.im.InputContext.dispatchEvent()

            if (isFocusOwner()) {
                InputContext inputContext = getInputContext();
                if (inputContext != null) {
                    FocusEvent focusGainedEvent =
                        new FocusEvent(this, FocusEvent.FOCUS_GAINED);
                    inputContext.dispatchEvent(focusGainedEvent);
                }
            }

            eventMask |= AWTEvent.INPUT_METHODS_ENABLED_MASK;
        } else {
View Full Code Here

Examples of java.awt.im.InputContext.dispatchEvent()

         (e instanceof InputEvent) || (e instanceof FocusEvent)) {
    InputContext inputContext = getInputContext();


    if (inputContext != null) {
        inputContext.dispatchEvent(e);
        if (e.isConsumed()) {
      if (e instanceof FocusEvent && focusLog.isLoggable(Level.FINER)) {
          focusLog.finer("3579: Skipping " + e);
      }
      return;
View Full Code Here

Examples of java.awt.im.spi.InputMethod.dispatchEvent()

            // fall through

        default:
            if ((inputMethod != null) && (event instanceof InputEvent)) {
                inputMethod.dispatchEvent(event);
            }
        }
    }

    /**
 
View Full Code Here

Examples of javafx.event.EventDispatcher.dispatchEvent()

          if (mouseEvent.getButton() == MouseButton.SECONDARY ||
              (mouseEvent.getButton() == MouseButton.PRIMARY && mouseEvent.isControlDown())) {
            event.consume();
          }
        }
        return initial.dispatchEvent(event, tail);
      }
    });
   
    // make the new context menu including the clear option   
    MenuItem copySelected = new MenuItem("Copy");
View Full Code Here

Examples of javax.swing.JButton.dispatchEvent()

    button = (JButton)value;

    buttonEvent =
      (MouseEvent)SwingUtilities.convertMouseEvent(__table, e, button);
    button.dispatchEvent(buttonEvent);
   
    // This is necessary so that when a button is pressed and released
    // it gets rendered properly.  Otherwise, the button may still appear
    // pressed down when it has been released.
    __table.repaint();
View Full Code Here

Examples of javax.swing.JButton.dispatchEvent()

        if (value instanceof JButton)
        {
            button = (JButton) value;
            buttonEvent = (MouseEvent) SwingUtilities.convertMouseEvent(table, evt, button);
            button.dispatchEvent(buttonEvent);
            table.repaint();
        }
    }

    /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.