39 |
package java.awt; |
package java.awt; |
40 |
|
|
41 |
import java.applet.Applet; |
import java.applet.Applet; |
42 |
|
import java.awt.FocusTraversalPolicy; |
43 |
import java.awt.event.FocusEvent; |
import java.awt.event.FocusEvent; |
44 |
import java.awt.event.KeyEvent; |
import java.awt.event.KeyEvent; |
45 |
import java.awt.event.WindowEvent; |
import java.awt.event.WindowEvent; |
214 |
currentFocusOwners */ |
currentFocusOwners */ |
215 |
private static Map currentFocusCycleRoots = new HashMap (); |
private static Map currentFocusCycleRoots = new HashMap (); |
216 |
|
|
217 |
/** The default {@link FocusTraveralPolicy} that focus-managing |
/** The default {@link FocusTraversalPolicy} that focus-managing |
218 |
{@link Container}s will use to define their initial focus |
{@link Container}s will use to define their initial focus |
219 |
traversal policy. */ |
traversal policy. */ |
220 |
private FocusTraversalPolicy defaultPolicy; |
private FocusTraversalPolicy defaultPolicy; |
1365 |
* |
* |
1366 |
* @return a global object set by the current ThreadGroup, or null |
* @return a global object set by the current ThreadGroup, or null |
1367 |
* |
* |
1368 |
* @see getFocusOwner |
* @see #getFocusOwner() |
1369 |
* @see getPermanentFocusOwner |
* @see #getPermanentFocusOwner() |
1370 |
* @see getFocusedWindow |
* @see #getFocusedWindow() |
1371 |
* @see getActiveWindow |
* @see #getActiveWindow() |
1372 |
* @see getCurrentFocusCycleRoot |
* @see #getCurrentFocusCycleRoot() |
1373 |
*/ |
*/ |
1374 |
private Object getObject (Map globalMap) |
private Object getObject (Map globalMap) |
1375 |
{ |
{ |
1389 |
* @throws SecurityException if this is not the keyboard focus |
* @throws SecurityException if this is not the keyboard focus |
1390 |
* manager associated with the current {@link java.lang.ThreadGroup} |
* manager associated with the current {@link java.lang.ThreadGroup} |
1391 |
* |
* |
1392 |
* @see getGlobalFocusOwner |
* @see #getGlobalFocusOwner() |
1393 |
* @see getGlobalPermanentFocusOwner |
* @see #getGlobalPermanentFocusOwner() |
1394 |
* @see getGlobalFocusedWindow |
* @see #getGlobalFocusedWindow() |
1395 |
* @see getGlobalActiveWindow |
* @see #getGlobalActiveWindow() |
1396 |
* @see getGlobalCurrentFocusCycleRoot |
* @see #getGlobalCurrentFocusCycleRoot() |
1397 |
*/ |
*/ |
1398 |
private Object getGlobalObject (Map globalMap) |
private Object getGlobalObject (Map globalMap) |
1399 |
{ |
{ |
1433 |
* @param newObject the object to set |
* @param newObject the object to set |
1434 |
* @param property the property that will change |
* @param property the property that will change |
1435 |
* |
* |
1436 |
* @see setGlobalFocusOwner |
* @see #setGlobalFocusOwner(Component) |
1437 |
* @see setGlobalPermanentFocusOwner |
* @see #setGlobalPermanentFocusOwner(Component) |
1438 |
* @see setGlobalFocusedWindow |
* @see #setGlobalFocusedWindow(Window) |
1439 |
* @see setGlobalActiveWindow |
* @see #setGlobalActiveWindow(Window) |
1440 |
* @see setGlobalCurrentFocusCycleRoot |
* @see #setGlobalCurrentFocusCycleRoot(Container) |
1441 |
*/ |
*/ |
1442 |
private void setGlobalObject (Map globalMap, |
private void setGlobalObject (Map globalMap, |
1443 |
Object newObject, |
Object newObject, |