Class AlphaNumKeysController

  • All Implemented Interfaces:
    Controller

    public class AlphaNumKeysController
    extends ControllerBase<AlphaNumKeys>
    This controller gives the operating elements of an instance of AlphaNumKeys 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
    • Constructor Detail

      • AlphaNumKeysController

        public AlphaNumKeysController​(AlphaNumKeys keys,
                                      javafx.scene.Scene scene)
        Produces a new controller that gives function to an AlphaNumKeys.
        Parameters:
        keys - AlphaNumKeys, that is linked to this controller
        scene - Scene, where this controller is linked to, to share all KeyEvents to simulate a keyboard
    • Method Detail

      • 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 buttons

        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.