本文整理匯總了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);
}