Class GUIPrompt

    • Field Detail

      • m_Properties

        protected Properties m_Properties
        the properties.
      • m_Singleton

        protected static GUIPrompt m_Singleton
        the singleton.
    • Constructor Detail

      • GUIPrompt

        protected GUIPrompt()
        Initializes the class.
    • Method Detail

      • initialize

        protected void initialize()
        Loads the properties.
      • update

        protected void update()
        Stores the properties on disk.
      • getBoolean

        public boolean getBoolean​(String key,
                                  boolean defValue)
        Returns the stored value or, if not present, the default value.
        Parameters:
        key - the property key to read the boolean from
        defValue - the default value to use if absent
        Returns:
        the stored value or the default value (if absent)
      • setBoolean

        public void setBoolean​(String key,
                               boolean value)
        Sets the boolean value and stores the properties.
        Parameters:
        key - the property to store the value under
        value - the value to store
      • getInteger

        public Integer getInteger​(String key,
                                  Integer defValue)
        Returns the stored value or, if not present, the default value.
        Parameters:
        key - the property key to read the Integer from
        defValue - the default value to use if absent
        Returns:
        the stored value or the default value (if absent)
      • setInteger

        public void setInteger​(String key,
                               Integer value)
        Sets the Integer value and stores the properties.
        Parameters:
        key - the property to store the value under
        value - the value to store
      • getDouble

        public Double getDouble​(String key,
                                Double defValue)
        Returns the stored value or, if not present, the default value.
        Parameters:
        key - the property key to read the Double from
        defValue - the default value to use if absent
        Returns:
        the stored value or the default value (if absent)
      • setDouble

        public void setDouble​(String key,
                              Double value)
        Sets the Double value and stores the properties.
        Parameters:
        key - the property to store the value under
        value - the value to store
      • getSingleton

        public static GUIPrompt getSingleton()
        Returns the singleton instance.
        Returns:
        the instance