Class AlphaNumKeysController
- java.lang.Object
-
- bitchanger.gui.controller.ControllerBase<AlphaNumKeys>
-
- bitchanger.gui.controller.AlphaNumKeysController
-
- All Implemented Interfaces:
Controller
public class AlphaNumKeysController extends ControllerBase<AlphaNumKeys>
This controller gives the operating elements of an instance ofAlphaNumKeys
a function and links the simulation of the keyboard to the encapsulated scene.The main function is the simulation of a keyboard with alphanumeric buttons. By clicking on one of these buttons, the required KeyEvents get triggered and transfered to the linked scene. The available functions are switching between keyboard modes, scroll trough keyboard and updating the comma button if CommaProperty from
Preferences
is changing.The function of the +/- button to change the sign of the number is free, because other operating elements are required. The function of this button needs to be implemented in an other controller.
- Since:
- Bitchanger 0.1.0
- Version:
- 0.1.6
- Author:
- Tim Mühle
-
-
Field Summary
-
Fields inherited from class bitchanger.gui.controller.ControllerBase
buttonMap, controllable, nodeMap, textFieldMap
-
Fields inherited from interface bitchanger.gui.controller.Controller
REGISTERED_CONTROLLERS
-
-
Constructor Summary
Constructors Constructor Description AlphaNumKeysController(AlphaNumKeys keys, javafx.scene.Scene scene)
Produces a new controller that gives function to anAlphaNumKeys
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initControls()
void
setActions()
Sets actions to switch the keyboard mode, to scroll between the different keyboard layouts, to update the comma button and simulates the keyboard inputs for the alphanumeric buttons-
Methods inherited from class bitchanger.gui.controller.ControllerBase
addAccelerator, addAccelerator, addAccelerator, simulateKeyEvents, simulateKeyEvents
-
-
-
-
Constructor Detail
-
AlphaNumKeysController
public AlphaNumKeysController(AlphaNumKeys keys, javafx.scene.Scene scene)
Produces a new controller that gives function to anAlphaNumKeys
.- Parameters:
keys
-AlphaNumKeys
, that is linked to this controllerscene
-Scene
, where this controller is linked to, to share all KeyEvents to simulate a keyboard
-
-
Method Detail
-
initControls
protected void initControls()
- Specified by:
initControls
in classControllerBase<AlphaNumKeys>
-
setActions
public void setActions()
Sets actions to switch the keyboard mode, to scroll between the different keyboard layouts, to update the comma button and simulates the keyboard inputs for the alphanumeric buttonsThe function of the +/- button to change the sign of the number is free, because other operating elements are required. The function of this button needs to be implemented in an other controller.
-
-