| Modifier and Type | Class and Description |
|---|---|
static class |
BooleanControl.Type
该
BooleanControl.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状态的标签,如“真”或“对”。
falseStateLabel为代表的
false状态的标签,如“假”或“关闭”。
protected BooleanControl(BooleanControl.Type type, boolean initialValue)
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.