當前位置: 首頁>>代碼示例>>Java>>正文


Java TextField.setNullSettingAllowed方法代碼示例

本文整理匯總了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;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:53,代碼來源:AttributeAssignmentExpressionEditorWindow.java

示例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;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:68,代碼來源:CSVPIPConfigurationComponent.java


注:本文中的com.vaadin.ui.TextField.setNullSettingAllowed方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。