Class IntegerSignednessFormattingModeSettingsDefinition

    • Method Detail

      • getFormatMode

        public SignednessFormatMode getFormatMode​(Settings settings)
        Returns the format based on the specified settings
        Parameters:
        settings - the instance settings or null for default value.
        Returns:
        the format mode
      • getChoice

        public int getChoice​(Settings settings)
        Description copied from interface: EnumSettingsDefinition
        Returns the current value for this settings
        Specified by:
        getChoice in interface EnumSettingsDefinition
        Parameters:
        settings - The settings to search
        Returns:
        the value for the settingsDefintions
      • setFormatMode

        public void setFormatMode​(Settings settings,
                                  SignednessFormatMode mode)
        Set, or clear if mode is null, the new mode in the provided settings
        Parameters:
        settings - settings object
        mode - new value to assign, or null to clear
      • setChoice

        public void setChoice​(Settings settings,
                              int value)
        Description copied from interface: EnumSettingsDefinition
        Sets the given value into the settings object using this definition as a key
        Specified by:
        setChoice in interface EnumSettingsDefinition
        Parameters:
        settings - the settings to store the value.
        value - the settings value to be stored.
      • getDisplayChoices

        public java.lang.String[] getDisplayChoices​(Settings settings)
        Description copied from interface: EnumSettingsDefinition
        Gets the list of choices as strings based on the current settings
        Specified by:
        getDisplayChoices in interface EnumSettingsDefinition
        Parameters:
        settings - the instance settings
        Returns:
        an array of strings which represent valid choices based on the current settings.
      • getDisplayChoice

        public java.lang.String getDisplayChoice​(int value,
                                                 Settings s1)
        Description copied from interface: EnumSettingsDefinition
        Returns the String for the given enum value
        Specified by:
        getDisplayChoice in interface EnumSettingsDefinition
        Parameters:
        value - the value to get a display string for
        s1 - the instance settings which may affect the results
        Returns:
        the display string for the given settings.
      • clear

        public void clear​(Settings settings)
        Description copied from interface: SettingsDefinition
        Removes any values in the given settings object assocated with this settings definition
        Specified by:
        clear in interface SettingsDefinition
        Parameters:
        settings - the settings object to be cleared.
      • copySetting

        public void copySetting​(Settings settings,
                                Settings destSettings)
        Description copied from interface: SettingsDefinition
        Copies any setting value associated with this settings definition from the srcSettings settings to the destSettings.
        Specified by:
        copySetting in interface SettingsDefinition
        Parameters:
        settings - the settings to be copied
        destSettings - the settings to be updated.
      • getDisplayChoice

        public java.lang.String getDisplayChoice​(Settings settings)
      • setDisplayChoice

        public void setDisplayChoice​(Settings settings,
                                     java.lang.String choice)
        Sets the settings object to the enum value indicating the specified choice as a string.
        Parameters:
        settings - the settings to store the value.
        choice - enum string representing a choice in the enum.