本文整理匯總了Java中com.vaadin.ui.TextField.setInvalidAllowed方法的典型用法代碼示例。如果您正苦於以下問題:Java TextField.setInvalidAllowed方法的具體用法?Java TextField.setInvalidAllowed怎麽用?Java TextField.setInvalidAllowed使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.vaadin.ui.TextField
的用法示例。
在下文中一共展示了TextField.setInvalidAllowed方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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");
// 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;
}
示例2: buildMainLayout
import com.vaadin.ui.TextField; //導入方法依賴的package包/類
@AutoGenerated
private FormLayout buildMainLayout() {
// common part: create layout
mainLayout = new FormLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// textFieldSubdomain
textFieldSubdomain = new TextField();
textFieldSubdomain.setCaption("Enter Sub Domain");
textFieldSubdomain.setImmediate(false);
textFieldSubdomain
.setDescription("You can enter sub domain name - do not use spaces or wildcard characters.");
textFieldSubdomain.setWidth("-1px");
textFieldSubdomain.setHeight("-1px");
textFieldSubdomain.setInvalidAllowed(false);
textFieldSubdomain
.setInputPrompt("Examples: sales hr business marketing.");
mainLayout.addComponent(textFieldSubdomain);
mainLayout.setExpandRatio(textFieldSubdomain, 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;
}
示例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(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;
}
示例4: buildHorizontalLayout_1
import com.vaadin.ui.TextField; //導入方法依賴的package包/類
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
// common part: create layout
horizontalLayout_1 = new HorizontalLayout();
horizontalLayout_1.setImmediate(false);
horizontalLayout_1.setWidth("-1px");
horizontalLayout_1.setHeight("-1px");
horizontalLayout_1.setMargin(false);
horizontalLayout_1.setSpacing(true);
// comboBoxMin
comboBoxMin = new ComboBox();
comboBoxMin.setCaption("Minimum Type");
comboBoxMin.setImmediate(true);
comboBoxMin.setDescription("Select the type for the minimum.");
comboBoxMin.setWidth("-1px");
comboBoxMin.setHeight("-1px");
horizontalLayout_1.addComponent(comboBoxMin);
// textFieldMin
textFieldMin = new TextField();
textFieldMin.setCaption("Minimum Value");
textFieldMin.setImmediate(true);
textFieldMin.setDescription("Enter a value for the minimum.");
textFieldMin.setWidth("-1px");
textFieldMin.setHeight("-1px");
textFieldMin.setInvalidAllowed(false);
textFieldMin.setInputPrompt("eg. 1");
horizontalLayout_1.addComponent(textFieldMin);
horizontalLayout_1
.setComponentAlignment(textFieldMin, new Alignment(9));
return horizontalLayout_1;
}
示例5: 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;
}
示例6: 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;
}
示例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");
// 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;
}
示例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");
// textFieldName
textFieldName = new TextField();
textFieldName.setCaption("Parameter Name");
textFieldName.setImmediate(false);
textFieldName.setWidth("-1px");
textFieldName.setHeight("-1px");
textFieldName.setInvalidAllowed(false);
textFieldName.setRequired(true);
mainLayout.addComponent(textFieldName);
// textFieldValue
textFieldValue = new TextField();
textFieldValue.setCaption("Parameter Value");
textFieldValue.setImmediate(false);
textFieldValue.setWidth("-1px");
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;
}
示例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");
// textFieldAdviceID
textFieldAdviceID = new TextField();
textFieldAdviceID.setCaption("Advice ID");
textFieldAdviceID.setImmediate(false);
textFieldAdviceID.setWidth("-1px");
textFieldAdviceID.setHeight("-1px");
textFieldAdviceID.setInvalidAllowed(false);
textFieldAdviceID.setRequired(true);
textFieldAdviceID.setInputPrompt("Eg. urn:com:foo:advice:sample");
mainLayout.addComponent(textFieldAdviceID);
// optionGroupEffect
optionGroupEffect = new OptionGroup();
optionGroupEffect.setCaption("Applies To");
optionGroupEffect.setImmediate(false);
optionGroupEffect.setWidth("-1px");
optionGroupEffect.setHeight("-1px");
optionGroupEffect.setInvalidAllowed(false);
optionGroupEffect.setRequired(true);
mainLayout.addComponent(optionGroupEffect);
// 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;
}
示例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");
// 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;
}
示例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(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;
}
示例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");
// labelID
labelID = new Label();
labelID.setCaption("Policy Set ID");
labelID.setImmediate(false);
labelID.setWidth("100.0%");
labelID.setHeight("-1px");
labelID.setValue("Label");
mainLayout.addComponent(labelID);
// textFieldVersion
textFieldVersion = new TextField();
textFieldVersion.setCaption("Version");
textFieldVersion.setImmediate(false);
textFieldVersion
.setDescription("The format is numbers only separated by decimal point.");
textFieldVersion.setWidth("-1px");
textFieldVersion.setHeight("-1px");
textFieldVersion.setInvalidAllowed(false);
textFieldVersion.setRequired(true);
textFieldVersion.setInputPrompt("Eg. 1 or 1.0 or 1.0.0 etc.");
mainLayout.addComponent(textFieldVersion);
// listSelectAlgorithm
listSelectAlgorithm = new ListSelect();
listSelectAlgorithm.setCaption("Policy Combining Algorithm");
listSelectAlgorithm.setImmediate(false);
listSelectAlgorithm.setWidth("100.0%");
listSelectAlgorithm.setHeight("-1px");
listSelectAlgorithm.setInvalidAllowed(false);
listSelectAlgorithm.setRequired(true);
mainLayout.addComponent(listSelectAlgorithm);
// textAreaDescription
textAreaDescription = new TextArea();
textAreaDescription.setCaption("Description");
textAreaDescription.setImmediate(false);
textAreaDescription.setWidth("100.0%");
textAreaDescription.setHeight("-1px");
mainLayout.addComponent(textAreaDescription);
mainLayout.setExpandRatio(textAreaDescription, 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;
}
示例13: 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;
}
示例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");
// textFieldAttributeId
textFieldAttributeId = new TextField();
textFieldAttributeId.setCaption("Attribute Id");
textFieldAttributeId.setImmediate(false);
textFieldAttributeId.setWidth("100.0%");
textFieldAttributeId.setHeight("-1px");
textFieldAttributeId.setInvalidAllowed(false);
textFieldAttributeId.setRequired(true);
mainLayout.addComponent(textFieldAttributeId);
mainLayout.setExpandRatio(textFieldAttributeId, 1.0f);
// textFieldContextPath
textFieldContextPath = new TextField();
textFieldContextPath.setCaption("Context Path");
textFieldContextPath.setImmediate(false);
textFieldContextPath.setDescription("The Selector's Context Path.");
textFieldContextPath.setWidth("100.0%");
textFieldContextPath.setHeight("-1px");
textFieldContextPath
.setInputPrompt("eg. md:record/md:patient/md:patient-number/text()");
mainLayout.addComponent(textFieldContextPath);
mainLayout.setExpandRatio(textFieldContextPath, 1.0f);
// horizontalLayout_1
horizontalLayout_1 = buildHorizontalLayout_1();
mainLayout.addComponent(horizontalLayout_1);
mainLayout.setExpandRatio(horizontalLayout_1, 1.0f);
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(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;
}