/[svn]/jsampler/trunk/src/org/jsampler/JSPrefs.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/JSPrefs.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1539 by iliev, Sun Sep 9 17:43:30 2007 UTC revision 1540 by iliev, Mon Dec 3 23:22:02 2007 UTC
# Line 88  public class JSPrefs extends PropertyCha Line 88  public class JSPrefs extends PropertyCha
88           */           */
89          public final static String DEFAULT_AUDIO_DRIVER = "defaultAudioDriver";          public final static String DEFAULT_AUDIO_DRIVER = "defaultAudioDriver";
90                    
91            /** Property which specifies whether the volume values should be shown in decibels. */
92            public final static String VOL_MEASUREMENT_UNIT_DECIBEL = "volMeasurementUnitDecibel";
93            
94                    
95          private final String pathName;          private final String pathName;
96          private final Preferences userPrefs;          private final Preferences userPrefs;
# Line 311  public class JSPrefs extends PropertyCha Line 314  public class JSPrefs extends PropertyCha
314           * The default value is used when the property is not set.           * The default value is used when the property is not set.
315           * Override this method to provide custom default values for specific properties.           * Override this method to provide custom default values for specific properties.
316           * @param name The name of the property whose default value should be obtained.           * @param name The name of the property whose default value should be obtained.
          * @return <code>false</code>  
317           * @see #getBoolProperty(String name)           * @see #getBoolProperty(String name)
318           */           */
319          public boolean          public boolean
320          getDefaultBoolValue(String name) { return false; }          getDefaultBoolValue(String name) {
321                    if(name == VOL_MEASUREMENT_UNIT_DECIBEL) return true;
322                    return false;
323            }
324  }  }

Legend:
Removed from v.1539  
changed lines
  Added in v.1540

  ViewVC Help
Powered by ViewVC