本文整理匯總了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;
}