|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiKeyboardFocusManager
This class manages the assignment and traversal of keyboard and enter key focus to parts in a window. It also manages the forwarding of keyboard events to the part with keyboard focus and forwarding of enter key events to the part with enter key focus.
| Field Summary | |
static int |
Mi_KEYBOARD_FOCUS_ONLY_KEYBOARD_FOCUS_POLICY
|
static int |
Mi_KEYBOARD_FOCUS_THEN_MOUSE_KEYBOARD_FOCUS_POLICY
|
static int |
Mi_MOUSE_THEN_KEYBOARD_FOCUS_KEYBOARD_FOCUS_POLICY
|
| Constructor Summary | |
MiKeyboardFocusManager(MiWindow window)
Constructs a new MiKeyboardFocusManager. |
|
| Method Summary | |
void |
clearEnterKeyFocus()
Remove enter key focus from the part with the current keyboard focus, if any. |
void |
clearKeyboardFocus()
Remove keyboard focus from the part with the current keyboard focus, if any. |
MiPart |
getDefaultEnterKeyFocus()
Gets the default enter key focus. |
MiPart |
getDefaultKeyboardFocus()
Gets the default keyboard focus. |
MiPart |
getEnterKeyFocus()
Get the part with the current enter key focus, if any. |
MiPart |
getKeyboardFocus()
Get the part with the current keyboard focus, if any. |
int |
getKeyboardFocusPolicy()
Returns the keyboard focus policy. |
MiWindow |
getSubject()
Get the subject container within which this manages keyboard focus. |
void |
moveFocusToNext()
Advance the keyboard to the next valid part. |
void |
moveFocusToPrevious()
Advance the keyboard to the previous valid part. |
void |
setDefaultEnterKeyFocus(MiPart part)
Sets the default enter key focus. |
void |
setDefaultKeyboardFocus(MiPart part)
Sets the default keyboard focus to the given part. |
void |
setKeyboardFocusPolicy(int policy)
Set the keyboard focus policy. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int Mi_MOUSE_THEN_KEYBOARD_FOCUS_KEYBOARD_FOCUS_POLICY
public static final int Mi_KEYBOARD_FOCUS_ONLY_KEYBOARD_FOCUS_POLICY
public static final int Mi_KEYBOARD_FOCUS_THEN_MOUSE_KEYBOARD_FOCUS_POLICY
| Constructor Detail |
public MiKeyboardFocusManager(MiWindow window)
window - the root window that this will
manage.| Method Detail |
public void setKeyboardFocusPolicy(int policy)
policy - the new policypublic int getKeyboardFocusPolicy()
setKeyboardFocusPolicy(int)public MiWindow getSubject()
public void setDefaultKeyboardFocus(MiPart part)
part - the first part to get keyboard focuspublic MiPart getDefaultKeyboardFocus()
public void setDefaultEnterKeyFocus(MiPart part)
part - the first part to get enter key
focuspublic MiPart getDefaultEnterKeyFocus()
public MiPart getKeyboardFocus()
public void clearKeyboardFocus()
public MiPart getEnterKeyFocus()
public void clearEnterKeyFocus()
public void moveFocusToNext()
public void moveFocusToPrevious()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||