本文整理汇总了Java中javafx.scene.control.CheckBox.setAllowIndeterminate方法的典型用法代码示例。如果您正苦于以下问题:Java CheckBox.setAllowIndeterminate方法的具体用法?Java CheckBox.setAllowIndeterminate怎么用?Java CheckBox.setAllowIndeterminate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.scene.control.CheckBox
的用法示例。
在下文中一共展示了CheckBox.setAllowIndeterminate方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CheckBoxes
import javafx.scene.control.CheckBox; //导入方法依赖的package包/类
public CheckBoxes() {
VBox vbox = new VBox();
vbox.setSpacing(10);
CheckBox cb1 = new CheckBox("Simple checkbox");
CheckBox cb2 = new CheckBox("Three state checkbox");
cb2.setAllowIndeterminate(true);
cb2.setIndeterminate(false);
CheckBox cb3 = new CheckBox("Disabled");
cb3.setSelected(true);
cb3.setDisable(true);
vbox.getChildren().add(cb1);
vbox.getChildren().add(cb2);
vbox.getChildren().add(cb3);
getChildren().add(vbox);
}
示例2: executionOnNonInstructionMemorySelection
import javafx.scene.control.CheckBox; //导入方法依赖的package包/类
private Node executionOnNonInstructionMemorySelection( SimulatorSettingDetails settingDetails )
{
HBox hBox = new HBox();
//TODO ensure numerical values only
CheckBox executionOfNonInstructionMemoryCheckBox = new CheckBox("Allow execution of non-instruction memory");
executionOfNonInstructionMemoryCheckBox.setAllowIndeterminate(false);
executionOfNonInstructionMemoryCheckBox
.setSelected(Boolean.valueOf(settingDetails.getAllowExecutionOfNonInstructionMemory()));
allowExecutionOfNonInstructionMemoryModel = executionOfNonInstructionMemoryCheckBox.selectedProperty();
hBox.getChildren().add(executionOfNonInstructionMemoryCheckBox);
return hBox;
}
示例3: zeroOnReadsFromUninitializedMemorySelection
import javafx.scene.control.CheckBox; //导入方法依赖的package包/类
private Node zeroOnReadsFromUninitializedMemorySelection( SimulatorSettingDetails settingDetails )
{
HBox hBox = new HBox();
//TODO ensure numerical values only
CheckBox zeroOnReadsFromUninitializedMemoryCheckBox =
new CheckBox("Assume zero on reads from uninitialized memory");
zeroOnReadsFromUninitializedMemoryCheckBox.setAllowIndeterminate(false);
zeroOnReadsFromUninitializedMemoryCheckBox
.setSelected(Boolean.valueOf(settingDetails.getAssumeZeroOnReadsFromUninitializedMemory()));
assumeZeroOnReadsFromUninitializedMemoryModel = zeroOnReadsFromUninitializedMemoryCheckBox.selectedProperty();
hBox.getChildren().add(zeroOnReadsFromUninitializedMemoryCheckBox);
return hBox;
}
示例4: programInChunksSelection
import javafx.scene.control.CheckBox; //导入方法依赖的package包/类
private Node programInChunksSelection( ProgrammerSettingDetails settingDetails )
{
HBox hBox = new HBox();
//TODO ensure numerical values only
CheckBox programInChunksCheckBox = new CheckBox("Program in chunks");
programInChunksCheckBox.setAllowIndeterminate(false);
programInChunksCheckBox.setSelected(Boolean.valueOf(settingDetails.getProgramInChunks()));
programInChunksSelectionModel = programInChunksCheckBox.selectedProperty();
hBox.getChildren().add(programInChunksCheckBox);
return hBox;
}
示例5: autodetectSerialPortSelection
import javafx.scene.control.CheckBox; //导入方法依赖的package包/类
private Node autodetectSerialPortSelection( ProgrammerSettingDetails settingDetails )
{
HBox hBox = new HBox();
CheckBox autodetectCheckBox = new CheckBox("Autodetect serial ports");
autodetectCheckBox.setAllowIndeterminate(false);
autodetectCheckBox.setSelected(Boolean.valueOf(settingDetails.getAutoDetectSerialPorts()));
autodetectSerialPortsSelectionModel = autodetectCheckBox.selectedProperty();
hBox.getChildren().add(autodetectCheckBox);
return hBox;
}
示例6: instantiate
import javafx.scene.control.CheckBox; //导入方法依赖的package包/类
private void instantiate(){
box=new HBox();
checkbox=new CheckBox();
checkbox.setAllowIndeterminate(false);
box.getChildren().add(checkbox);
this.getChildren().add(box);
}