Class DefaultPreferenceSetting

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean isExpert  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DefaultPreferenceSetting()
      Constructs a new DefaultPreferenceSetting.
      protected DefaultPreferenceSetting​(boolean isExpert)
      Constructs a new DefaultPreferenceSetting.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isExpert()
      Called to know if the preferences tab has only to be displayed in expert mode.
      protected static void saveBoolean​(java.lang.String prefName, javax.swing.JCheckBox cb)
      Saves state from a JCheckBox to a boolean preference.
      protected static void saveDouble​(java.lang.String prefName, javax.swing.JTextField tf)
      Saves text from a JTextField to a double preference.
      protected static void saveInt​(java.lang.String prefName, javax.swing.JTextField tf)
      Saves text from a JTextField to an integer preference.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • isExpert

        private final boolean isExpert
    • Constructor Detail

      • DefaultPreferenceSetting

        protected DefaultPreferenceSetting()
        Constructs a new DefaultPreferenceSetting. (Not an expert option by default.)
      • DefaultPreferenceSetting

        protected DefaultPreferenceSetting​(boolean isExpert)
        Constructs a new DefaultPreferenceSetting.
        Parameters:
        isExpert - true, if it is an expert option
    • Method Detail

      • isExpert

        public boolean isExpert()
        Description copied from interface: PreferenceSetting
        Called to know if the preferences tab has only to be displayed in expert mode.
        Specified by:
        isExpert in interface PreferenceSetting
        Returns:
        true if the tab has only to be displayed in expert mode, false otherwise.
      • saveBoolean

        protected static void saveBoolean​(java.lang.String prefName,
                                          javax.swing.JCheckBox cb)
        Saves state from a JCheckBox to a boolean preference.
        Parameters:
        prefName - preference name
        cb - check box
        Since:
        13050
      • saveDouble

        protected static void saveDouble​(java.lang.String prefName,
                                         javax.swing.JTextField tf)
        Saves text from a JTextField to a double preference.
        Parameters:
        prefName - preference name
        tf - text field
        Since:
        13050
      • saveInt

        protected static void saveInt​(java.lang.String prefName,
                                      javax.swing.JTextField tf)
        Saves text from a JTextField to an integer preference.
        Parameters:
        prefName - preference name
        tf - text field
        Since:
        13050