本文整理汇总了Java中com.vaadin.ui.TextField.setHeight方法的典型用法代码示例。如果您正苦于以下问题:Java TextField.setHeight方法的具体用法?Java TextField.setHeight怎么用?Java TextField.setHeight使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.ui.TextField
的用法示例。
在下文中一共展示了TextField.setHeight方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildVerticalLayout_2
import com.vaadin.ui.TextField; //导入方法依赖的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;
}
示例2: buildHorizontalLayout_2
import com.vaadin.ui.TextField; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_2() {
// common part: create layout
horizontalLayout_2 = new HorizontalLayout();
horizontalLayout_2.setImmediate(false);
horizontalLayout_2.setWidth("-1px");
horizontalLayout_2.setHeight("-1px");
horizontalLayout_2.setMargin(false);
horizontalLayout_2.setSpacing(true);
// comboBoxMax
comboBoxMax = new ComboBox();
comboBoxMax.setCaption("Maximum Type");
comboBoxMax.setImmediate(true);
comboBoxMax.setDescription("Select the type for the maximum.");
comboBoxMax.setWidth("-1px");
comboBoxMax.setHeight("-1px");
horizontalLayout_2.addComponent(comboBoxMax);
// textFieldMax
textFieldMax = new TextField();
textFieldMax.setCaption("Maximum Value");
textFieldMax.setImmediate(true);
textFieldMax.setDescription("Enter a value for the maxmum.");
textFieldMax.setWidth("-1px");
textFieldMax.setHeight("-1px");
textFieldMax.setInvalidAllowed(false);
textFieldMax.setInputPrompt("eg. 100");
horizontalLayout_2.addComponent(textFieldMax);
return horizontalLayout_2;
}
示例3: buildMainLayout
import com.vaadin.ui.TextField; //导入方法依赖的package包/类
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(false);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// textFieldClassname
textFieldClassname = new TextField();
textFieldClassname.setCaption("Java Classname");
textFieldClassname.setImmediate(false);
textFieldClassname
.setDescription("Java classname of the code implementing the custom PIP.");
textFieldClassname.setWidth("-1px");
textFieldClassname.setHeight("-1px");
textFieldClassname.setInputPrompt("Eg. com.foo.MyPIP");
mainLayout.addComponent(textFieldClassname);
mainLayout.setExpandRatio(textFieldClassname, 1.0f);
// pipParameterComponent
pipParameterComponent = new PIPParameterComponent(this.entity.getEntity());
pipParameterComponent.setImmediate(false);
pipParameterComponent.setWidth("-1px");
pipParameterComponent.setHeight("-1px");
mainLayout.addComponent(pipParameterComponent);
return mainLayout;
}
示例4: buildMainLayout
import com.vaadin.ui.TextField; //导入方法依赖的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");
// textFieldID
textFieldID = new TextField();
textFieldID.setCaption("Variable ID");
textFieldID.setImmediate(false);
textFieldID.setWidth("-1px");
textFieldID.setHeight("-1px");
textFieldID.setInvalidAllowed(false);
textFieldID.setRequired(true);
textFieldID.setNullRepresentation("");
mainLayout.addComponent(textFieldID);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save and Continue");
buttonSave.setImmediate(false);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
示例5: buildVerticalLayout_2
import com.vaadin.ui.TextField; //导入方法依赖的package包/类
@AutoGenerated
private VerticalLayout buildVerticalLayout_2() {
// common part: create layout
verticalLayout_2 = new VerticalLayout();
verticalLayout_2.setImmediate(false);
verticalLayout_2.setWidth("100.0%");
verticalLayout_2.setHeight("100.0%");
verticalLayout_2.setMargin(false);
verticalLayout_2.setSpacing(true);
// textFieldTestInput
textFieldTestInput = new TextField();
textFieldTestInput.setCaption("Value");
textFieldTestInput.setImmediate(true);
textFieldTestInput.setDescription("Enter a value to test against.");
textFieldTestInput.setWidth("-1px");
textFieldTestInput.setHeight("-1px");
textFieldTestInput.setInputPrompt("eg. 50");
verticalLayout_2.addComponent(textFieldTestInput);
// buttonValidate
buttonValidate = new Button();
buttonValidate.setCaption("Test");
buttonValidate.setImmediate(true);
buttonValidate
.setDescription("Click to test if value is within the range.");
buttonValidate.setWidth("-1px");
buttonValidate.setHeight("-1px");
verticalLayout_2.addComponent(buttonValidate);
verticalLayout_2.setComponentAlignment(buttonValidate,
new Alignment(48));
return verticalLayout_2;
}
示例6: buildVerticalLayout_2
import com.vaadin.ui.TextField; //导入方法依赖的package包/类
@AutoGenerated
private VerticalLayout buildVerticalLayout_2() {
// common part: create layout
verticalLayout_2 = new VerticalLayout();
verticalLayout_2.setImmediate(false);
verticalLayout_2.setWidth("100.0%");
verticalLayout_2.setHeight("100.0%");
verticalLayout_2.setMargin(false);
// textFieldTestValue
textFieldTestValue = new TextField();
textFieldTestValue.setCaption("Test Value");
textFieldTestValue.setImmediate(true);
textFieldTestValue
.setDescription("Enter a value to match against the regular expression.");
textFieldTestValue.setWidth("-1px");
textFieldTestValue.setHeight("-1px");
textFieldTestValue.setInputPrompt("eg. example");
verticalLayout_2.addComponent(textFieldTestValue);
// buttonTest
buttonTest = new Button();
buttonTest.setCaption("Test");
buttonTest.setImmediate(true);
buttonTest.setWidth("-1px");
buttonTest.setHeight("-1px");
verticalLayout_2.addComponent(buttonTest);
verticalLayout_2.setComponentAlignment(buttonTest, new Alignment(48));
return verticalLayout_2;
}
示例7: buildMainLayout
import com.vaadin.ui.TextField; //导入方法依赖的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");
// textFieldColumn
textFieldColumn = new TextField();
textFieldColumn.setCaption("Column");
textFieldColumn.setImmediate(false);
textFieldColumn.setDescription("0-based index into CSV line");
textFieldColumn.setWidth("-1px");
textFieldColumn.setHeight("-1px");
textFieldColumn.setRequired(true);
textFieldColumn.setInputPrompt("Eg. ‘0'");
mainLayout.addComponent(textFieldColumn);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(false);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
示例8: buildMainLayout
import com.vaadin.ui.TextField; //导入方法依赖的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");
// textFieldExpression
textFieldExpression = new TextField();
textFieldExpression.setCaption("Regular Expression");
textFieldExpression.setImmediate(true);
textFieldExpression
.setDescription("Create a regular expression used to constrain attribute values.");
textFieldExpression.setWidth("-1px");
textFieldExpression.setHeight("-1px");
textFieldExpression.setInvalidAllowed(false);
textFieldExpression.setInputPrompt("eg. [a-zA-Z0-9]");
mainLayout.addComponent(textFieldExpression);
mainLayout.setExpandRatio(textFieldExpression, 1.0f);
// panelTester
panelTester = buildPanelTester();
mainLayout.addComponent(panelTester);
mainLayout.setExpandRatio(panelTester, 1.0f);
return mainLayout;
}
示例9: buildMainLayout
import com.vaadin.ui.TextField; //导入方法依赖的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");
// textFieldAttributeID
textFieldAttributeID = new TextField();
textFieldAttributeID.setCaption("Attribute Assignment ID");
textFieldAttributeID.setImmediate(false);
textFieldAttributeID.setWidth("-1px");
textFieldAttributeID.setHeight("-1px");
textFieldAttributeID.setInvalidAllowed(false);
textFieldAttributeID.setRequired(true);
mainLayout.addComponent(textFieldAttributeID);
// textFieldIssuer
textFieldIssuer = new TextField();
textFieldIssuer.setCaption("Issuer (Optional)");
textFieldIssuer.setImmediate(false);
textFieldIssuer.setWidth("-1px");
textFieldIssuer.setHeight("-1px");
textFieldIssuer.setNullSettingAllowed(true);
mainLayout.addComponent(textFieldIssuer);
// tableCategories
tableCategories = new Table();
tableCategories.setCaption("Category (Optional)");
tableCategories.setImmediate(false);
tableCategories.setWidth("100.0%");
tableCategories.setHeight("-1px");
mainLayout.addComponent(tableCategories);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(false);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
示例10: buildMainLayout
import com.vaadin.ui.TextField; //导入方法依赖的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");
// textFieldObligationID
textFieldObligationID = new TextField();
textFieldObligationID.setCaption("Obligation ID");
textFieldObligationID.setImmediate(false);
textFieldObligationID.setWidth("-1px");
textFieldObligationID.setHeight("-1px");
textFieldObligationID.setInvalidAllowed(false);
textFieldObligationID.setRequired(true);
textFieldObligationID.setInputPrompt("Eg. urn:com:foo:obligation:sample");
mainLayout.addComponent(textFieldObligationID);
// optionGroupFullfillOn
optionGroupFullfillOn = new OptionGroup();
optionGroupFullfillOn.setCaption("Fulfill On");
optionGroupFullfillOn.setImmediate(false);
optionGroupFullfillOn.setWidth("-1px");
optionGroupFullfillOn.setHeight("-1px");
optionGroupFullfillOn.setInvalidAllowed(false);
optionGroupFullfillOn.setRequired(true);
mainLayout.addComponent(optionGroupFullfillOn);
// 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;
}
示例11: buildMainLayout
import com.vaadin.ui.TextField; //导入方法依赖的package包/类
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(false);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// textFieldSource
textFieldSource = new TextField();
textFieldSource.setCaption("CSV Source File");
textFieldSource.setImmediate(false);
textFieldSource.setDescription("Path to CSV file");
textFieldSource.setWidth("-1px");
textFieldSource.setHeight("-1px");
textFieldSource.setInvalidAllowed(false);
textFieldSource.setRequired(true);
textFieldSource.setInputPrompt("Eg. /opt/app/data.csv");
mainLayout.addComponent(textFieldSource);
// textFieldTarget
textFieldTarget = new TextField();
textFieldTarget.setCaption("Table");
textFieldTarget.setImmediate(false);
textFieldTarget.setDescription("Name of database table to be created.");
textFieldTarget.setWidth("-1px");
textFieldTarget.setHeight("-1px");
textFieldTarget.setInvalidAllowed(false);
textFieldTarget.setRequired(true);
mainLayout.addComponent(textFieldTarget);
// textFieldDefinition
textFieldDefinition = new TextField();
textFieldDefinition.setCaption("Table Definition");
textFieldDefinition.setImmediate(false);
textFieldDefinition.setDescription("SQL Table Definition");
textFieldDefinition.setWidth("-1px");
textFieldDefinition.setHeight("-1px");
textFieldDefinition.setInvalidAllowed(false);
textFieldDefinition.setRequired(true);
mainLayout.addComponent(textFieldDefinition);
return mainLayout;
}
示例12: buildMainLayout
import com.vaadin.ui.TextField; //导入方法依赖的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;
}
示例13: buildMainLayout
import com.vaadin.ui.TextField; //导入方法依赖的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;
}
示例14: buildMainLayout
import com.vaadin.ui.TextField; //导入方法依赖的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");
// listSelectVariables
listSelectVariables = new ListSelect();
listSelectVariables.setCaption("Defined Variables");
listSelectVariables.setImmediate(false);
listSelectVariables.setWidth("100.0%");
listSelectVariables.setHeight("-1px");
mainLayout.addComponent(listSelectVariables);
mainLayout.setExpandRatio(listSelectVariables, 1.0f);
// textFieldVariable
textFieldVariable = new TextField();
textFieldVariable.setCaption("Variable");
textFieldVariable.setImmediate(false);
textFieldVariable.setWidth("-1px");
textFieldVariable.setHeight("-1px");
textFieldVariable.setInvalidAllowed(false);
textFieldVariable.setRequired(true);
textFieldVariable.setInputPrompt("Eg. \"12345\" or \"myVariable1\"");
mainLayout.addComponent(textFieldVariable);
mainLayout.setExpandRatio(textFieldVariable, 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;
}
示例15: buildMainLayout
import com.vaadin.ui.TextField; //导入方法依赖的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");
// comboBoxDatatype
comboBoxDatatype = new ComboBox();
comboBoxDatatype.setCaption("Select Datatype");
comboBoxDatatype.setImmediate(false);
comboBoxDatatype.setWidth("-1px");
comboBoxDatatype.setHeight("-1px");
comboBoxDatatype.setInvalidAllowed(false);
comboBoxDatatype.setRequired(true);
mainLayout.addComponent(comboBoxDatatype);
// textFieldValue
textFieldValue = new TextField();
textFieldValue.setCaption("Attribute Value");
textFieldValue.setImmediate(false);
textFieldValue.setWidth("100.0%");
textFieldValue.setHeight("-1px");
textFieldValue.setInvalidAllowed(false);
textFieldValue.setRequired(true);
mainLayout.addComponent(textFieldValue);
// 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;
}