Interface KeyEvents.Builder

    • Method Detail

      • keyEvent

        KeyEvents.Builder keyEvent​(int keyEvent)
        Parameters:
        keyEvent - the key event code
        Returns:
        this builder instance
      • modifiers

        KeyEvents.Builder modifiers​(int modifiers)
        Parameters:
        modifiers - the modifiers
        Returns:
        this builder instance
      • action

        KeyEvents.Builder action​(Action action)
        Parameters:
        action - the action, if null then the action binding is removed
        Returns:
        this builder instance
      • keyStroke

        KeyStroke keyStroke()
        Returns a KeyStroke based on this builder
        Returns:
        a KeyStroke
      • enable

        KeyEvents.Builder enable​(JComponent component)
        Builds the key event and enables it on the given component
        Parameters:
        component - the component
        Returns:
        this builder instance
      • disable

        KeyEvents.Builder disable​(JComponent component)
        Disables this key event on the given component
        Parameters:
        component - the component
        Returns:
        this builder instance