| Modifier and Type | Class and Description | 
|---|---|
| static class  | BooleanControl.TypeBooleanControl.Type类的一个实例识别一种布尔控件。 | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | BooleanControl(BooleanControl.Type type, boolean initialValue)
              使用给定的参数构造一个新的布尔控件对象。 
             | 
| protected  | BooleanControl(BooleanControl.Type type, boolean initialValue, String trueStateLabel, String falseStateLabel)
              使用给定的参数构造一个新的布尔控件对象。 
             | 
protected BooleanControl(BooleanControl.Type type, boolean initialValue, String trueStateLabel, String falseStateLabel)
type - 表示此浮动控件对象的控件类型 
           initialValue - 初始控制值 
           trueStateLabel - 由 
            true表示的状态的标签,例如“true”或“on”。 
           falseStateLabel - 由 
            false表示的状态的标签,例如“false”或“off”。 
           protected BooleanControl(BooleanControl.Type type, boolean initialValue)
true和false状态的标签默认为“true”和“false”。 
          type - 由此浮动控件对象表示的控件类型 
           initialValue - 初始控制值 
           public void setValue(boolean value)
value - 所需的新值。 
           public boolean getValue()
public String getStateLabel(boolean state)
state - 将返回标签的状态 
           true ,或“假”或“关”为 
            false 。 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.