Save This Page
Home » apache-harmony-6.0-src-r917296-snapshot » java » awt » [javadoc | source]
java.awt
abstract public class: KeyboardFocusManager [javadoc | source]
java.lang.Object
   java.awt.KeyboardFocusManager

All Implemented Interfaces:
    KeyEventDispatcher, KeyEventPostProcessor

Direct Known Subclasses:
    DelegatingDefaultFocusManager, DefaultKeyboardFocusManager, DefaultFocusManager, FocusManager

Field Summary
public static final  int FORWARD_TRAVERSAL_KEYS     
public static final  int BACKWARD_TRAVERSAL_KEYS     
public static final  int UP_CYCLE_TRAVERSAL_KEYS     
public static final  int DOWN_CYCLE_TRAVERSAL_KEYS     
static final  int[] compTraversalIDs     
static final  int[] contTraversalIDs     
static  Component focusOwner     
static  Component actualFocusOwner     
static  Window activeWindow     
static  Window focusedWindow     
static  Window actualFocusedWindow     
static final  Set<AWTKeyStroke> DEFAULT_FWD_KS     
static final  Set<AWTKeyStroke> DEFAULT_BWD_KS     
static final  Set<AWTKeyStroke> EMPTY_UNMOD_SET     
static final  String[] TK_NAMES     
Constructor:
 public KeyboardFocusManager() 
Method from java.awt.KeyboardFocusManager Summary:
addKeyEventDispatcher,   addKeyEventPostProcessor,   addPropertyChangeListener,   addPropertyChangeListener,   addVetoableChangeListener,   addVetoableChangeListener,   checkKeyStrokes,   checkTraversalKeyId,   checkTraversalKeysID,   clearGlobalFocusOwner,   dequeueKeyEvents,   discardKeyEvents,   dispatchEvent,   dispatchKeyEvent,   downFocusCycle,   downFocusCycle,   enqueueKeyEvents,   firePropertyChange,   fireVetoableChange,   focusNextComponent,   focusNextComponent,   focusPreviousComponent,   focusPreviousComponent,   getActiveWindow,   getCurrentFocusCycleRoot,   getCurrentKeyboardFocusManager,   getDefaultFocusTraversalKeys,   getDefaultFocusTraversalPolicy,   getFocusOwner,   getFocusedWindow,   getGlobalActiveWindow,   getGlobalCurrentFocusCycleRoot,   getGlobalFocusOwner,   getGlobalFocusedWindow,   getGlobalPermanentFocusOwner,   getKeyEventDispatchers,   getKeyEventPostProcessors,   getOwningFrame,   getPermanentFocusOwner,   getPropertyChangeListeners,   getPropertyChangeListeners,   getVetoableChangeListeners,   getVetoableChangeListeners,   postProcessKeyEvent,   postWindowEvent,   processKeyEvent,   redispatchEvent,   removeKeyEventDispatcher,   removeKeyEventPostProcessor,   removePropertyChangeListener,   removePropertyChangeListener,   removeVetoableChangeListener,   removeVetoableChangeListener,   requestFocus,   requestFocus,   requestFocusInWindow,   setCurrentKeyboardFocusManager,   setDefaultFocusTraversalKeys,   setDefaultFocusTraversalPolicy,   setFocus,   setFocusTraversalKeys,   setGlobalActiveWindow,   setGlobalCurrentFocusCycleRoot,   setGlobalFocusOwner,   setGlobalFocusedWindow,   setGlobalPermanentFocusOwner,   upFocusCycle,   upFocusCycle
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.KeyboardFocusManager Detail:
 public  void addKeyEventDispatcher(KeyEventDispatcher dispatcher) 
 public  void addKeyEventPostProcessor(KeyEventPostProcessor processor) 
 public  void addPropertyChangeListener(PropertyChangeListener listener) 
 public  void addPropertyChangeListener(String propertyName,
    PropertyChangeListener listener) 
 public  void addVetoableChangeListener(VetoableChangeListener listener) 
 public  void addVetoableChangeListener(String propertyName,
    VetoableChangeListener listener) 
 static  void checkKeyStrokes(int[] traversalIDs,
    Map<AWTKeyStroke> traversalKeys,
    Integer kId,
    Set<AWTKeyStroke> keystrokes) 
 static  void checkTraversalKeyId(int id,
    int maxValue) 
 static  void checkTraversalKeysID(Map<?, ?> keysMap,
    Integer id) 
 public  void clearGlobalFocusOwner() 
 abstract protected  void dequeueKeyEvents(long a0,
    Component a1)
 abstract protected  void discardKeyEvents(Component a0)
 abstract public boolean dispatchEvent(AWTEvent a0)
 abstract public boolean dispatchKeyEvent(KeyEvent a0)
 public final  void downFocusCycle() 
 abstract public  void downFocusCycle(Container a0)
 abstract protected  void enqueueKeyEvents(long a0,
    Component a1)
 protected  void firePropertyChange(String propertyName,
    Object oldValue,
    Object newValue) 
 protected  void fireVetoableChange(String propertyName,
    Object oldValue,
    Object newValue) throws PropertyVetoException 
 public final  void focusNextComponent() 
 abstract public  void focusNextComponent(Component a0)
 public final  void focusPreviousComponent() 
 abstract public  void focusPreviousComponent(Component a0)
 public Window getActiveWindow() 
 public Container getCurrentFocusCycleRoot() 
 public static KeyboardFocusManager getCurrentKeyboardFocusManager() 
 public Set<AWTKeyStroke> getDefaultFocusTraversalKeys(int id) 
 public FocusTraversalPolicy getDefaultFocusTraversalPolicy() 
 public Component getFocusOwner() 
 public Window getFocusedWindow() 
 protected Window getGlobalActiveWindow() throws SecurityException 
 protected Container getGlobalCurrentFocusCycleRoot() throws SecurityException 
 protected Component getGlobalFocusOwner() throws SecurityException 
 protected Window getGlobalFocusedWindow() throws SecurityException 
 protected Component getGlobalPermanentFocusOwner() throws SecurityException 
 protected List<KeyEventDispatcher> getKeyEventDispatchers() 
 protected List<KeyEventPostProcessor> getKeyEventPostProcessors() 
 Frame getOwningFrame(Window w) 
 public Component getPermanentFocusOwner() 
 public PropertyChangeListener[] getPropertyChangeListeners() 
 public PropertyChangeListener[] getPropertyChangeListeners(String propertyName) 
 public VetoableChangeListener[] getVetoableChangeListeners() 
 public VetoableChangeListener[] getVetoableChangeListeners(String propertyName) 
 abstract public boolean postProcessKeyEvent(KeyEvent a0)
 boolean postWindowEvent(Window wnd,
    Window opposite,
    boolean focus) 
    all focus related WindowEvents are posted to EventQueue and internal(non-Java) focus state is immediately updated (Java focus state is updated only right before actually dispatching these events to components) Activation events are also posted from here, so KeyboardFocusManager(if replaced by user) doesn't have to care about "synthesizing" them, as opposed to focus spec.
 abstract public  void processKeyEvent(Component a0,
    KeyEvent a1)
 public final  void redispatchEvent(Component target,
    AWTEvent e) 
 public  void removeKeyEventDispatcher(KeyEventDispatcher dispatcher) 
 public  void removeKeyEventPostProcessor(KeyEventPostProcessor processor) 
 public  void removePropertyChangeListener(PropertyChangeListener listener) 
 public  void removePropertyChangeListener(String propertyName,
    PropertyChangeListener listener) 
 public  void removeVetoableChangeListener(VetoableChangeListener listener) 
 public  void removeVetoableChangeListener(String propertyName,
    VetoableChangeListener listener) 
 boolean requestFocus(Component c,
    boolean temporary,
    boolean crossWindow,
    boolean callCB) 
 boolean requestFocus(Component c,
    Window wnd,
    boolean temporary,
    boolean crossWindow,
    boolean callCB) 
    internal "requestFocus": posts all necessary Focus & focus-related Window events to eventQueue and updates internal focus state. When called from Component's request focus callCB is set to true, when called directly from native event dispatching code - to false.
 boolean requestFocusInWindow(Window wnd,
    boolean callCB) 
    set focus to the appropriate child Component of the given Window as if it is the focused Window
 public static  void setCurrentKeyboardFocusManager(KeyboardFocusManager newManager) throws SecurityException 
 public  void setDefaultFocusTraversalKeys(int id,
    Set<AWTKeyStroke> keystrokes) 
 public  void setDefaultFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy) 
  void setFocus(Component c,
    Window wnd,
    boolean focus,
    Component opposite,
    boolean temporary,
    boolean callCB) 
    all focus related events are posted to EventQueue and internal(non-Java) focus state is updated to be able to post some events correctly As opposed to focus spec user-defined KeyboardFocusManager doesn't have to take care about proper event ordering: events are posted in proper order
 static  void setFocusTraversalKeys(int id,
    Set<AWTKeyStroke> keystrokes,
    Set<AWTKeyStroke>[] traversalKeys) 
 protected  void setGlobalActiveWindow(Window activeWindow) 
 public  void setGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot) 
 protected  void setGlobalFocusOwner(Component focusOwner) 
 protected  void setGlobalFocusedWindow(Window focusedWindow) 
 protected  void setGlobalPermanentFocusOwner(Component permanentFocusOwner) 
 public final  void upFocusCycle() 
 abstract public  void upFocusCycle(Component a0)