Lines Matching refs:to

8  * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
75 * The KeyboardFocusManager is both a centralized location for client code to
77 * dispatcher for all FocusEvents, WindowEvents related to focus, and
92 * How to Use the Focus Subsystem</a>,
237 * the AWTPermission "replaceKeyboardFocusManager" in order to replace the
246 * to replace the current KeyboardFocusManager
363 * root, then it may be ambiguous as to which Components represent the next
364 * and previous Components to focus during normal focus traversal. In that
365 * case, the current focus cycle root is used to differentiate among the
383 * via a call to <code>addKeyEventDispatcher</code>. If no other
384 * KeyEventDispatchers are registered, this field may be null or refer to
392 * re-registered via a call to <code>addKeyEventPostProcessor</code>.
394 * null or refer to a List of length 0.
399 * Maps Windows to those Windows' most recent focus owners.
409 * We cache the permission used to verify that the calling thread is
410 * permitted to access the global focus state.
468 * user. KeyEvents which map to the focus owner's focus traversal keys will
494 * generated by the user. KeyEvents which map to the focus owner's focus
520 * user. KeyEvents which map to the focus owner's focus traversal keys will
525 * This method does not actually set the focus to the specified Component.
526 * It merely stores the value to be subsequently returned by
528 * or <code>Component.requestFocusInWindow()</code> to change the focus
529 * owner, subject to platform limitations.
589 * a new Component to receive focus, or a Component is given focus
590 * explicitly via a call to <code>requestFocus()</code>. This operation
632 * defined as the last Component in an application to receive a permanent
659 * owner is defined as the last Component in an application to receive a
687 * last Component in an application to receive a permanent FOCUS_GAINED
693 * This method does not actually set the focus to the specified Component.
694 * It merely stores the value to be subsequently returned by
697 * <code>Component.requestFocusInWindow()</code> to change the focus owner,
698 * subject to platform limitations.
790 * specified Window to focus is not a focusable Window.
793 * native windowing system is concerned. It merely stores the value to be
796 * <code>Component.requestFocusInWindow()</code> to change the focused
797 * Window, subject to platform limitations.
895 * native windowing system is concerned. It merely stores the value to be
898 * <code>Component.requestFocusInWindow()</code>to change the active
899 * Window, subject to platform limitations.
916 focusLog.finer("Setting global active window to " + activeWindow + ", old active " + oldActiveWindow);
935 * use this value on their creation to initialize their own focus traversal
936 * policy by explicit call to Container.setFocusTraversalPolicy.
949 * use this value on their creation to initialize their own focus traversal
950 * policy by explicit call to Container.setFocusTraversalPolicy.
1033 * however, all <code>KeyEvent</code>s related to the focus
1036 * to any <code>Component</code>. It is a runtime error to
1038 * mapping to a focus traversal operation, or to map the same event to
1063 * to another default focus traversal operation
1089 //According to javadoc this method should throw IAE instead of ClassCastException
1091 throw new IllegalArgumentException("object is expected to be AWTKeyStroke");
1096 throw new IllegalArgumentException("focus traversal keys cannot map to KEY_TYPED events");
1099 // Check to see if key already maps to another traversal
1152 // Okay to return Set directly because it is an unmodifiable view
1159 * a focus cycle root, then it may be ambiguous as to which Components
1160 * represent the next and previous Components to focus during normal focus
1161 * traversal. In that case, the current focus cycle root is used to
1164 * This method is intended to be used only by KeyboardFocusManagers and
1188 * is itself a focus cycle root, then it may be ambiguous as to which
1189 * Components represent the next and previous Components to focus during
1191 * used to differentiate among the possibilities.
1215 * cycle root, then it may be ambiguous as to which Components represent
1216 * the next and previous Components to focus during normal focus traversal.
1217 * In that case, the current focus cycle root is used to differentiate
1220 * This method is intended to be used only by KeyboardFocusManagers and
1244 * Adds a PropertyChangeListener to the listener list. The listener is
1269 * @param listener the PropertyChangeListener to be added
1287 * should be used to remove the PropertyChangeListeners that were
1292 * @param listener the PropertyChangeListener to be removed
1329 * Adds a PropertyChangeListener to the listener list for a specific
1355 * @param listener the PropertyChangeListener to be added
1375 * property. This method should be used to remove PropertyChangeListeners
1381 * @param listener the PropertyChangeListener to be removed
1418 * Fires a PropertyChangeEvent in response to a change in a bound property.
1419 * The event will be delivered to all registered PropertyChangeListeners.
1439 * Adds a VetoableChangeListener to the listener list. The listener is
1450 * @param listener the VetoableChangeListener to be added
1469 * should be used to remove the VetoableChangeListeners that were
1474 * @param listener the VetoableChangeListener to be removed
1511 * Adds a VetoableChangeListener to the listener list for a specific
1523 * @param listener the VetoableChangeListener to be added
1544 * property. This method should be used to remove VetoableChangeListeners
1550 * @param listener the VetoableChangeListener to be removed
1588 * Fires a PropertyChangeEvent in response to a change in a vetoable
1589 * property. The event will be delivered to all registered
1592 * VetoableChangeListeners to the old value and the exception is then
1619 * Adds a KeyEventDispatcher to this KeyboardFocusManager's dispatcher
1625 * <code>dispatchKeyEvent</code> method. There is no limit to the total
1626 * number of KeyEventDispatchers which can be added, nor to the number of
1637 * @param dispatcher the KeyEventDispatcher to add to the dispatcher chain
1652 * Removes a KeyEventDispatcher which was previously added to this
1655 * call to <code>addKeyEventDispatcher</code>.
1667 * @param dispatcher the KeyEventDispatcher to remove from the dispatcher
1684 * explicitly re-registered via a call to
1686 * registered, implementations are free to return null or a List of length
1703 * Adds a KeyEventPostProcessor to this KeyboardFocusManager's post-
1704 * processor chain. After a KeyEvent has been dispatched to and handled by
1711 * <code>postProcessKeyEvent</code> method. There is no limit to the the
1712 * total number of KeyEventPostProcessors that can be added, nor to the
1724 * @param processor the KeyEventPostProcessor to add to the post-processor
1757 * @param processor the KeyEventPostProcessor to remove from the post-
1775 * explicitly added via a call to <code>addKeyEventPostProcessor</code>. If
1776 * no KeyEventPostProcessors are registered, implementations are free to
1806 // ATTN: component has a strong reference to window via chain
1807 // of Component.parent fields. Since WeakHasMap refers to its
1808 // values strongly, we need to break the strong link from the
1809 // value (component) back to its key (window).
1860 * FocusEvents, all WindowEvents related to focus, and all KeyEvents.
1864 * done using <code>redispatchEvent</code> to prevent the AWT event
1867 * then the AWT event dispatcher will attempt to dispatch the event itself.
1869 * @param e the AWTEvent to be dispatched
1883 * instead of <code>target.dispatchEvent(e)</code> to dispatch an event.
1885 * This method is intended to be used only by KeyboardFocusManagers and
1888 * @param target the Component to which the event should be dispatched
1889 * @param e the event to dispatch
1904 * <code>dispatchEvent</code> may try to dispatch the KeyEvent itself, or
1919 * map to an AWT <code>MenuShortcut</code> by consuming the event
1922 * @param e the KeyEvent to post-process
1923 * @return <code>true</code> to indicate that no other
1947 * Called by the AWT to notify the KeyboardFocusManager that it should
1952 * the KeyboardFocusManager to delay dispatching of KeyEvents with
1970 * Called by the AWT to notify the KeyboardFocusManager that it should
1972 * enqueued because of a call to <code>enqueueKeyEvents</code> with the
1974 * to the current focus owner. If the given timestamp is less than zero,
1978 * @param after the timestamp specified in the call to
1980 * @param untilFocused the Component specified in the call to
1989 * Called by the AWT to notify the KeyboardFocusManager that it should
1991 * enqueued because of one or more calls to <code>enqueueKeyEvents</code>
1994 * @param comp the Component specified in one or more calls to
2023 * is set to aComponent's focus cycle root, and the current focus cycle
2024 * root is set to the new focus owner's focus cycle root. If, however,
2026 * owner is set to the Window's default Component to focus, and the current
2036 * aContainer is a focus cycle root, then the focus owner is set to
2037 * aContainer's default Component to focus, and the current focus cycle
2038 * root is set to aContainer. If aContainer is not a focus cycle root, then
2068 * owner. Typically, the new focus owner is set to the current focus
2069 * owner's focus cycle root, and the current focus cycle root is set to the
2072 * set to the focus cycle root's default Component to focus, and the
2085 * focus cycle root. Typically, the focus owner is set to the current focus
2086 * owner's default Component to focus, and the current focus cycle root is
2087 * set to the current focus owner. If the current focus owner is not a
2099 * Dumps the list of focus requests to stderr
2232 // Focus transfers from a lightweight child back to the
2320 * An implementation must ensure that calls to this method and native
2322 * of the focus request list may be incorrect, leading to errors in the
2341 // Focus transfers from a lightweight child back to the
2416 // descendant to the heavyweight's list of pending
2430 // the second to last HeavyweightFocusRequest on the queue iff the
2432 // there is no second to last HeavyweightFocusRequest, null is an
2467 * owner to null. On these platforms, the obvious choice is to set the
2468 * focus owner to the focus proxy of the active Window.
2471 // need to call this out of synchronized block to avoid possible deadlock
2530 * Used to process exceptions in dispatching focus event (in focusLost/focusGained callbacks).
2532 * @param comp the component to dispatch the event to
2533 * @param event the event to dispatch to the component
2599 * We allow to trigger restoreFocus() in the dispatching process
2600 * only if we have the last request to dispatch. If the last request
2601 * fails, focus will be restored to either the component of the last
2602 * previously succedded request, or to to the focus owner that was
2657 // not expect. We need to clearFocusRequestList() and patch up
2696 // if source is equal to first lightweight
2707 // Focus change as a result of a known call to requestFocus(),
2720 * to be lost. And so, we keep new focus owner
2721 * to determine synthetic FOCUS_LOST event which will be
2783 // Call to KeyboardFocusManager.clearGlobalFocusOwner()
2790 // Otherwise, fall through to failure case below
2810 // Focus change as a result of a known call to requestFocus(),
2902 * This method is not intended to be overridden by KFM's.
2960 private static boolean focusedWindowChanged(Component to, Component from) {
2961 Window wto = SunToolkit.getContainingWindow(to);
2975 private static boolean isTemporary(Component to, Component from) {
2976 Window wto = SunToolkit.getContainingWindow(to);
3001 // Accessor to private field isProxyActive of KeyEvent