當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。