|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.pilots.html4.FocusManager
| Field Summary | |
protected Hashtable |
accesskeys
|
protected Vector |
cssboxes
|
protected DDocument |
doc
|
protected DocPane |
docPane
|
protected Point |
documentScrollPosition
|
protected Vector |
domnodes
|
static int |
DOWN
|
protected ice.pilots.html4.CSSLayout |
layout
|
static int |
LEFT
|
static int |
NEXT
|
protected ThePilot |
pilot
|
static int |
PREVIOUS
|
static int |
RIGHT
|
protected int |
theFocusedElement
|
static int |
UP
|
protected Dimension |
viewDimension
|
| Constructor Summary | |
FocusManager(DDocument d,
ice.pilots.html4.CSSLayout cl,
ThePilot p)
|
|
| Method Summary | |
protected int |
focusDefaultBox()
|
DNode |
getFocusedElement()
|
protected boolean |
globalDFM(int dir)
Direction-based focuschange across frames (global). |
protected boolean |
isDisabled(int elementno)
|
boolean |
isFrameFocused()
Used to determine if the frame itself has focus (i.e. |
protected boolean |
isOnScreen(Rectangle r)
Determines if the given rectangle is regarded visible on screen. |
protected boolean |
localDFM(int dir)
Direction-based focuschange within the frame (local). |
protected Object |
lookupAccesskey(Object key)
Tries to find a DOM node represented by the given accesskey |
protected void |
nextExternalFocus()
|
protected int |
nextFocus()
Process a nextFocus request. |
protected void |
previousExternalFocus()
|
protected int |
previousFocus()
Process a previousFocus request. |
protected void |
registerAccesskey(String key,
Object value)
Registers an accesskey which triggers focus of a given box. |
boolean |
requestFocus()
Requests the focus on the Toolkit-component which holds the focus by calling |
protected void |
setFocusedBox(DNode dnode)
Sets the focused node to be given DNode. |
protected void |
setFocusedBox(int boxno)
Sets the focused box to be the box with given internal number. |
void |
setFrameFocused(boolean v)
Used to signal that the frame associated with the focusmanager has focus. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int UP
public static final int DOWN
public static final int LEFT
public static final int RIGHT
public static final int NEXT
public static final int PREVIOUS
protected int theFocusedElement
protected Vector domnodes
protected Vector cssboxes
protected Hashtable accesskeys
protected DDocument doc
protected ice.pilots.html4.CSSLayout layout
protected ThePilot pilot
protected DocPane docPane
protected Point documentScrollPosition
protected Dimension viewDimension
| Constructor Detail |
public FocusManager(DDocument d,
ice.pilots.html4.CSSLayout cl,
ThePilot p)
| Method Detail |
public final void setFrameFocused(boolean v)
ComponentFactory.onComponentFocus()
v - true if this frame has gained focus, false otherwisepublic final boolean isFrameFocused()
protected boolean isOnScreen(Rectangle r)
protected int focusDefaultBox()
protected boolean localDFM(int dir)
dir - direction of desired focuschange
protected boolean globalDFM(int dir)
dir - direction of desired focuschange
protected void registerAccesskey(String key,
Object value)
key - Long object representing the charCode of the accesskeyvalue - DNode object representing the DOM node which should
be focused when the accesskey is pressedprotected Object lookupAccesskey(Object key)
key - Long object representing the charCode of the accesskey
protected void setFocusedBox(DNode dnode)
dnode - DOM node to give focusprotected void setFocusedBox(int boxno)
boxno - internal number of box to focusprotected boolean isDisabled(int elementno)
protected int nextFocus()
protected int previousFocus()
public DNode getFocusedElement()
public boolean requestFocus()
This method is currently only used bu the DocView in AWT mode, if a specific SystemProperty is set.
protected void previousExternalFocus()
protected void nextExternalFocus()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||