Class DefaultTogglePrompt

    • Constructor Detail

      • DefaultTogglePrompt

        public DefaultTogglePrompt​(java.lang.String name,
                                   java.lang.String message,
                                   java.lang.String activeLabel,
                                   java.lang.String inactiveLabel,
                                   boolean defaultValue)
    • Method Detail

      • getActiveLabel

        public java.lang.String getActiveLabel()
        Description copied from interface: TogglePrompt
        Get the label for the active (on) state.
        Specified by:
        getActiveLabel in interface TogglePrompt
        Returns:
        the active state label
      • getInactiveLabel

        public java.lang.String getInactiveLabel()
        Description copied from interface: TogglePrompt
        Get the label for the inactive (off) state.
        Specified by:
        getInactiveLabel in interface TogglePrompt
        Returns:
        the inactive state label
      • getDefaultValue

        public boolean getDefaultValue()
        Description copied from interface: TogglePrompt
        Get the default value.
        Specified by:
        getDefaultValue in interface TogglePrompt
        Returns:
        true if the default is the active state, false for inactive