- java.lang.Object
 -  
      
- javax.sound.sampled.Control
 -  
        
- javax.sound.sampled.BooleanControl
 
 
 
-  
        
       
-  
             
嵌套类汇总
嵌套类 变量和类型 类 描述 static classBooleanControl.TypeBooleanControl.Type类的一个实例标识一种布尔控件。 
-  
             
构造方法摘要
构造方法 变量 构造器 描述 protectedBooleanControl(BooleanControl.Type type, boolean initialValue)使用给定参数构造一个新的布尔控制对象。protectedBooleanControl(BooleanControl.Type type, boolean initialValue, String trueStateLabel, String falseStateLabel)使用给定参数构造一个新的布尔控制对象。 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
BooleanControl
protected BooleanControl(BooleanControl.Type type, boolean initialValue, String trueStateLabel, String falseStateLabel)
使用给定参数构造一个新的布尔控制对象。- 参数
 -  
              
type- 表示此浮点控制对象的控件类型 -  
              
initialValue- 初始控制值 -  
              
trueStateLabel- 由true表示的州的标签,例如“true”或“on” -  
              
falseStateLabel- 由false表示的州的标签,例如“false”或“off” 
 
-  
BooleanControl
protected BooleanControl(BooleanControl.Type type, boolean initialValue)
使用给定参数构造一个新的布尔控制对象。true和false状态的标签默认为“true”和“false”。- 参数
 -  
              
type- 此float控件对象表示的控件类型 -  
              
initialValue- 初始控制值 
 
 -  
 
-  
             
方法详细信息
-  
setValue
public void setValue(boolean value)
设置控件的当前值。 默认实现只是按指示设置值。 某些控件要求在通过设置值来影响它们之前打开它们的线。- 参数
 -  
              
value- 期望的新值 
 
-  
getValue
public boolean getValue()
获得此控件的当前值。- 结果
 - 当前值
 
 
-  
getStateLabel
public String getStateLabel(boolean state)
获取指定状态的标签。- 参数
 -  
              
state- 将返回其标签的州 - 结果
 - 
               标签指定的状态,例如“真”或“接通”为 
              
true,或“假”或“关”为false 
 
 -  
 
 -