Class BaseShortcut

    • Constructor Detail

      • BaseShortcut

        public BaseShortcut()
        Initializes with an empty shortcut.
      • BaseShortcut

        public BaseShortcut​(String s)
        Initializes the shortcut with the string to parse.
        Parameters:
        s - the string to parse
      • BaseShortcut

        public BaseShortcut​(KeyStroke keystroke)
        Initializes the object with the keystroke.
        Parameters:
        keystroke - the keystroke to use
    • Method Detail

      • isValid

        public boolean isValid​(String value)
        Checks whether the string value is a valid presentation for this class.
        Overrides:
        isValid in class AbstractBaseString
        Parameters:
        value - the string value to check
        Returns:
        true if non-null
      • keystrokeValue

        public KeyStroke keystrokeValue()
        Returns the instantiated KeyStroke.
        Returns:
        true if invalid or empty