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


Java TextArea.setCaption方法代码示例

本文整理汇总了Java中com.vaadin.ui.TextArea.setCaption方法的典型用法代码示例。如果您正苦于以下问题:Java TextArea.setCaption方法的具体用法?Java TextArea.setCaption怎么用?Java TextArea.setCaption使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.vaadin.ui.TextArea的用法示例。


在下文中一共展示了TextArea.setCaption方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildVerticalLayoutFile

import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
private VerticalLayout buildVerticalLayoutFile() {
	// common part: create layout
	verticalLayoutFile = new VerticalLayout();
	verticalLayoutFile.setImmediate(false);
	verticalLayoutFile.setWidth("100.0%");
	verticalLayoutFile.setHeight("100.0%");
	verticalLayoutFile.setMargin(false);
	
	// textAreaFile
	textAreaFile = new TextArea();
	textAreaFile.setCaption("Comentarios");
	textAreaFile.setImmediate(false);
	textAreaFile.setWidth("100.0%");
	textAreaFile.setHeight("-1px");
	verticalLayoutFile.addComponent(textAreaFile);
	
	// horizontalLayoutFileToolbox
	horizontalLayoutFileToolbox = buildHorizontalLayoutFileToolbox();
	verticalLayoutFile.addComponent(horizontalLayoutFileToolbox);
	
	return verticalLayoutFile;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:23,代码来源:AttachmentViewForm.java

示例2: generateUi

import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
/**
	 * Diese Methode erstellt das UI, bestehend aus Inputfeld für Projektname und
	 * Projektbeschreibung.
	 *
	 * @author Marco Glaser
	 */
	public void generateUi(){
		setWidth(95, UNITS_PERCENTAGE);
		setHeight(SIZE_UNDEFINED, 0);
		setStyleName("projectCreationLayout");
		
		projectNameInput = new TextField();
		projectDescriptionInput = new TextArea();
		gap = new Label();
		secondGap = new Label();
		
		projectNameInput.setWidth(80, UNITS_PERCENTAGE);
//		projectNameInput.setHeight(30, UNITS_PIXELS);
		projectNameInput.setStyleName("projectNameInput");
		projectDescriptionInput.setWidth(80, UNITS_PERCENTAGE);
		projectDescriptionInput.setHeight(300, UNITS_PIXELS);
		projectDescriptionInput.setStyleName("projectNameInput");
		gap.setHeight("20px");
		secondGap.setSizeFull();
		
		projectNameInput.setValue("Geben Sie hier den Projektnamen ein.");
		projectDescriptionInput.setValue("Geben Sie hier eine Beschreibung des Projekts ein.");
		
		addComponent(projectNameInput);
		addComponent(gap);
		addComponent(projectDescriptionInput);
		
		projectNameInput.setCaption("Projektname");
		projectNameInput.setValue("Geben Sie hier den Projektnamen ein.");
		projectDescriptionInput.setCaption("Projektbeschreibung");
		projectDescriptionInput.setValue("Geben Sie hier eine Projektbeschreibung ein");
//		addComponent(secondGap);
//		setExpandRatio(secondGap, 1.0f);
	}
 
开发者ID:DHBW-Karlsruhe,项目名称:businesshorizon2,代码行数:40,代码来源:ProjectCreationViewImpl.java

示例3: buildMainLayout

import com.vaadin.ui.TextArea; //导入方法依赖的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");
	
	// textAreaResults
	textAreaResults = new TextArea();
	textAreaResults.setCaption("Synch Results");
	textAreaResults.setImmediate(false);
	textAreaResults.setWidth("462px");
	textAreaResults.setHeight("222px");
	mainLayout.addComponent(textAreaResults);
	
	// buttonSynchronize
	buttonSynchronize = new Button();
	buttonSynchronize.setCaption("Synchronize");
	buttonSynchronize.setImmediate(true);
	buttonSynchronize.setWidth("-1px");
	buttonSynchronize.setHeight("-1px");
	mainLayout.addComponent(buttonSynchronize);
	mainLayout.setComponentAlignment(buttonSynchronize, new Alignment(24));
	
	return mainLayout;
}
 
开发者ID:apache,项目名称:incubator-openaz,代码行数:34,代码来源:GitSynchronizeWindow.java

示例4: buildDialogLayout

import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@Override
protected void buildDialogLayout() {
    final VerticalLayout mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);
    mainLayout.setSizeFull();
    mainLayout.setSpacing(true);
    mainLayout.setMargin(true);

    txtTarget = new TextField();
    txtTarget.setWidth("100%");
    txtTarget.setHeight("-1px");
    txtTarget.setCaption(ctx.tr("SparqlSelectVaadinDialog.txtTarget"));
    txtTarget.setRequired(true);
    mainLayout.addComponent(txtTarget);
    mainLayout.setExpandRatio(txtTarget, 0);

    txtQuery = new TextArea();
    txtQuery.setSizeFull();
    txtQuery.setCaption(ctx.tr("SparqlSelectVaadinDialog.txtQuery"));
    txtQuery.addValidator(createSparqlQueryValidator());
    txtQuery.setImmediate(true);
    txtTarget.setRequired(true);
    mainLayout.addComponent(txtQuery);
    mainLayout.setExpandRatio(txtQuery, 1);

    setCompositionRoot(mainLayout);
}
 
开发者ID:UnifiedViews,项目名称:Plugins,代码行数:28,代码来源:SparqlSelectVaadinDialog.java

示例5: buildMainLayout

import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new AbsoluteLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("380px");
	mainLayout.setHeight("260px");
	
	// top-level component properties
	setWidth("380px");
	setHeight("260px");
	
	// txtNombre
	txtNombre = new TextField();
	txtNombre.setCaption("Nombre");
	txtNombre.setImmediate(false);
	txtNombre.setWidth("240px");
	txtNombre.setHeight("-1px");
	mainLayout.addComponent(txtNombre, "top:40.0px;left:60.0px;");
	
	// btnGuardar
	btnGuardar = new Button();
	btnGuardar.setCaption("Guardar");
	btnGuardar.setImmediate(true);
	btnGuardar.setWidth("240px");
	btnGuardar.setHeight("-1px");
	mainLayout.addComponent(btnGuardar, "top:194.0px;left:60.0px;");
	
	// txtDesc
	txtDesc = new TextArea();
	txtDesc.setCaption("Descripción");
	txtDesc.setImmediate(false);
	txtDesc.setWidth("240px");
	txtDesc.setHeight("100px");
	mainLayout.addComponent(txtDesc, "top:80.0px;left:60.0px;");
	
	return mainLayout;
}
 
开发者ID:unicesi,项目名称:academ,代码行数:39,代码来源:PanelEditarPrograma.java

示例6: buildMainLayout

import com.vaadin.ui.TextArea; //导入方法依赖的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");
	
	// textAreaComments
	textAreaComments = new TextArea();
	textAreaComments.setCaption("Add Comments");
	textAreaComments.setImmediate(false);
	textAreaComments
			.setDescription("Enter comments that reflect the changes you have made to the repository domains and/or policy files.");
	textAreaComments.setWidth("400px");
	textAreaComments.setHeight("-1px");
	textAreaComments.setInvalidAllowed(false);
	textAreaComments.setRequired(true);
	textAreaComments
			.setInputPrompt("Eg. Add new rule for employees in marketing department.");
	mainLayout.addComponent(textAreaComments);
	
	// tableChanges
	tableChanges = new Table();
	tableChanges.setCaption("Changes To Be Pushed");
	tableChanges.setImmediate(false);
	tableChanges.setWidth("100.0%");
	tableChanges.setHeight("-1px");
	mainLayout.addComponent(tableChanges);
	mainLayout.setExpandRatio(tableChanges, 1.0f);
	
	// buttonPush
	buttonPush = new Button();
	buttonPush.setCaption("Push Changes");
	buttonPush.setImmediate(true);
	buttonPush.setWidth("-1px");
	buttonPush.setHeight("-1px");
	mainLayout.addComponent(buttonPush);
	mainLayout.setComponentAlignment(buttonPush, new Alignment(48));
	
	return mainLayout;
}
 
开发者ID:apache,项目名称:incubator-openaz,代码行数:49,代码来源:GitPushWindow.java

示例7: buildMainLayout

import com.vaadin.ui.TextArea; //导入方法依赖的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

示例8: buildHorizontalLayout_1

import com.vaadin.ui.TextArea; //导入方法依赖的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

示例9: buildMainLayout

import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("100.0%");
	mainLayout.setHeight("-1px");
	mainLayout.setMargin(true);
	mainLayout.setSpacing(true);
	
	// top-level component properties
	setWidth("-1px");
	setHeight("-1px");
	
	// textName
	textName = new TextField();
	textName.setCaption("Group Name");
	textName.setImmediate(false);
	textName.setWidth("-1px");
	textName.setHeight("-1px");
	textName.setRequired(true);
	mainLayout.addComponent(textName);
	
	// textDescription
	textDescription = new TextArea();
	textDescription.setCaption("Group Description");
	textDescription.setImmediate(false);
	textDescription.setWidth("100.0%");
	textDescription.setHeight("-1px");
	textDescription.setNullSettingAllowed(true);
	mainLayout.addComponent(textDescription);
	mainLayout.setExpandRatio(textDescription, 1.0f);
	
	// tablePolicies
	tablePolicies = new Table();
	tablePolicies.setCaption("Policies");
	tablePolicies.setImmediate(false);
	tablePolicies.setWidth("-1px");
	tablePolicies.setHeight("-1px");
	mainLayout.addComponent(tablePolicies);
	mainLayout.setExpandRatio(tablePolicies, 1.0f);
	
	// tablePIP
	tablePIP = new Table();
	tablePIP.setCaption("PIP Configurations");
	tablePIP.setImmediate(false);
	tablePIP.setWidth("-1px");
	tablePIP.setHeight("-1px");
	mainLayout.addComponent(tablePIP);
	mainLayout.setExpandRatio(tablePIP, 1.0f);
	
	// buttonSave
	buttonSave = new Button();
	buttonSave.setCaption("Save");
	buttonSave.setImmediate(true);
	buttonSave.setWidth("-1px");
	buttonSave.setHeight("-1px");
	mainLayout.addComponent(buttonSave);
	mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
	
	return mainLayout;
}
 
开发者ID:apache,项目名称:incubator-openaz,代码行数:63,代码来源:EditPDPGroupWindow.java

示例10: buildMainLayout

import com.vaadin.ui.TextArea; //导入方法依赖的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");
	
	// labelRuleID
	labelRuleID = new Label();
	labelRuleID.setCaption("Rule ID");
	labelRuleID.setImmediate(false);
	labelRuleID.setWidth("100.0%");
	labelRuleID.setHeight("-1px");
	labelRuleID.setValue("Label");
	mainLayout.addComponent(labelRuleID);
	mainLayout.setExpandRatio(labelRuleID, 1.0f);
	
	// optionGroupEffect
	optionGroupEffect = new OptionGroup();
	optionGroupEffect.setCaption("Choose the effect.");
	optionGroupEffect.setImmediate(false);
	optionGroupEffect.setWidth("-1px");
	optionGroupEffect.setHeight("-1px");
	optionGroupEffect.setInvalidAllowed(false);
	optionGroupEffect.setRequired(true);
	mainLayout.addComponent(optionGroupEffect);
	
	// textAreaDescription
	textAreaDescription = new TextArea();
	textAreaDescription.setCaption("Enter a description for the Rule.");
	textAreaDescription.setImmediate(false);
	textAreaDescription.setWidth("100.0%");
	textAreaDescription.setHeight("-1px");
	textAreaDescription.setNullSettingAllowed(true);
	textAreaDescription.setNullRepresentation("");
	mainLayout.addComponent(textAreaDescription);
	mainLayout.setExpandRatio(textAreaDescription, 1.0f);
	
	// buttonSave
	buttonSave = new Button();
	buttonSave.setCaption("Save");
	buttonSave.setImmediate(true);
	buttonSave.setWidth("-1px");
	buttonSave.setHeight("-1px");
	mainLayout.addComponent(buttonSave);
	mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
	
	return mainLayout;
}
 
开发者ID:apache,项目名称:incubator-openaz,代码行数:57,代码来源:RuleEditorWindow.java

示例11: buildMainLayout

import com.vaadin.ui.TextArea; //导入方法依赖的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");
	
	// labelID
	labelID = new Label();
	labelID.setCaption("Policy Set ID");
	labelID.setImmediate(false);
	labelID.setWidth("100.0%");
	labelID.setHeight("-1px");
	labelID.setValue("Label");
	mainLayout.addComponent(labelID);
	
	// textFieldVersion
	textFieldVersion = new TextField();
	textFieldVersion.setCaption("Version");
	textFieldVersion.setImmediate(false);
	textFieldVersion
			.setDescription("The format is numbers only separated by decimal point.");
	textFieldVersion.setWidth("-1px");
	textFieldVersion.setHeight("-1px");
	textFieldVersion.setInvalidAllowed(false);
	textFieldVersion.setRequired(true);
	textFieldVersion.setInputPrompt("Eg. 1 or 1.0 or 1.0.0 etc.");
	mainLayout.addComponent(textFieldVersion);
	
	// listSelectAlgorithm
	listSelectAlgorithm = new ListSelect();
	listSelectAlgorithm.setCaption("Policy Combining Algorithm");
	listSelectAlgorithm.setImmediate(false);
	listSelectAlgorithm.setWidth("100.0%");
	listSelectAlgorithm.setHeight("-1px");
	listSelectAlgorithm.setInvalidAllowed(false);
	listSelectAlgorithm.setRequired(true);
	mainLayout.addComponent(listSelectAlgorithm);
	
	// textAreaDescription
	textAreaDescription = new TextArea();
	textAreaDescription.setCaption("Description");
	textAreaDescription.setImmediate(false);
	textAreaDescription.setWidth("100.0%");
	textAreaDescription.setHeight("-1px");
	mainLayout.addComponent(textAreaDescription);
	mainLayout.setExpandRatio(textAreaDescription, 1.0f);
	
	// buttonSave
	buttonSave = new Button();
	buttonSave.setCaption("Save");
	buttonSave.setImmediate(true);
	buttonSave.setWidth("-1px");
	buttonSave.setHeight("-1px");
	mainLayout.addComponent(buttonSave);
	mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
	
	return mainLayout;
}
 
开发者ID:apache,项目名称:incubator-openaz,代码行数:67,代码来源:PolicyEditorWindow.java

示例12: buildMainLayout

import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@AutoGenerated
private FormLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new FormLayout();
	mainLayout.setImmediate(false);
	
	// textFieldPolicyName
	textFieldPolicyName = new TextField();
	textFieldPolicyName.setCaption("Policy File Name");
	textFieldPolicyName.setImmediate(true);
	textFieldPolicyName.setWidth("-1px");
	textFieldPolicyName.setHeight("-1px");
	textFieldPolicyName.setInputPrompt("Enter filename eg. foobar.xml");
	textFieldPolicyName.setRequired(true);
	mainLayout.addComponent(textFieldPolicyName);
	
	// textAreaDescription
	textAreaDescription = new TextArea();
	textAreaDescription.setCaption("Description");
	textAreaDescription.setImmediate(false);
	textAreaDescription.setWidth("100%");
	textAreaDescription.setHeight("-1px");
	textAreaDescription
			.setInputPrompt("Enter a description for the Policy/PolicySet.");
	textAreaDescription.setNullSettingAllowed(true);
	mainLayout.addComponent(textAreaDescription);
	
	// optionPolicySet
	optionPolicySet = new OptionGroup();
	optionPolicySet.setCaption("Policy or PolicySet?");
	optionPolicySet.setImmediate(true);
	optionPolicySet
			.setDescription("Is the root level a Policy or Policy Set.");
	optionPolicySet.setWidth("-1px");
	optionPolicySet.setHeight("-1px");
	optionPolicySet.setRequired(true);
	mainLayout.addComponent(optionPolicySet);
	
	// comboAlgorithms
	comboAlgorithms = new ComboBox();
	comboAlgorithms.setCaption("Combining Algorithm");
	comboAlgorithms.setImmediate(false);
	comboAlgorithms.setDescription("Select the combining algorithm.");
	comboAlgorithms.setWidth("-1px");
	comboAlgorithms.setHeight("-1px");
	comboAlgorithms.setRequired(true);
	mainLayout.addComponent(comboAlgorithms);
	
	// buttonSave
	buttonSave = new Button();
	buttonSave.setCaption("Save");
	buttonSave.setImmediate(true);
	buttonSave.setWidth("-1px");
	buttonSave.setHeight("-1px");
	mainLayout.addComponent(buttonSave);
	mainLayout.setComponentAlignment(buttonSave, new Alignment(48));

	return mainLayout;
}
 
开发者ID:apache,项目名称:incubator-openaz,代码行数:60,代码来源:PolicyNameEditorWindow.java

示例13: buildMainLayout

import com.vaadin.ui.TextArea; //导入方法依赖的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");
	
	// textId
	textId = new TextField();
	textId.setCaption("PDP URL");
	textId.setImmediate(false);
	textId.setDescription("The URL is the ID of the PDP");
	textId.setWidth("-1px");
	textId.setHeight("-1px");
	textId.setRequired(true);
	textId.setInputPrompt("Eg. http://localhost:8080/pdp");
	mainLayout.addComponent(textId);
	
	// textName
	textName = new TextField();
	textName.setCaption("PDP Name");
	textName.setImmediate(false);
	textName.setWidth("-1px");
	textName.setHeight("-1px");
	mainLayout.addComponent(textName);
	
	// textDescription
	textDescription = new TextArea();
	textDescription.setCaption("PDP Description");
	textDescription.setImmediate(false);
	textDescription.setWidth("100.0%");
	textDescription.setHeight("-1px");
	textDescription.setNullSettingAllowed(true);
	mainLayout.addComponent(textDescription);
	mainLayout.setExpandRatio(textDescription, 1.0f);
	
	// buttonSave
	buttonSave = new Button();
	buttonSave.setCaption("Save");
	buttonSave.setImmediate(true);
	buttonSave.setWidth("-1px");
	buttonSave.setHeight("-1px");
	mainLayout.addComponent(buttonSave);
	mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
	
	return mainLayout;
}
 
开发者ID:apache,项目名称:incubator-openaz,代码行数:55,代码来源:EditPDPWindow.java

示例14: buildMainLayout

import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new AbsoluteLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("560px");
	mainLayout.setHeight("300px");
	mainLayout.setMargin(true);
	
	// top-level component properties
	setWidth("560px");
	setHeight("300px");
	
	// protocolTypeField
	protocolTypeField = new TextField();
	protocolTypeField.setCaption("Tipo Procolo");
	protocolTypeField.setImmediate(false);
	protocolTypeField.setWidth("340px");
	protocolTypeField.setHeight("24px");
	protocolTypeField.setTabIndex(1);
	mainLayout.addComponent(protocolTypeField, "top:56.0px;left:20.0px;");
	
	// fileNameField
	fileNameField = new TextField();
	fileNameField.setCaption("Nombre Fichero");
	fileNameField.setImmediate(false);
	fileNameField.setWidth("340px");
	fileNameField.setHeight("-1px");
	mainLayout.addComponent(fileNameField, "top:17.0px;left:20.0px;");
	
	// protocolDateField
	protocolDateField = new PopupDateField();
	protocolDateField.setCaption("Fecha Protocolo");
	protocolDateField.setImmediate(false);
	protocolDateField.setWidth("160px");
	protocolDateField.setHeight("-1px");
	mainLayout.addComponent(protocolDateField, "top:20.0px;left:380.0px;");
	
	// payloadField
	payloadField = new TextArea();
	payloadField.setCaption("Carga Protocolo");
	payloadField.setImmediate(false);
	payloadField.setWidth("520px");
	payloadField.setHeight("180px");
	mainLayout.addComponent(payloadField, "top:100.0px;left:20.0px;");
	
	return mainLayout;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:49,代码来源:ProtocolViewForm.java

示例15: buildMainLayout

import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new AbsoluteLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("440px");
	mainLayout.setHeight("300px");
	
	// top-level component properties
	setWidth("440px");
	setHeight("300px");
	
	// btn_guardar
	btn_guardar = new Button();
	btn_guardar.setCaption("Guardar");
	btn_guardar.setImmediate(true);
	btn_guardar.setWidth("320px");
	btn_guardar.setHeight("-1px");
	mainLayout.addComponent(btn_guardar, "top:240.0px;left:60.0px;");
	
	// txt_nombre
	txt_nombre = new TextField();
	txt_nombre.setCaption("Nombre");
	txt_nombre.setImmediate(false);
	txt_nombre.setWidth("320px");
	txt_nombre.setHeight("-1px");
	mainLayout.addComponent(txt_nombre, "top:40.0px;left:60.0px;");
	
	// txt_descripcion
	txt_descripcion = new TextArea();
	txt_descripcion.setCaption("Descripción");
	txt_descripcion.setImmediate(false);
	txt_descripcion.setWidth("320px");
	txt_descripcion.setHeight("108px");
	mainLayout.addComponent(txt_descripcion, "top:120.0px;right:60.0px;");
	
	// txtCodigo
	txtCodigo = new TextField();
	txtCodigo.setCaption("Código");
	txtCodigo.setImmediate(false);
	txtCodigo.setWidth("320px");
	txtCodigo.setHeight("-1px");
	mainLayout.addComponent(txtCodigo, "top:80.0px;left:60.0px;");
	
	return mainLayout;
}
 
开发者ID:unicesi,项目名称:academ,代码行数:47,代码来源:PanelCrearPrograma.java


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