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


Java CheckBox.setHeight方法代碼示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例4: 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

示例5: 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

示例6: 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

示例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);
	
	// 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

示例8: buildHorizontalLayoutToolbar

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private HorizontalLayout buildHorizontalLayoutToolbar() {
	// common part: create layout
	horizontalLayoutToolbar = new HorizontalLayout();
	horizontalLayoutToolbar.setImmediate(false);
	horizontalLayoutToolbar.setWidth("-1px");
	horizontalLayoutToolbar.setHeight("-1px");
	horizontalLayoutToolbar.setMargin(true);
	horizontalLayoutToolbar.setSpacing(true);
	
	// checkBoxReadOnly
	checkBoxReadOnly = new CheckBox();
	checkBoxReadOnly.setCaption("Read Only");
	checkBoxReadOnly.setImmediate(false);
	checkBoxReadOnly
			.setDescription("Check this to turn-off policy editing.");
	checkBoxReadOnly.setWidth("-1px");
	checkBoxReadOnly.setHeight("-1px");
	horizontalLayoutToolbar.addComponent(checkBoxReadOnly);
	
	// checkBoxAutoSave
	checkBoxAutoSave = new CheckBox();
	checkBoxAutoSave.setCaption("Auto Save");
	checkBoxAutoSave.setImmediate(false);
	checkBoxAutoSave
			.setDescription("Check this to turn-on automatic saving of policy when a change occurs.");
	checkBoxAutoSave.setWidth("-1px");
	checkBoxAutoSave.setHeight("-1px");
	horizontalLayoutToolbar.addComponent(checkBoxAutoSave);
	
	// buttonSave
	buttonSave = new Button();
	buttonSave.setCaption("Save");
	buttonSave.setImmediate(true);
	buttonSave.setDescription("Click to save the policy.");
	buttonSave.setWidth("-1px");
	buttonSave.setHeight("-1px");
	horizontalLayoutToolbar.addComponent(buttonSave);
	
	// buttonViewXML
	buttonViewXML = new Button();
	buttonViewXML.setCaption("View XML");
	buttonViewXML.setImmediate(true);
	buttonViewXML.setWidth("-1px");
	buttonViewXML.setHeight("-1px");
	horizontalLayoutToolbar.addComponent(buttonViewXML);
	
	// buttonExport
	buttonExport = new Button();
	buttonExport.setCaption("Export Policy");
	buttonExport.setImmediate(false);
	buttonExport.setWidth("-1px");
	buttonExport.setHeight("-1px");
	horizontalLayoutToolbar.addComponent(buttonExport);
	
	return horizontalLayoutToolbar;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:58,代碼來源:PolicyEditor.java

示例9: buildMainLayout

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new AbsoluteLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("580px");
	mainLayout.setHeight("280px");
	mainLayout.setMargin(true);
	
	// top-level component properties
	setWidth("580px");
	setHeight("280px");
	
	// activeField
	activeField = new CheckBox();
	activeField.setCaption("Activo");
	activeField.setImmediate(false);
	activeField.setWidth("-1px");
	activeField.setHeight("-1px");
	activeField.setRequired(true);
	mainLayout.addComponent(activeField, "top:14.0px;left:507.0px;");
	
	// commentField
	commentField = new TextField();
	commentField.setCaption("Comentario");
	commentField.setImmediate(false);
	commentField.setWidth("540px");
	commentField.setHeight("160px");
	mainLayout.addComponent(commentField, "top:100.0px;left:20.0px;");
	
	// codeField
	codeField = new TextField();
	codeField.setCaption("Código");
	codeField.setImmediate(false);
	codeField.setWidth("160px");
	codeField.setHeight("-1px");
	codeField.setRequired(true);
	mainLayout.addComponent(codeField, "top:17.0px;left:20.0px;");
	
	// descriptionField
	descriptionField = new TextField();
	descriptionField.setCaption("Descripción");
	descriptionField.setImmediate(false);
	descriptionField.setWidth("541px");
	descriptionField.setHeight("-1px");
	descriptionField.setRequired(true);
	mainLayout.addComponent(descriptionField, "top:56.0px;left:20.0px;");
	
	return mainLayout;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:51,代碼來源:ActionViewForm.java

示例10: buildMainLayout

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new AbsoluteLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("560px");
	mainLayout.setHeight("280px");
	mainLayout.setMargin(true);
	
	// top-level component properties
	setWidth("560px");
	setHeight("280px");
	
	// activeField
	activeField = new CheckBox();
	activeField.setCaption("Activo");
	activeField.setImmediate(false);
	activeField.setWidth("-1px");
	activeField.setHeight("-1px");
	activeField.setTabIndex(2);
	activeField.setRequired(true);
	mainLayout.addComponent(activeField, "top:20.0px;left:486.0px;");
	
	// codeField
	codeField = new TextField();
	codeField.setCaption("Código");
	codeField.setImmediate(false);
	codeField.setWidth("120px");
	codeField.setHeight("-1px");
	codeField.setRequired(true);
	mainLayout.addComponent(codeField, "top:20.0px;left:20.0px;");
	
	// commentField
	commentField = new TextField();
	commentField.setCaption("Comentarios");
	commentField.setImmediate(false);
	commentField.setWidth("520px");
	commentField.setHeight("120px");
	commentField.setTabIndex(6);
	mainLayout.addComponent(commentField, "top:140.0px;left:20.0px;");
	
	// descriptionField
	descriptionField = new TextField();
	descriptionField.setCaption("Descripción");
	descriptionField.setImmediate(false);
	descriptionField.setWidth("520px");
	descriptionField.setHeight("-1px");
	descriptionField.setTabIndex(3);
	mainLayout.addComponent(descriptionField, "top:60.0px;left:20.0px;");
	
	// nameField
	nameField = new TextField();
	nameField.setCaption("Nombre");
	nameField.setImmediate(false);
	nameField.setWidth("320px");
	nameField.setHeight("-1px");
	nameField.setTabIndex(1);
	nameField.setRequired(true);
	mainLayout.addComponent(nameField, "top:20.0px;left:160.0px;");
	
	// areaTypeField
	areaTypeField = new ComboBox();
	areaTypeField.setCaption("Tipo Area");
	areaTypeField.setImmediate(false);
	areaTypeField.setWidth("-1px");
	areaTypeField.setHeight("-1px");
	areaTypeField.setTabIndex(4);
	areaTypeField.setRequired(true);
	mainLayout.addComponent(areaTypeField, "top:100.0px;left:19.0px;");
	
	return mainLayout;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:73,代碼來源:AreaViewForm.java

示例11: buildMainLayout

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new AbsoluteLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("580px");
	mainLayout.setHeight("440px");
	mainLayout.setMargin(true);
	
	// top-level component properties
	setWidth("580px");
	setHeight("440px");
	
	// activeField
	activeField = new CheckBox();
	activeField.setCaption("Activo");
	activeField.setImmediate(false);
	activeField.setWidth("-1px");
	activeField.setHeight("-1px");
	mainLayout.addComponent(activeField, "top:14.0px;left:507.0px;");
	
	// commentField
	commentField = new TextField();
	commentField.setCaption("Comentario");
	commentField.setImmediate(false);
	commentField.setWidth("540px");
	commentField.setHeight("160px");
	mainLayout.addComponent(commentField, "top:100.0px;left:20.0px;");
	
	// codeField
	codeField = new TextField();
	codeField.setCaption("Código");
	codeField.setImmediate(false);
	codeField.setWidth("160px");
	codeField.setHeight("-1px");
	mainLayout.addComponent(codeField, "top:17.0px;left:20.0px;");
	
	// brnAdd
	brnAdd = new Button();
	brnAdd.setCaption("+");
	brnAdd.setImmediate(true);
	brnAdd.setWidth("-1px");
	brnAdd.setHeight("-1px");
	mainLayout.addComponent(brnAdd, "top:283.0px;left:525.0px;");
	
	// btnRemove
	btnRemove = new Button();
	btnRemove.setCaption("-");
	btnRemove.setImmediate(true);
	btnRemove.setWidth("-1px");
	btnRemove.setHeight("-1px");
	mainLayout.addComponent(btnRemove, "top:320.0px;left:525.0px;");
	
	// descripctionField
	descripctionField = new TextField();
	descripctionField.setCaption("Descripción");
	descripctionField.setImmediate(false);
	descripctionField.setWidth("541px");
	descripctionField.setHeight("-1px");
	mainLayout.addComponent(descripctionField, "top:56.0px;left:20.0px;");
	
	// actionsField
	actionsField = new Table();
	actionsField.setCaption("Acciones");
	actionsField.setImmediate(false);
	actionsField.setWidth("500px");
	actionsField.setHeight("139px");
	mainLayout.addComponent(actionsField, "top:281.0px;left:20.0px;");
	
	return mainLayout;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:72,代碼來源:ResourceViewForm.java

示例12: buildMainLayout

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new AbsoluteLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("460px");
	mainLayout.setHeight("140px");
	mainLayout.setMargin(true);
	
	// top-level component properties
	setWidth("460px");
	setHeight("140px");
	
	// activeField
	activeField = new CheckBox();
	activeField.setCaption("Active");
	activeField.setImmediate(false);
	activeField.setWidth("-1px");
	activeField.setHeight("-1px");
	mainLayout.addComponent(activeField, "top:20.0px;left:388.0px;");
	
	// codeField
	codeField = new TextField();
	codeField.setCaption("Code");
	codeField.setImmediate(false);
	codeField.setWidth("114px");
	codeField.setHeight("-1px");
	mainLayout.addComponent(codeField, "top:20.0px;left:20.0px;");
	
	// descriptionField
	descriptionField = new TextField();
	descriptionField.setCaption("Description");
	descriptionField.setImmediate(false);
	descriptionField.setWidth("420px");
	descriptionField.setHeight("-1px");
	mainLayout.addComponent(descriptionField, "top:60.0px;left:20.0px;");
	
	// fileNameField
	templateField = new FileField();
	templateField.setImmediate(false);
	templateField.setWidth("420px");
	templateField.setHeight("-1px");
	mainLayout.addComponent(templateField, "top:100.0px;left:20.0px;");
	
	return mainLayout;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:47,代碼來源:ReportViewForm.java

示例13: buildHorizontalLayoutHeader

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private HorizontalLayout buildHorizontalLayoutHeader() {
	// common part: create layout
	horizontalLayoutHeader = new HorizontalLayout();
	horizontalLayoutHeader.setImmediate(false);
	horizontalLayoutHeader.setWidth("100.0%");
	horizontalLayoutHeader.setHeight("-1px");
	horizontalLayoutHeader.setMargin(true);
	horizontalLayoutHeader.setSpacing(true);
	
	// codeField
	codeField = new TextField();
	codeField.setCaption("Código");
	codeField.setImmediate(false);
	codeField.setWidth("100px");
	codeField.setHeight("-1px");
	codeField.setRequired(true);
	horizontalLayoutHeader.addComponent(codeField);
	
	// nameField
	nameField = new TextField();
	nameField.setCaption("Nombre Comercial");
	nameField.setImmediate(false);
	nameField.setWidth("100.0%");
	nameField.setHeight("-1px");
	nameField.setRequired(true);
	horizontalLayoutHeader.addComponent(nameField);
	horizontalLayoutHeader.setExpandRatio(nameField, 1.0f);
	
	// activeField
	activeField = new CheckBox();
	activeField.setCaption("Activo");
	activeField.setImmediate(false);
	activeField.setWidth("80px");
	activeField.setHeight("-1px");
	activeField.setRequired(true);
	horizontalLayoutHeader.addComponent(activeField);
	horizontalLayoutHeader.setComponentAlignment(activeField,
			new Alignment(10));
	
	return horizontalLayoutHeader;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:43,代碼來源:ClientViewForm.java

示例14: buildMainLayout

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new AbsoluteLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("580px");
	mainLayout.setHeight("280px");
	mainLayout.setMargin(true);
	
	// top-level component properties
	setWidth("580px");
	setHeight("280px");
	
	// activeField
	activeField = new CheckBox();
	activeField.setCaption("Activo");
	activeField.setImmediate(false);
	activeField.setWidth("-1px");
	activeField.setHeight("-1px");
	activeField.setRequired(true);
	mainLayout.addComponent(activeField, "top:14.0px;left:507.0px;");
	
	// commentField
	commentField = new TextField();
	commentField.setCaption("Comentario");
	commentField.setImmediate(true);
	commentField.setWidth("540px");
	commentField.setHeight("160px");
	mainLayout.addComponent(commentField, "top:100.0px;left:20.0px;");
	
	// codeField
	codeField = new TextField();
	codeField.setCaption("Código");
	codeField.setImmediate(false);
	codeField.setWidth("160px");
	codeField.setHeight("-1px");
	codeField.setRequired(true);
	mainLayout.addComponent(codeField, "top:17.0px;left:20.0px;");
	
	// descriptionField
	descriptionField = new TextField();
	descriptionField.setCaption("Descripción");
	descriptionField.setImmediate(false);
	descriptionField.setWidth("541px");
	descriptionField.setHeight("-1px");
	descriptionField.setRequired(true);
	mainLayout.addComponent(descriptionField, "top:56.0px;left:20.0px;");
	
	// menuCommandResourceField
	menuCommandResourceField = new ComboBox();
	menuCommandResourceField.setCaption("Módulo:");
	menuCommandResourceField.setImmediate(true);
	menuCommandResourceField.setWidth("280px");
	menuCommandResourceField.setHeight("-1px");
	menuCommandResourceField.setRequired(true);
	mainLayout.addComponent(menuCommandResourceField,
			"top:17.0px;left:200.0px;");
	
	return mainLayout;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:61,代碼來源:PermissionViewForm.java

示例15: buildMainLayout

import com.vaadin.ui.CheckBox; //導入方法依賴的package包/類
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new AbsoluteLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("700px");
	mainLayout.setHeight("440px");
	mainLayout.setMargin(true);
	
	// top-level component properties
	setWidth("700px");
	setHeight("440px");
	
	// activeField
	activeField = new CheckBox();
	activeField.setCaption("Activo");
	activeField.setImmediate(false);
	activeField.setWidth("-1px");
	activeField.setHeight("-1px");
	activeField.setTabIndex(1);
	activeField.setRequired(true);
	mainLayout.addComponent(activeField, "top:14.0px;left:507.0px;");
	
	// commentField
	commentField = new TextField();
	commentField.setCaption("Comentario");
	commentField.setImmediate(false);
	commentField.setWidth("540px");
	commentField.setHeight("160px");
	commentField.setTabIndex(3);
	mainLayout.addComponent(commentField, "top:100.0px;left:20.0px;");
	
	// passwordField
	passwordField = new PasswordField();
	passwordField.setCaption("Clave");
	passwordField.setImmediate(false);
	passwordField.setWidth("160px");
	passwordField.setHeight("-1px");
	passwordField.setTabIndex(2);
	passwordField.setRequired(true);
	mainLayout.addComponent(passwordField, "top:56.0px;left:20.0px;");
	
	// usernameField
	usernameField = new TextField();
	usernameField.setCaption("Nombre usuario");
	usernameField.setImmediate(false);
	usernameField.setWidth("160px");
	usernameField.setHeight("-1px");
	usernameField.setRequired(true);
	mainLayout.addComponent(usernameField, "top:17.0px;left:20.0px;");
	
	// rolesField
	rolesField = new Table();
	rolesField.setCaption("Roles");
	rolesField.setImmediate(false);
	rolesField.setWidth("501px");
	rolesField.setHeight("140px");
	mainLayout.addComponent(rolesField, "top:281.0px;left:19.0px;");
	
	// brnAdd
	brnAdd = new Button();
	brnAdd.setCaption("+");
	brnAdd.setImmediate(true);
	brnAdd.setWidth("-1px");
	brnAdd.setHeight("-1px");
	mainLayout.addComponent(brnAdd, "top:283.0px;left:525.0px;");
	
	// btnRemove
	btnRemove = new Button();
	btnRemove.setCaption("-");
	btnRemove.setImmediate(true);
	btnRemove.setWidth("-1px");
	btnRemove.setHeight("-1px");
	mainLayout.addComponent(btnRemove, "top:320.0px;left:525.0px;");
	
	return mainLayout;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:78,代碼來源:UserViewForm.java


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