Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.fluidsynth.api.settings
Class SwitchSetting  view SwitchSetting download SwitchSetting.java

java.lang.Object
  extended byorg.fluidsynth.api.settings.Setting
      extended byorg.fluidsynth.api.settings.BooleanSetting
          extended byorg.fluidsynth.api.settings.SwitchSetting

public class SwitchSetting
extends BooleanSetting

Differs from boolean only in how the command line argument is produced. The command line arg produced is simply --option and not --option=value or -o name=value like the other settings.


Field Summary
 
Fields inherited from class org.fluidsynth.api.settings.Setting
 
Constructor Summary
SwitchSetting()
           
 
Method Summary
 java.lang.String commandLineArg()
          Return the command line argument used to communicate the current value of this setting to fluidsynth.
 
Methods inherited from class org.fluidsynth.api.settings.BooleanSetting
objectGet, objectSet, validate
 
Methods inherited from class org.fluidsynth.api.settings.Setting
dirty, getCommandLineOption, getDefaultValue, getName, getRealtime, getValue, isRealtime, isUserModified, merge, setCommandLineOption, setDefaultValue, setName, setRealtime, setSettings, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwitchSetting

public SwitchSetting()
Method Detail

commandLineArg

public java.lang.String commandLineArg()
Description copied from class: Setting
Return the command line argument used to communicate the current value of this setting to fluidsynth. E.g., when the value of the audio.driver setting is "alsa", this method returns --audio-driver=alsa.

Overrides:
commandLineArg in class Setting