本文整理汇总了Java中com.vaadin.ui.TextArea.setInvalidAllowed方法的典型用法代码示例。如果您正苦于以下问题:Java TextArea.setInvalidAllowed方法的具体用法?Java TextArea.setInvalidAllowed怎么用?Java TextArea.setInvalidAllowed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.ui.TextArea
的用法示例。
在下文中一共展示了TextArea.setInvalidAllowed方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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;
}
示例2: 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;
}