當前位置: 首頁>>代碼示例>>Java>>正文


Java CheckBox.setWidth方法代碼示例

本文整理匯總了Java中com.vaadin.ui.CheckBox.setWidth方法的典型用法代碼示例。如果您正苦於以下問題:Java CheckBox.setWidth方法的具體用法?Java CheckBox.setWidth怎麽用?Java CheckBox.setWidth使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.vaadin.ui.CheckBox的用法示例。


在下文中一共展示了CheckBox.setWidth方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: buildDialogLayout

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@Override
protected void buildDialogLayout() {
    final VerticalLayout mainLayout = new VerticalLayout();
    mainLayout.setSizeFull();
    mainLayout.setSpacing(true);
    mainLayout.setMargin(true);

    checkPerGraph = new CheckBox(ctx.tr("sparqlUpdate.dialog.perGraph"));
    checkPerGraph.setWidth("100%");
    mainLayout.addComponent(checkPerGraph);
    mainLayout.setExpandRatio(checkPerGraph, 0.0f);

    txtQuery = new TextArea(ctx.tr("sparqlUpdate.dialog.query"));
    txtQuery.setSizeFull();
    txtQuery.setRequired(true);
    txtQuery.addValidator(createSparqlUpdateQueryValidator());
    txtQuery.setImmediate(true);
    mainLayout.addComponent(txtQuery);
    mainLayout.setExpandRatio(txtQuery, 1.0f);

    setCompositionRoot(mainLayout);
}
 
開發者ID:UnifiedViews,項目名稱:Plugins,代碼行數:23,代碼來源:SparqlUpdateVaadinDialog.java

示例2: buildDialogLayout

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@Override
protected void buildDialogLayout() {

    final VerticalLayout layout = new VerticalLayout();
    layout.setWidth("100%");
    layout.setHeight("-1px");
    layout.setSpacing(true);
    layout.setMargin(true);

    txtPattern = new TextField(ctx.tr("renamer.dialog.regExp"));
    txtPattern.setWidth("100%");
    layout.addComponent(txtPattern);

    txtValue = new TextField(ctx.tr("renamer.dialog.replaceWith"));
    txtValue.setWidth("100%");
    layout.addComponent(txtValue);

    checkUseAdvanced = new CheckBox(ctx.tr("renamer.dialog.advancedMode"));
    checkUseAdvanced.setWidth("100%");
    checkUseAdvanced.setDescription(ctx.tr("renamer.dialog.advancedMode.desc"));
    layout.addComponent(checkUseAdvanced);

    setCompositionRoot(layout);
}
 
開發者ID:UnifiedViews,項目名稱:Plugins,代碼行數:25,代碼來源:RenamerVaadinDialog.java

示例3: buildDialogLayout

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@Override
protected void buildDialogLayout() {
    final VerticalLayout mainLayout = new VerticalLayout();
    mainLayout.setSizeFull();
    mainLayout.setSpacing(true);
    mainLayout.setMargin(true);

    checkPerGraph = new CheckBox(ctx.tr("SparqlConstructVaadinDialog.perGraphMode"));
    checkPerGraph.setWidth("100%");
    mainLayout.addComponent(checkPerGraph);
    mainLayout.setExpandRatio(checkPerGraph, 0.0f);

    txtQuery = new TextArea(ctx.tr("SparqlConstructVaadinDialog.constructQuery"));
    txtQuery.setSizeFull();
    txtQuery.setRequired(true);
    txtQuery.addValidator(createSparqlQueryValidator());
    txtQuery.setImmediate(true);
    mainLayout.addComponent(txtQuery);
    mainLayout.setExpandRatio(txtQuery, 1.0f);

    setCompositionRoot(mainLayout);
}
 
開發者ID:UnifiedViews,項目名稱:Plugins,代碼行數:23,代碼來源:SparqlConstructVaadinDialog.java

示例4: createLinearStepperBox

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
private CheckBox createLinearStepperBox() {
  CheckBox checkBox = new CheckBox("Linear Stepper *");
  checkBox.setWidth(100, Unit.PERCENTAGE);
  checkBox.addValueChangeListener(event -> {
    createStepper();
    fireEvent(new StepperCreateEvent(StepperPropertiesLayout.this, stepper));
  });
  return checkBox;
}
 
開發者ID:Juchar,項目名稱:md-stepper,代碼行數:10,代碼來源:StepperPropertiesLayout.java

示例5: buildVerticalLayout_2

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildVerticalLayout_2() {
	// common part: create layout
	verticalLayout_2 = new VerticalLayout();
	verticalLayout_2.setImmediate(false);
	verticalLayout_2.setWidth("-1px");
	verticalLayout_2.setHeight("-1px");
	verticalLayout_2.setMargin(true);
	verticalLayout_2.setSpacing(true);
	
	// textFieldIssuer
	textFieldIssuer = new TextField();
	textFieldIssuer.setCaption("Issuer");
	textFieldIssuer.setImmediate(false);
	textFieldIssuer.setWidth("-1px");
	textFieldIssuer.setHeight("-1px");
	verticalLayout_2.addComponent(textFieldIssuer);
	
	// checkBoxMustBePresent
	checkBoxMustBePresent = new CheckBox();
	checkBoxMustBePresent.setCaption("Attribute Must Be Present");
	checkBoxMustBePresent.setImmediate(false);
	checkBoxMustBePresent.setWidth("-1px");
	checkBoxMustBePresent.setHeight("-1px");
	verticalLayout_2.addComponent(checkBoxMustBePresent);
	
	return verticalLayout_2;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:29,代碼來源:AttributeSelectionWindow.java

示例6: buildDialogLayout

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@Override
protected void buildDialogLayout() {
    setSizeFull();

    final VerticalLayout mainLayout = new VerticalLayout();
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    mainLayout.setWidth("100%");

    uri = new TextField(ctx.tr("FilesUploadVaadinDialog.uri"));
    uri.setDescription(ctx.tr("FilesUploadVaadinDialog.uri.description"));
    uri.setRequired(true);
    uri.setRequiredError(ctx.tr("FilesUploadVaadinDialog.uri.required"));
    uri.setWidth("100%");

    mainLayout.addComponent(uri);

    username = new TextField(ctx.tr("FilesUploadVaadinDialog.username"));
    username.setWidth("75%");
    mainLayout.addComponent(username);

    password = new PasswordField(ctx.tr("FilesUploadVaadinDialog.password"));
    password.setWidth("75%");
    mainLayout.addComponent(password);

    softFail = new CheckBox(ctx.tr("FilesUploadVaadinDialog.skip"));
    softFail.setWidth("100%");
    mainLayout.addComponent(softFail);

    moveFiles = new CheckBox(ctx.tr("FilesUploadVaadinDialog.move"));
    moveFiles.setWidth("100%");
    mainLayout.addComponent(moveFiles);

    setCompositionRoot(mainLayout);
}
 
開發者ID:UnifiedViews,項目名稱:Plugins,代碼行數:37,代碼來源:FilesUploadVaadinDialog.java

示例7: buildHorizontalLayout_1

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
    // common part: create layout
    horizontalLayout_1 = new HorizontalLayout();
    horizontalLayout_1.setImmediate(false);
    horizontalLayout_1.setWidth("-1px");
    horizontalLayout_1.setHeight("-1px");
    horizontalLayout_1.setMargin(false);
    horizontalLayout_1.setSpacing(true);

    // followCheckbox
    followCheckbox = new CheckBox();
    followCheckbox.setCaption("Follow");
    followCheckbox.setImmediate(false);
    followCheckbox.setWidth("-1px");
    followCheckbox.setHeight("-1px");
    horizontalLayout_1.addComponent(followCheckbox);

    // startFromLastCheckbox
    startFromLastCheckbox = new CheckBox();
    startFromLastCheckbox.setCaption("Start from last transaction");
    startFromLastCheckbox.setImmediate(false);
    startFromLastCheckbox.setWidth("-1px");
    startFromLastCheckbox.setHeight("-1px");
    horizontalLayout_1.addComponent(startFromLastCheckbox);

    return horizontalLayout_1;
}
 
開發者ID:alenca,項目名稱:zklogtool,代碼行數:29,代碼來源:OpenTransactionLogFileDialog.java

示例8: buildHorizontalLayout_1

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
	// common part: create layout
	horizontalLayout_1 = new HorizontalLayout();
	horizontalLayout_1.setImmediate(false);
	horizontalLayout_1.setWidth("100.0%");
	horizontalLayout_1.setHeight("-1px");
	horizontalLayout_1.setMargin(false);
	
	// logoField
	logoField = new Embedded();
	logoField.setCaption("Logo");
	logoField.setImmediate(false);
	logoField.setWidth("70px");
	logoField.setHeight("60px");
	logoField
			.setSource(new ThemeResource("img/component/embedded_icon.png"));
	logoField.setType(1);
	logoField.setMimeType("image/png");
	horizontalLayout_1.addComponent(logoField);
	
	// activeField
	activeField = new CheckBox();
	activeField.setCaption("Activo");
	activeField.setImmediate(false);
	activeField.setWidth("-1px");
	activeField.setHeight("-1px");
	activeField.setRequired(true);
	horizontalLayout_1.addComponent(activeField);
	horizontalLayout_1
			.setComponentAlignment(activeField, new Alignment(34));
	
	return horizontalLayout_1;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:35,代碼來源:CalendarViewForm.java

示例9: bindBooleanField

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
public CheckBox bindBooleanField(AbstractLayout form, ValidatingFieldGroup<E> group, String fieldLabel,
		String fieldName)
{
	CheckBox field = new SplitCheckBox(fieldLabel);
	field.setWidth("100%");
	field.setImmediate(true);
	addValueChangeListeners(field);
	doBinding(group, fieldName, field);
	form.addComponent(field);
	return field;
}
 
開發者ID:rlsutton1,項目名稱:VaadinUtils,代碼行數:12,代碼來源:FormHelper.java

示例10: createBorderlessStepperBox

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
private CheckBox createBorderlessStepperBox() {
  CheckBox checkBox = new CheckBox("Borderless");
  checkBox.setWidth(100, Unit.PERCENTAGE);
  checkBox.addValueChangeListener(event -> updateStepperStyles());
  return checkBox;
}
 
開發者ID:Juchar,項目名稱:md-stepper,代碼行數:7,代碼來源:StepperPropertiesLayout.java

示例11: createDividerBox

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
private CheckBox createDividerBox() {
  CheckBox checkBox = new CheckBox("No Divider");
  checkBox.setWidth(100, Unit.PERCENTAGE);
  checkBox.addValueChangeListener(event -> updateStepperStyles());
  return checkBox;
}
 
開發者ID:Juchar,項目名稱:md-stepper,代碼行數:7,代碼來源:StepperPropertiesLayout.java

示例12: buildMainLayout

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("-1px");
	mainLayout.setHeight("-1px");
	mainLayout.setMargin(true);
	mainLayout.setSpacing(true);
	
	// top-level component properties
	setWidth("-1px");
	setHeight("-1px");
	
	// textAreaSelect
	textAreaSelect = new TextArea();
	textAreaSelect.setCaption("SQL Select Statement");
	textAreaSelect.setImmediate(false);
	textAreaSelect.setWidth("100.0%");
	textAreaSelect.setHeight("-1px");
	textAreaSelect.setInvalidAllowed(false);
	textAreaSelect.setRequired(true);
	mainLayout.addComponent(textAreaSelect);
	mainLayout.setExpandRatio(textAreaSelect, 1.0f);
	
	// textFieldBase
	textFieldBase = new TextField();
	textFieldBase.setCaption("Base DN");
	textFieldBase.setImmediate(false);
	textFieldBase.setWidth("-1px");
	textFieldBase.setHeight("-1px");
	mainLayout.addComponent(textFieldBase);
	
	// textFieldFilter
	textFieldFilter = new TextField();
	textFieldFilter.setCaption("Filter");
	textFieldFilter.setImmediate(false);
	textFieldFilter.setWidth("-1px");
	textFieldFilter.setHeight("-1px");
	mainLayout.addComponent(textFieldFilter);
	
	// checkBoxShortIds
	checkBoxShortIds = new CheckBox();
	checkBoxShortIds.setCaption("Display short id’s.");
	checkBoxShortIds.setImmediate(false);
	checkBoxShortIds.setWidth("-1px");
	checkBoxShortIds.setHeight("-1px");
	mainLayout.addComponent(checkBoxShortIds);
	
	// tableRequiredAttributes
	tableRequiredAttributes = new Table();
	tableRequiredAttributes.setCaption("Attributes Returned");
	tableRequiredAttributes.setImmediate(false);
	tableRequiredAttributes.setWidth("-1px");
	tableRequiredAttributes.setHeight("-1px");
	mainLayout.addComponent(tableRequiredAttributes);
	
	// tableAttributes
	tableAttributes = new Table();
	tableAttributes.setCaption("Parameters - Attributes Needed (i.e. ?)");
	tableAttributes.setImmediate(false);
	tableAttributes.setWidth("-1px");
	tableAttributes.setHeight("-1px");
	tableAttributes.setInvalidAllowed(false);
	tableAttributes.setRequired(true);
	mainLayout.addComponent(tableAttributes);
	
	return mainLayout;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:70,代碼來源:PIPSQLResolverEditorWindow.java

示例13: buildHorizontalLayout_1

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
	// common part: create layout
	horizontalLayout_1 = new HorizontalLayout();
	horizontalLayout_1.setImmediate(false);
	horizontalLayout_1.setWidth("-1px");
	horizontalLayout_1.setHeight("-1px");
	horizontalLayout_1.setMargin(false);
	horizontalLayout_1.setSpacing(true);
	
	// textAreaDescription
	textAreaDescription = new TextArea();
	textAreaDescription.setCaption("Enter A Description");
	textAreaDescription.setImmediate(false);
	textAreaDescription.setWidth("50.0%");
	textAreaDescription.setHeight("-1px");
	horizontalLayout_1.addComponent(textAreaDescription);
	
	// textFieldFilter
	textFieldFilter = new TextField();
	textFieldFilter.setCaption("Filter Function By ID");
	textFieldFilter.setImmediate(false);
	textFieldFilter.setWidth("-1px");
	textFieldFilter.setHeight("-1px");
	horizontalLayout_1.addComponent(textFieldFilter);
	horizontalLayout_1.setComponentAlignment(textFieldFilter,
			new Alignment(9));
	
	// comboBoxDatatypeFilter
	comboBoxDatatypeFilter = new ComboBox();
	comboBoxDatatypeFilter.setCaption("Filter By Data Type");
	comboBoxDatatypeFilter.setImmediate(false);
	comboBoxDatatypeFilter.setWidth("-1px");
	comboBoxDatatypeFilter.setHeight("-1px");
	horizontalLayout_1.addComponent(comboBoxDatatypeFilter);
	horizontalLayout_1.setComponentAlignment(comboBoxDatatypeFilter,
			new Alignment(9));
	
	// checkBoxFilterIsBag
	checkBoxFilterIsBag = new CheckBox();
	checkBoxFilterIsBag.setCaption("Is Bag Filter");
	checkBoxFilterIsBag.setImmediate(false);
	checkBoxFilterIsBag.setWidth("-1px");
	checkBoxFilterIsBag.setHeight("-1px");
	horizontalLayout_1.addComponent(checkBoxFilterIsBag);
	horizontalLayout_1.setComponentAlignment(checkBoxFilterIsBag,
			new Alignment(9));
	
	return horizontalLayout_1;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:51,代碼來源:ApplyEditorWindow.java

示例14: buildMainLayout

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("-1px");
	mainLayout.setHeight("-1px");
	mainLayout.setMargin(true);
	mainLayout.setSpacing(true);
	
	// top-level component properties
	setWidth("-1px");
	setHeight("-1px");
	
	// upload
	upload = new Upload();
	upload.setCaption("Upload Xacml Policy File");
	upload.setImmediate(false);
	upload.setWidth("-1px");
	upload.setHeight("-1px");
	mainLayout.addComponent(upload);
	
	// checkBoxImportAttributes
	checkBoxImportAttributes = new CheckBox();
	checkBoxImportAttributes
			.setCaption("Import attributes into attribute dictionary.");
	checkBoxImportAttributes.setImmediate(false);
	checkBoxImportAttributes.setWidth("-1px");
	checkBoxImportAttributes.setHeight("-1px");
	mainLayout.addComponent(checkBoxImportAttributes);
	
	// checkBoxIgnoreStandard
	checkBoxIgnoreStandard = new CheckBox();
	checkBoxIgnoreStandard.setCaption("Ignore Standard Attributes");
	checkBoxIgnoreStandard.setImmediate(false);
	checkBoxIgnoreStandard.setWidth("-1px");
	checkBoxIgnoreStandard.setHeight("-1px");
	mainLayout.addComponent(checkBoxIgnoreStandard);
	mainLayout.setComponentAlignment(checkBoxIgnoreStandard, new Alignment(
			20));
	
	// checkBoxImportObligations
	checkBoxImportObligations = new CheckBox();
	checkBoxImportObligations
			.setCaption("Import obligations into obligation dictionary.");
	checkBoxImportObligations.setImmediate(false);
	checkBoxImportObligations.setWidth("-1px");
	checkBoxImportObligations.setHeight("-1px");
	mainLayout.addComponent(checkBoxImportObligations);
	
	// checkBoxImportAdvice
	checkBoxImportAdvice = new CheckBox();
	checkBoxImportAdvice
			.setCaption("Import advice into advice dictionary.");
	checkBoxImportAdvice.setImmediate(false);
	checkBoxImportAdvice.setWidth("-1px");
	checkBoxImportAdvice.setHeight("-1px");
	mainLayout.addComponent(checkBoxImportAdvice);
	
	return mainLayout;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:62,代碼來源:PolicyUploadWindow.java

示例15: buildHorizontalLayout_1

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
	// common part: create layout
	horizontalLayout_1 = new HorizontalLayout();
	horizontalLayout_1.setImmediate(false);
	horizontalLayout_1.setWidth("-1px");
	horizontalLayout_1.setHeight("-1px");
	horizontalLayout_1.setMargin(false);
	horizontalLayout_1.setSpacing(true);
	
	// buttonAddExpression
	buttonAddExpression = new Button();
	buttonAddExpression.setCaption("Add Expression");
	buttonAddExpression.setImmediate(true);
	buttonAddExpression.setWidth("-1px");
	buttonAddExpression.setHeight("-1px");
	horizontalLayout_1.addComponent(buttonAddExpression);
	
	// buttonDeleteExpression
	buttonDeleteExpression = new Button();
	buttonDeleteExpression.setCaption("Delete Expression");
	buttonDeleteExpression.setImmediate(true);
	buttonDeleteExpression.setWidth("-1px");
	buttonDeleteExpression.setHeight("-1px");
	horizontalLayout_1.addComponent(buttonDeleteExpression);
	
	// buttonClearAll
	buttonClearAll = new Button();
	buttonClearAll.setCaption("Clear All");
	buttonClearAll.setImmediate(true);
	buttonClearAll.setDescription("Clears all the expressions.");
	buttonClearAll.setWidth("-1px");
	buttonClearAll.setHeight("-1px");
	horizontalLayout_1.addComponent(buttonClearAll);
	
	// checkBoxShortName
	checkBoxShortName = new CheckBox();
	checkBoxShortName.setCaption("Display Short XACML ID's");
	checkBoxShortName.setImmediate(false);
	checkBoxShortName
			.setDescription("If checked, the right-most string of the function and datatype URI's will only be displayed.");
	checkBoxShortName.setWidth("-1px");
	checkBoxShortName.setHeight("-1px");
	horizontalLayout_1.addComponent(checkBoxShortName);
	
	return horizontalLayout_1;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:48,代碼來源:ExpressionBuilderComponent.java


注:本文中的com.vaadin.ui.CheckBox.setWidth方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。