Java Doc for KeyboardFocusManager.java in  » Apache-Harmony-Java-SE » java-package » java » awt » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.awt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.KeyboardFocusManager

All known Subclasses:   java.awt.DefaultKeyboardFocusManager,
KeyboardFocusManager
abstract public class KeyboardFocusManager implements KeyEventDispatcher,KeyEventPostProcessor(Code)


Field Summary
final public static  intBACKWARD_TRAVERSAL_KEYS
    
final static  Set<AWTKeyStroke>DEFAULT_BWD_KS
    
final static  Set<AWTKeyStroke>DEFAULT_FWD_KS
    
final public static  intDOWN_CYCLE_TRAVERSAL_KEYS
    
final static  Set<AWTKeyStroke>EMPTY_UNMOD_SET
    
final public static  intFORWARD_TRAVERSAL_KEYS
    
final static  StringTK_NAMES
    
final public static  intUP_CYCLE_TRAVERSAL_KEYS
    
static  WindowactiveWindow
    
static  ComponentactualFocusOwner
    
static  WindowactualFocusedWindow
    
final static  int[]compTraversalIDs
    
final static  int[]contTraversalIDs
    
static  ComponentfocusOwner
    
static  WindowfocusedWindow
    

Constructor Summary
public  KeyboardFocusManager()
    

Method Summary
public  voidaddKeyEventDispatcher(KeyEventDispatcher dispatcher)
    
public  voidaddKeyEventPostProcessor(KeyEventPostProcessor processor)
    
public  voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener)
    
public  voidaddPropertyChangeListener(PropertyChangeListener listener)
    
public  voidaddVetoableChangeListener(VetoableChangeListener listener)
    
public  voidaddVetoableChangeListener(String propertyName, VetoableChangeListener listener)
    
static  voidcheckKeyStrokes(int[] traversalIDs, Map<Integer, Set<? extends AWTKeyStroke>> traversalKeys, Integer kId, Set<? extends AWTKeyStroke> keystrokes)
    
static  voidcheckTraversalKeyId(int id, int maxValue)
    
static  voidcheckTraversalKeysID(Map keysMap, Integer id)
    
public  voidclearGlobalFocusOwner()
    
abstract protected  voiddequeueKeyEvents(long a0, Component a1)
    
abstract protected  voiddiscardKeyEvents(Component a0)
    
abstract public  booleandispatchEvent(AWTEvent a0)
    
abstract public  booleandispatchKeyEvent(KeyEvent a0)
    
final public  voiddownFocusCycle()
    
abstract public  voiddownFocusCycle(Container a0)
    
abstract protected  voidenqueueKeyEvents(long a0, Component a1)
    
protected  voidfirePropertyChange(String propertyName, Object oldValue, Object newValue)
    
protected  voidfireVetoableChange(String propertyName, Object oldValue, Object newValue)
    
final public  voidfocusNextComponent()
    
abstract public  voidfocusNextComponent(Component a0)
    
final public  voidfocusPreviousComponent()
    
abstract public  voidfocusPreviousComponent(Component a0)
    
public  WindowgetActiveWindow()
    
public  ContainergetCurrentFocusCycleRoot()
    
public static  KeyboardFocusManagergetCurrentKeyboardFocusManager()
    
public  Set<AWTKeyStroke>getDefaultFocusTraversalKeys(int id)
    
public  FocusTraversalPolicygetDefaultFocusTraversalPolicy()
    
public  ComponentgetFocusOwner()
    
public  WindowgetFocusedWindow()
    
protected  WindowgetGlobalActiveWindow()
    
protected  ContainergetGlobalCurrentFocusCycleRoot()
    
protected  ComponentgetGlobalFocusOwner()
    
protected  WindowgetGlobalFocusedWindow()
    
protected  ComponentgetGlobalPermanentFocusOwner()
    
protected  List<KeyEventDispatcher>getKeyEventDispatchers()
    
protected  List<KeyEventPostProcessor>getKeyEventPostProcessors()
    
 FramegetOwningFrame(Window w)
    
public  ComponentgetPermanentFocusOwner()
    
public  PropertyChangeListener[]getPropertyChangeListeners()
    
public  PropertyChangeListener[]getPropertyChangeListeners(String propertyName)
    
public  VetoableChangeListener[]getVetoableChangeListeners(String propertyName)
    
public  VetoableChangeListener[]getVetoableChangeListeners()
    
abstract public  booleanpostProcessKeyEvent(KeyEvent a0)
    
 booleanpostWindowEvent(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  voidprocessKeyEvent(Component a0, KeyEvent a1)
    
final public  voidredispatchEvent(Component target, AWTEvent e)
    
public  voidremoveKeyEventDispatcher(KeyEventDispatcher dispatcher)
    
public  voidremoveKeyEventPostProcessor(KeyEventPostProcessor processor)
    
public  voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener)
    
public  voidremovePropertyChangeListener(PropertyChangeListener listener)
    
public  voidremoveVetoableChangeListener(VetoableChangeListener listener)
    
public  voidremoveVetoableChangeListener(String propertyName, VetoableChangeListener listener)
    
 booleanrequestFocus(Component c, boolean temporary, boolean crossWindow, boolean callCB)
    
 booleanrequestFocus(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.
 booleanrequestFocusInWindow(Window wnd, boolean callCB)
    
public static  voidsetCurrentKeyboardFocusManager(KeyboardFocusManager newManager)
    
public  voidsetDefaultFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)
    
public  voidsetDefaultFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy)
    
 voidsetFocus(Component c, Window wnd, boolean focus, Component opposite, boolean temporary, boolean callCB)
    
static  voidsetFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes, Set<AWTKeyStroke>[] traversalKeys)
    
protected  voidsetGlobalActiveWindow(Window activeWindow)
    
public  voidsetGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot)
    
protected  voidsetGlobalFocusOwner(Component focusOwner)
    
protected  voidsetGlobalFocusedWindow(Window focusedWindow)
    
protected  voidsetGlobalPermanentFocusOwner(Component permanentFocusOwner)
    
final public  voidupFocusCycle()
    
abstract public  voidupFocusCycle(Component a0)
    

Field Detail
BACKWARD_TRAVERSAL_KEYS
final public static int BACKWARD_TRAVERSAL_KEYS(Code)



DEFAULT_BWD_KS
final static Set<AWTKeyStroke> DEFAULT_BWD_KS(Code)



DEFAULT_FWD_KS
final static Set<AWTKeyStroke> DEFAULT_FWD_KS(Code)



DOWN_CYCLE_TRAVERSAL_KEYS
final public static int DOWN_CYCLE_TRAVERSAL_KEYS(Code)



EMPTY_UNMOD_SET
final static Set<AWTKeyStroke> EMPTY_UNMOD_SET(Code)



FORWARD_TRAVERSAL_KEYS
final public static int FORWARD_TRAVERSAL_KEYS(Code)



TK_NAMES
final static String TK_NAMES(Code)



UP_CYCLE_TRAVERSAL_KEYS
final public static int UP_CYCLE_TRAVERSAL_KEYS(Code)



activeWindow
static Window activeWindow(Code)



actualFocusOwner
static Component actualFocusOwner(Code)



actualFocusedWindow
static Window actualFocusedWindow(Code)



compTraversalIDs
final static int[] compTraversalIDs(Code)



contTraversalIDs
final static int[] contTraversalIDs(Code)



focusOwner
static Component focusOwner(Code)



focusedWindow
static Window focusedWindow(Code)




Constructor Detail
KeyboardFocusManager
public KeyboardFocusManager()(Code)




Method Detail
addKeyEventDispatcher
public void addKeyEventDispatcher(KeyEventDispatcher dispatcher)(Code)



addKeyEventPostProcessor
public void addKeyEventPostProcessor(KeyEventPostProcessor processor)(Code)



addPropertyChangeListener
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)



addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)



addVetoableChangeListener
public void addVetoableChangeListener(VetoableChangeListener listener)(Code)



addVetoableChangeListener
public void addVetoableChangeListener(String propertyName, VetoableChangeListener listener)(Code)



checkKeyStrokes
static void checkKeyStrokes(int[] traversalIDs, Map<Integer, Set<? extends AWTKeyStroke>> traversalKeys, Integer kId, Set<? extends AWTKeyStroke> keystrokes)(Code)



checkTraversalKeyId
static void checkTraversalKeyId(int id, int maxValue)(Code)



checkTraversalKeysID
static void checkTraversalKeysID(Map keysMap, Integer id)(Code)



clearGlobalFocusOwner
public void clearGlobalFocusOwner()(Code)



dequeueKeyEvents
abstract protected void dequeueKeyEvents(long a0, Component a1)(Code)



discardKeyEvents
abstract protected void discardKeyEvents(Component a0)(Code)



dispatchEvent
abstract public boolean dispatchEvent(AWTEvent a0)(Code)



dispatchKeyEvent
abstract public boolean dispatchKeyEvent(KeyEvent a0)(Code)



downFocusCycle
final public void downFocusCycle()(Code)



downFocusCycle
abstract public void downFocusCycle(Container a0)(Code)



enqueueKeyEvents
abstract protected void enqueueKeyEvents(long a0, Component a1)(Code)



firePropertyChange
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)



fireVetoableChange
protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException(Code)



focusNextComponent
final public void focusNextComponent()(Code)



focusNextComponent
abstract public void focusNextComponent(Component a0)(Code)



focusPreviousComponent
final public void focusPreviousComponent()(Code)



focusPreviousComponent
abstract public void focusPreviousComponent(Component a0)(Code)



getActiveWindow
public Window getActiveWindow()(Code)



getCurrentFocusCycleRoot
public Container getCurrentFocusCycleRoot()(Code)



getCurrentKeyboardFocusManager
public static KeyboardFocusManager getCurrentKeyboardFocusManager()(Code)



getDefaultFocusTraversalKeys
public Set<AWTKeyStroke> getDefaultFocusTraversalKeys(int id)(Code)



getDefaultFocusTraversalPolicy
public FocusTraversalPolicy getDefaultFocusTraversalPolicy()(Code)



getFocusOwner
public Component getFocusOwner()(Code)



getFocusedWindow
public Window getFocusedWindow()(Code)



getGlobalActiveWindow
protected Window getGlobalActiveWindow() throws SecurityException(Code)



getGlobalCurrentFocusCycleRoot
protected Container getGlobalCurrentFocusCycleRoot() throws SecurityException(Code)



getGlobalFocusOwner
protected Component getGlobalFocusOwner() throws SecurityException(Code)



getGlobalFocusedWindow
protected Window getGlobalFocusedWindow() throws SecurityException(Code)



getGlobalPermanentFocusOwner
protected Component getGlobalPermanentFocusOwner() throws SecurityException(Code)



getKeyEventDispatchers
protected List<KeyEventDispatcher> getKeyEventDispatchers()(Code)



getKeyEventPostProcessors
protected List<KeyEventPostProcessor> getKeyEventPostProcessors()(Code)



getOwningFrame
Frame getOwningFrame(Window w)(Code)



getPermanentFocusOwner
public Component getPermanentFocusOwner()(Code)



getPropertyChangeListeners
public PropertyChangeListener[] getPropertyChangeListeners()(Code)



getPropertyChangeListeners
public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)(Code)



getVetoableChangeListeners
public VetoableChangeListener[] getVetoableChangeListeners(String propertyName)(Code)



getVetoableChangeListeners
public VetoableChangeListener[] getVetoableChangeListeners()(Code)



postProcessKeyEvent
abstract public boolean postProcessKeyEvent(KeyEvent a0)(Code)



postWindowEvent
boolean postWindowEvent(Window wnd, Window opposite, boolean focus)(Code)
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. - true if focused Window changed



processKeyEvent
abstract public void processKeyEvent(Component a0, KeyEvent a1)(Code)



redispatchEvent
final public void redispatchEvent(Component target, AWTEvent e)(Code)



removeKeyEventDispatcher
public void removeKeyEventDispatcher(KeyEventDispatcher dispatcher)(Code)



removeKeyEventPostProcessor
public void removeKeyEventPostProcessor(KeyEventPostProcessor processor)(Code)



removePropertyChangeListener
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)



removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)(Code)



removeVetoableChangeListener
public void removeVetoableChangeListener(VetoableChangeListener listener)(Code)



removeVetoableChangeListener
public void removeVetoableChangeListener(String propertyName, VetoableChangeListener listener)(Code)



requestFocus
boolean requestFocus(Component c, boolean temporary, boolean crossWindow, boolean callCB)(Code)



requestFocus
boolean requestFocus(Component c, Window wnd, boolean temporary, boolean crossWindow, boolean callCB)(Code)
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.



requestFocusInWindow
boolean requestFocusInWindow(Window wnd, boolean callCB)(Code)
set focus to the appropriate child Component of the given Window as if it is the focused Window



setCurrentKeyboardFocusManager
public static void setCurrentKeyboardFocusManager(KeyboardFocusManager newManager) throws SecurityException(Code)



setDefaultFocusTraversalKeys
public void setDefaultFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)



setDefaultFocusTraversalPolicy
public void setDefaultFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy)(Code)



setFocus
void setFocus(Component c, Window wnd, boolean focus, Component opposite, boolean temporary, boolean callCB)(Code)
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



setFocusTraversalKeys
static void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes, Set<AWTKeyStroke>[] traversalKeys)(Code)



setGlobalActiveWindow
protected void setGlobalActiveWindow(Window activeWindow)(Code)



setGlobalCurrentFocusCycleRoot
public void setGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot)(Code)



setGlobalFocusOwner
protected void setGlobalFocusOwner(Component focusOwner)(Code)



setGlobalFocusedWindow
protected void setGlobalFocusedWindow(Window focusedWindow)(Code)



setGlobalPermanentFocusOwner
protected void setGlobalPermanentFocusOwner(Component permanentFocusOwner)(Code)



upFocusCycle
final public void upFocusCycle()(Code)



upFocusCycle
abstract public void upFocusCycle(Component a0)(Code)



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.