Game Control Plus
1.2.2
|
Public Member Functions | |
boolean | addControls (MEditableTextControl...controls) |
boolean | addControl (MEditableTextControl control) |
boolean | removeControl (MEditableTextControl control) |
Package Functions | |
boolean | nextControl (MEditableTextControl control) |
boolean | prevControl (MEditableTextControl control) |
Private Attributes | |
LinkedList< MEditableTextControl > | textControls |
Allows TABBING between text controls. A tab manager allows the user to use the TAB key to move from one text control (GTextField or GTextArea) to the another. This is useful when creating a 'form' made from several text controls.
The tab order is decided by the order the text controls are added to the tab manager. The TAB key move the focus forwards and SHIFT+TAB moves it backwards. Note that tabbing is not cyclic so pressing TAB on the last control does not set the focus on the first control, in fact it will be ignored. Similar logic applies to SHIFT_TAB on the first control
At least 2 controls must be added to the tab manager.
boolean org.gamecontrolplus.gui.MTabManager.addControl | ( | MEditableTextControl | control | ) |
Add the next text control to this tab manager.
control | to add |
boolean org.gamecontrolplus.gui.MTabManager.addControls | ( | MEditableTextControl... | controls | ) |
Attempt to add multiple controls to the tab manager. The tab order is determined by their order as parameters to this method.
controls | a comma separated list of text field or text area controls. |
|
package |
Used when the tab key is pressed to move to the next control
control |
|
package |
Used when the shift+tab key is pressed to move to the previous control
control |
boolean org.gamecontrolplus.gui.MTabManager.removeControl | ( | MEditableTextControl | control | ) |
Remove a control from the tab manager. This does not affect the tab order of the remaining controls.
control |