Class ExtensionKeyboard

    • Constructor Detail

      • ExtensionKeyboard

        public ExtensionKeyboard()
    • Method Detail

      • hook

        public void hook​(ExtensionHook extensionHook)
        Description copied from interface: Extension
        Called during extension's initialisation to allow to add new functionality to core components.
        Specified by:
        hook in interface Extension
        Overrides:
        hook in class ExtensionAdaptor
        Parameters:
        extensionHook - the hook to add the components.
      • registerMenuItem

        public void registerMenuItem​(ZapMenuItem zme)
      • getShortcuts

        public java.util.List<KeyboardShortcut> getShortcuts​(boolean reset)
      • getShortcut

        public javax.swing.KeyStroke getShortcut​(java.lang.String identifier)
      • setShortcut

        public void setShortcut​(java.lang.String identifier,
                                javax.swing.KeyStroke ks)
      • displayCheatsheetSortedByAction

        public void displayCheatsheetSortedByAction()
      • displayCheatsheetSortedByKey

        public void displayCheatsheetSortedByKey()
      • getAuthor

        public java.lang.String getAuthor()
        Description copied from interface: Extension
        Gets the author of the extension.

        Since 2.9.0 defaults to the author of the add-on, if set, otherwise an empty string.

        Returns:
        the author of the extension, might be null.
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: Extension
        Returns the description of the extension, to be shown in UI components. The description must be internationalised.
        Specified by:
        getDescription in interface Extension
        Overrides:
        getDescription in class ExtensionAdaptor
        Returns:
        the description of the extension, never null
      • supportsDb

        public boolean supportsDb​(java.lang.String type)
        No database tables used, so all supported
        Specified by:
        supportsDb in interface Extension
        Overrides:
        supportsDb in class ExtensionAdaptor
        Parameters:
        type - the db type
        Returns:
        true if the specified db type is supported by the extension (or if it doesn't use any db)
        See Also:
        Database.getType()