本文整理汇总了Java中com.vaadin.ui.TextField.setNullSettingAllowed方法的典型用法代码示例。如果您正苦于以下问题:Java TextField.setNullSettingAllowed方法的具体用法?Java TextField.setNullSettingAllowed怎么用?Java TextField.setNullSettingAllowed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.ui.TextField
的用法示例。
在下文中一共展示了TextField.setNullSettingAllowed方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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;
}
示例2: 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");
// textFieldFile
textFieldFile = new TextField();
textFieldFile.setCaption("Path to CSV File");
textFieldFile.setImmediate(false);
textFieldFile
.setDescription("This is the path to CSV file on the PDP node.");
textFieldFile.setWidth("-1px");
textFieldFile.setHeight("-1px");
textFieldFile.setInvalidAllowed(false);
textFieldFile.setRequired(true);
textFieldFile
.setInputPrompt("Eg. \"c:\\data.csv\" \"http://foo.com/data.csv\"");
mainLayout.addComponent(textFieldFile);
mainLayout.setExpandRatio(textFieldFile, 1.0f);
// textFieldDelimiter
textFieldDelimiter = new TextField();
textFieldDelimiter.setCaption("Delimiter");
textFieldDelimiter.setImmediate(false);
textFieldDelimiter
.setDescription("Enter a separator character or string that delineates columns in each row.");
textFieldDelimiter.setWidth("-1px");
textFieldDelimiter.setHeight("-1px");
textFieldDelimiter.setInputPrompt("Eg. \",\" or \"|\"");
textFieldDelimiter.setNullSettingAllowed(true);
mainLayout.addComponent(textFieldDelimiter);
mainLayout.setExpandRatio(textFieldDelimiter, 1.0f);
// textFieldQuote
textFieldQuote = new TextField();
textFieldQuote.setCaption("Quote");
textFieldQuote.setImmediate(false);
textFieldQuote
.setDescription("Enter character used for quoted elements.");
textFieldQuote.setWidth("-1px");
textFieldQuote.setHeight("-1px");
textFieldQuote.setInputPrompt("Eg. \" or '");
textFieldQuote.setNullSettingAllowed(true);
mainLayout.addComponent(textFieldQuote);
// textFieldSkip
textFieldSkip = new TextField();
textFieldSkip.setCaption("Skip Lines");
textFieldSkip.setImmediate(false);
textFieldSkip
.setDescription("Skips the number of lines at the beginning of the file.");
textFieldSkip.setWidth("-1px");
textFieldSkip.setHeight("-1px");
textFieldSkip.setInputPrompt("Eg. 1 or 2");
mainLayout.addComponent(textFieldSkip);
return mainLayout;
}