Method Summary |
|
public void | addKeyEventDispatcher(KeyEventDispatcher dispatcher) |
public void | addKeyEventPostProcessor(KeyEventPostProcessor processor) |
public void | addPropertyChangeListener(PropertyChangeListener listener) |
public void | addVetoableChangeListener(VetoableChangeListener listener) |
public void | clearGlobalFocusOwner() |
static void | clearMostRecentFocusOwner(Component comp) |
abstract void | dequeueKeyEvents(long after, Component untilFocused) |
abstract void | discardKeyEvents(Component comp) |
abstract public boolean | dispatchEvent(AWTEvent e) |
abstract public boolean | dispatchKeyEvent(KeyEvent e) |
abstract public void | downFocusCycle(Container aContainer) |
final public void | downFocusCycle() |
abstract void | enqueueKeyEvents(long after, Component untilFocused) |
void | firePropertyChange(String propertyName, Object oldValue, Object newValue) |
void | fireVetoableChange(String propertyName, Object oldValue, Object newValue) |
abstract public void | focusNextComponent(Component aComponent) |
final public void | focusNextComponent() |
abstract public void | focusPreviousComponent(Component aComponent) |
final public void | focusPreviousComponent() |
public Window | getActiveWindow() |
static Window | getContainingWindow(Component comp) |
public Container | getCurrentFocusCycleRoot() |
public static KeyboardFocusManager | getCurrentKeyboardFocusManager() |
static synchronized KeyboardFocusManager | getCurrentKeyboardFocusManager(AppContext appcontext) |
final SequencedEvent | getCurrentSequencedEvent() |
public Set | getDefaultFocusTraversalKeys(int id) |
public synchronized FocusTraversalPolicy | getDefaultFocusTraversalPolicy() |
public Component | getFocusOwner() |
public Window | getFocusedWindow() |
Window | getGlobalActiveWindow() |
Container | getGlobalCurrentFocusCycleRoot() |
Component | getGlobalFocusOwner() |
Window | getGlobalFocusedWindow() |
Component | getGlobalPermanentFocusOwner() |
synchronized java.util.List | getKeyEventDispatchers() |
java.util.List | getKeyEventPostProcessors() |
static synchronized Component | getMostRecentFocusOwner(Window window) |
native static Component | getNativeFocusOwner() |
native static Window | getNativeFocusedWindow() |
public Component | getPermanentFocusOwner() |
public synchronized PropertyChangeListener[] | getPropertyChangeListeners() |
public synchronized VetoableChangeListener[] | getVetoableChangeListeners() |
static Set | initFocusTraversalKeysSet(String value, Set targetSet) |
static Window | markClearGlobalFocusOwner() Returns the Window which will be active after processing this request,
or null if this is a duplicate request. |
abstract public boolean | postProcessKeyEvent(KeyEvent e) |
static void | processCurrentLightweightRequests() |
abstract public void | processKeyEvent(Component focusedComponent, KeyEvent e) |
final public void | redispatchEvent(Component target, AWTEvent e) |
static boolean | removeFirstRequest() |
static void | removeFocusRequest(Component component) |
public void | removeKeyEventDispatcher(KeyEventDispatcher dispatcher) |
public void | removeKeyEventPostProcessor(KeyEventPostProcessor processor) |
static void | removeLastFocusRequest(Component heavyweight) |
public void | removePropertyChangeListener(PropertyChangeListener listener) |
public void | removeVetoableChangeListener(VetoableChangeListener listener) |
int | requestCount() |
static AWTEvent | retargetFocusEvent(AWTEvent event) |
static FocusEvent | retargetFocusGained(FocusEvent fe) |
static FocusEvent | retargetFocusLost(FocusEvent fe) |
static FocusEvent | retargetUnexpectedFocusEvent(FocusEvent fe) |
final void | setCurrentSequencedEvent(SequencedEvent current) |
public void | setDefaultFocusTraversalKeys(int id, Set keystrokes) |
public void | setDefaultFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy) |
void | setGlobalActiveWindow(Window activeWindow) |
void | setGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot) |
void | setGlobalFocusOwner(Component focusOwner) |
void | setGlobalFocusedWindow(Window focusedWindow) |
void | setGlobalPermanentFocusOwner(Component permanentFocusOwner) |
static void | setMostRecentFocusOwner(Component component) |
static synchronized void | setMostRecentFocusOwner(Window window, Component component) |
static int | shouldNativelyFocusHeavyweight(Component heavyweight, Component descendant, boolean temporary, boolean focusedWindowChangeAllowed, long time) Indicates whether the native implementation should proceed with a
pending, native focus request. |
abstract public void | upFocusCycle(Component aComponent) |
final public void | upFocusCycle() |
shouldNativelyFocusHeavyweight |
static int shouldNativelyFocusHeavyweight(Component heavyweight, Component descendant, boolean temporary, boolean focusedWindowChangeAllowed, long time)(Code) |
| Indicates whether the native implementation should proceed with a
pending, native focus request. Before changing the focus at the native
level, the AWT implementation should always call this function for
permission. This function will reject the request if a duplicate request
preceded it, or if the specified heavyweight Component already owns the
focus and no native focus changes are pending. Otherwise, the request
will be approved and the focus request list will be updated so that,
if necessary, the proper descendant will be focused when the
corresponding FOCUS_GAINED event on the heavyweight is received.
An implementation must ensure that calls to this method and native
focus changes are atomic. If this is not guaranteed, then the ordering
of the focus request list may be incorrect, leading to errors in the
type-ahead mechanism. Typically this is accomplished by only calling
this function from the native event pumping thread, or by holding a
global, native lock during invocation.
|