Class awt.FocusManager
All Packages This Package Previous Next
Class awt.FocusManager
java.lang.Object
|
+----awt.FocusManager
-
public class
FocusManager
-
extends Object
A class that distributes the focus to a set of focus clients.
In order to be able to call grabFocus, a DisplayItem should
register with the FocusManager using the addItem method.
-
See Also:
-
DisplayItem,
addItem,
grabFocus
-
Version:
-
1.6 31 Jan 1995
-
Author:
-
David Brown
-
diw
-
-
FocusManager(DisplayItemWindow)
-
-
addItem(DisplayItem)
-
Add a DisplayItem to our list.
-
currentFocusItem()
-
Return the item which currently has the input focus,
or 0 if there is no item with the input focus.
-
grabFocus(DisplayItem)
-
An item sends us this message to ask for the focus
-
nextFocus()
-
Advance the focus to the next item in the list
-
prevFocus()
-
Back-up the focus to the previous item in the list
-
resetFocus()
-
Reset the focus to the first item in the list
diw
public DisplayItemWindow diw
FocusManager
public FocusManager(DisplayItemWindow theDiw)
addItem
public void addItem(DisplayItem item)
-
Add a DisplayItem to our list. This should be an item
that's interested in getting keyboard events, and should
do something useful with got/lostFocus() events...
grabFocus
public void grabFocus(DisplayItem item)
-
An item sends us this message to ask for the focus
nextFocus
public void nextFocus()
-
Advance the focus to the next item in the list
prevFocus
public void prevFocus()
-
Back-up the focus to the previous item in the list
resetFocus
public void resetFocus()
-
Reset the focus to the first item in the list
currentFocusItem
public DisplayItem currentFocusItem()
-
Return the item which currently has the input focus,
or 0 if there is no item with the input focus.
All Packages This Package Previous Next