Class ComponentKeyBinding


  • public class ComponentKeyBinding
    extends Object
    Utility for adding key bindings to a view container for common functionality usually handled by the existence of menu key listeners. This class currently only adds the copy text keyboard command (ctr-c) to view container but can be easily extended to handle other keyboard mappings.
    Since:
    4.2.2
    • Constructor Detail

      • ComponentKeyBinding

        public ComponentKeyBinding()
    • Method Detail

      • install

        public static void install​(Controller controller,
                                   JComponent viewerContainer)
        Installs the component key binding on the specified JComponent.
        Parameters:
        controller - Controller used by various keyboard commands
        viewerContainer - view container to add keyboard mappings too