src/share/classes/java/awt/KeyboardFocusManager.java

Print this page




2017      *        the current event has no timestamp, or the AWT cannot determine
2018      *        which event is currently being handled
2019      * @param untilFocused Component which should receive a FOCUS_GAINED event
2020      *        before any pending KeyEvents
2021      * @see #dequeueKeyEvents
2022      * @see #discardKeyEvents
2023      */
2024     protected abstract void enqueueKeyEvents(long after,
2025                                              Component untilFocused);
2026 
2027     /**
2028      * Called by the AWT to notify the KeyboardFocusManager that it should
2029      * cancel delayed dispatching of KeyEvents. All KeyEvents which were
2030      * enqueued because of a call to <code>enqueueKeyEvents</code> with the
2031      * same timestamp and Component should be released for normal dispatching
2032      * to the current focus owner. If the given timestamp is less than zero,
2033      * the outstanding enqueue request for the given Component with the <b>
2034      * oldest</b> timestamp (if any) should be cancelled.
2035      *
2036      * @param after the timestamp specified in the call to
2037      *        <code>enqueueKeyEvents</code>, or any value < 0
2038      * @param untilFocused the Component specified in the call to
2039      *        <code>enqueueKeyEvents</code>
2040      * @see #enqueueKeyEvents
2041      * @see #discardKeyEvents
2042      */
2043     protected abstract void dequeueKeyEvents(long after,
2044                                              Component untilFocused);
2045 
2046     /**
2047      * Called by the AWT to notify the KeyboardFocusManager that it should
2048      * cancel delayed dispatching of KeyEvents. All KeyEvents which were
2049      * enqueued because of one or more calls to <code>enqueueKeyEvents</code>
2050      * with the same Component should be discarded.
2051      *
2052      * @param comp the Component specified in one or more calls to
2053      *        <code>enqueueKeyEvents</code>
2054      * @see #enqueueKeyEvents
2055      * @see #dequeueKeyEvents
2056      */
2057     protected abstract void discardKeyEvents(Component comp);




2017      *        the current event has no timestamp, or the AWT cannot determine
2018      *        which event is currently being handled
2019      * @param untilFocused Component which should receive a FOCUS_GAINED event
2020      *        before any pending KeyEvents
2021      * @see #dequeueKeyEvents
2022      * @see #discardKeyEvents
2023      */
2024     protected abstract void enqueueKeyEvents(long after,
2025                                              Component untilFocused);
2026 
2027     /**
2028      * Called by the AWT to notify the KeyboardFocusManager that it should
2029      * cancel delayed dispatching of KeyEvents. All KeyEvents which were
2030      * enqueued because of a call to <code>enqueueKeyEvents</code> with the
2031      * same timestamp and Component should be released for normal dispatching
2032      * to the current focus owner. If the given timestamp is less than zero,
2033      * the outstanding enqueue request for the given Component with the <b>
2034      * oldest</b> timestamp (if any) should be cancelled.
2035      *
2036      * @param after the timestamp specified in the call to
2037      *        <code>enqueueKeyEvents</code>, or any value &lt; 0
2038      * @param untilFocused the Component specified in the call to
2039      *        <code>enqueueKeyEvents</code>
2040      * @see #enqueueKeyEvents
2041      * @see #discardKeyEvents
2042      */
2043     protected abstract void dequeueKeyEvents(long after,
2044                                              Component untilFocused);
2045 
2046     /**
2047      * Called by the AWT to notify the KeyboardFocusManager that it should
2048      * cancel delayed dispatching of KeyEvents. All KeyEvents which were
2049      * enqueued because of one or more calls to <code>enqueueKeyEvents</code>
2050      * with the same Component should be discarded.
2051      *
2052      * @param comp the Component specified in one or more calls to
2053      *        <code>enqueueKeyEvents</code>
2054      * @see #enqueueKeyEvents
2055      * @see #dequeueKeyEvents
2056      */
2057     protected abstract void discardKeyEvents(Component comp);