Public Member Functions | |
void | setPermanentFocusOwner (Component *c) |
Component * | getPermanentFocusOwner () |
void | setFocusOwner (Component *c) |
Component * | getFocusOwner () |
void | keyPressed (int keyCode, int modifier) |
void | keyReleased (int keyCode, int modifier) |
void | focusRightComponent () |
void | focusLeftComponent () |
Static Public Member Functions | |
FocusManager & | getInstance () |
|
Set the given Component as permanent focus owner. Permanent means that this component keeps focus, until setPermanentFocusOwner is called again, even if setFocusOwner is called.
|
|
Returns the current permanent focus owner. |
|
Set the given Component as focus owner. The focus owner is usually a child of the permanent focus owner (such as a MenuItem is a child of Menu), and focus is returned to the permanent focus owner, once the focus owner looses its focus.
|
|
Returns the current focus owner. |
|
Sends keypresses to the currently focused Component. |
|
Sends keyreleases to the currently focused Component. |
|
Move focus to the right, ie; when someone pressed tab. If there is no current focus owner, nothing happens. |
|
Focus the component left (in the component tree hierarchy) of the currently focused Component. If there is no currently focused Component, nothing happens. |