当前位置: 首页>>代码示例>>Java>>正文


Java CheckBox.setAllowIndeterminate方法代码示例

本文整理汇总了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);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:19,代码来源:CheckBoxes.java

示例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;
}
 
开发者ID:dhawal9035,项目名称:WebPLP,代码行数:17,代码来源:SimulatorSettingsPanel.java

示例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;
}
 
开发者ID:dhawal9035,项目名称:WebPLP,代码行数:18,代码来源:SimulatorSettingsPanel.java

示例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;
}
 
开发者ID:dhawal9035,项目名称:WebPLP,代码行数:16,代码来源:ProgrammerSettingsPanel.java

示例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;
}
 
开发者ID:dhawal9035,项目名称:WebPLP,代码行数:15,代码来源:ProgrammerSettingsPanel.java

示例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);
}
 
开发者ID:LtubSalad,项目名称:voogasalad-ltub,代码行数:8,代码来源:SkillSetter.java


注:本文中的javafx.scene.control.CheckBox.setAllowIndeterminate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。