本文整理汇总了Java中com.vaadin.ui.TextArea.setImmediate方法的典型用法代码示例。如果您正苦于以下问题:Java TextArea.setImmediate方法的具体用法?Java TextArea.setImmediate怎么用?Java TextArea.setImmediate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.ui.TextArea
的用法示例。
在下文中一共展示了TextArea.setImmediate方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildDialogLayout
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@Override
protected void buildDialogLayout() {
final VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setSizeFull();
mainLayout.setSpacing(true);
mainLayout.setMargin(true);
checkPerGraph = new CheckBox(ctx.tr("sparqlUpdate.dialog.perGraph"));
checkPerGraph.setWidth("100%");
mainLayout.addComponent(checkPerGraph);
mainLayout.setExpandRatio(checkPerGraph, 0.0f);
txtQuery = new TextArea(ctx.tr("sparqlUpdate.dialog.query"));
txtQuery.setSizeFull();
txtQuery.setRequired(true);
txtQuery.addValidator(createSparqlUpdateQueryValidator());
txtQuery.setImmediate(true);
mainLayout.addComponent(txtQuery);
mainLayout.setExpandRatio(txtQuery, 1.0f);
setCompositionRoot(mainLayout);
}
示例2: buildDialogLayout
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@Override
protected void buildDialogLayout() {
final VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setSizeFull();
mainLayout.setSpacing(true);
mainLayout.setMargin(true);
checkPerGraph = new CheckBox(ctx.tr("SparqlConstructVaadinDialog.perGraphMode"));
checkPerGraph.setWidth("100%");
mainLayout.addComponent(checkPerGraph);
mainLayout.setExpandRatio(checkPerGraph, 0.0f);
txtQuery = new TextArea(ctx.tr("SparqlConstructVaadinDialog.constructQuery"));
txtQuery.setSizeFull();
txtQuery.setRequired(true);
txtQuery.addValidator(createSparqlQueryValidator());
txtQuery.setImmediate(true);
mainLayout.addComponent(txtQuery);
mainLayout.setExpandRatio(txtQuery, 1.0f);
setCompositionRoot(mainLayout);
}
示例3: ImportFromClipboardWindow
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
public ImportFromClipboardWindow(String typeName, String columnsStringLabel) {
super(Constants.uiImportFromClipboard);
setResizable(false);
setWidth("420px");
TextArea textArea = new TextArea();
textArea.addListener(this);
textArea.setImmediate(true);
textArea.setBuffered(true);
textArea.setWidth("100%");
VerticalLayout layout = new VerticalLayout();
layout.setMargin(true);
layout.addComponent(new Label(Constants.uiImportFromClipboardInstructions(columnsStringLabel), Label.CONTENT_XHTML));
layout.addComponent(textArea);
setContent(layout);
textArea.focus();
}
示例4: buildHorizontalLayout_1
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
// common part: create layout
horizontalLayout_1 = new HorizontalLayout();
horizontalLayout_1.setImmediate(false);
horizontalLayout_1.setWidth("100.0%");
horizontalLayout_1.setHeight("-1px");
horizontalLayout_1.setMargin(false);
// textArea
textArea = new TextArea();
textArea.setImmediate(false);
textArea.setWidth("100.0%");
textArea.setHeight("-1px");
horizontalLayout_1.addComponent(textArea);
horizontalLayout_1.setExpandRatio(textArea, 1.0f);
return horizontalLayout_1;
}
示例5: buildVerticalLayoutFile
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
private VerticalLayout buildVerticalLayoutFile() {
// common part: create layout
verticalLayoutFile = new VerticalLayout();
verticalLayoutFile.setImmediate(false);
verticalLayoutFile.setWidth("100.0%");
verticalLayoutFile.setHeight("100.0%");
verticalLayoutFile.setMargin(false);
// textAreaFile
textAreaFile = new TextArea();
textAreaFile.setCaption("Comentarios");
textAreaFile.setImmediate(false);
textAreaFile.setWidth("100.0%");
textAreaFile.setHeight("-1px");
verticalLayoutFile.addComponent(textAreaFile);
// horizontalLayoutFileToolbox
horizontalLayoutFileToolbox = buildHorizontalLayoutFileToolbox();
verticalLayoutFile.addComponent(horizontalLayoutFileToolbox);
return verticalLayoutFile;
}
示例6: 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");
// textAreaResults
textAreaResults = new TextArea();
textAreaResults.setCaption("Synch Results");
textAreaResults.setImmediate(false);
textAreaResults.setWidth("462px");
textAreaResults.setHeight("222px");
mainLayout.addComponent(textAreaResults);
// buttonSynchronize
buttonSynchronize = new Button();
buttonSynchronize.setCaption("Synchronize");
buttonSynchronize.setImmediate(true);
buttonSynchronize.setWidth("-1px");
buttonSynchronize.setHeight("-1px");
mainLayout.addComponent(buttonSynchronize);
mainLayout.setComponentAlignment(buttonSynchronize, new Alignment(24));
return mainLayout;
}
示例7: buildDialogLayout
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@Override
protected void buildDialogLayout() {
VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setSizeFull();
mainLayout.setSpacing(true);
mainLayout.setMargin(true);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
txtQuery= new TextArea(ctx.tr("dialog.query"), query);
txtQuery.setWidth("100%");
txtQuery.setSizeFull();
txtQuery.setNullRepresentation("");
txtQuery.setNullSettingAllowed(true);
txtQuery.setImmediate(true);
txtQuery.addValidator(createSparqlQueryValidator());
mainLayout.addComponent(txtQuery);
mainLayout.setExpandRatio(txtQuery, 1.0f);
VerticalLayout bottomLayout = new VerticalLayout();
bottomLayout.addComponent(new CheckBox(ctx.tr("dialog.messageType.fail"), failExecution));
mainLayout.addComponent(bottomLayout);
mainLayout.setExpandRatio(bottomLayout, 0.1f);
setCompositionRoot(mainLayout);
}
示例8: buildDialogLayout
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@Override
protected void buildDialogLayout() {
final VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setSizeFull();
mainLayout.setSpacing(true);
mainLayout.setMargin(true);
txtTarget = new TextField();
txtTarget.setWidth("100%");
txtTarget.setHeight("-1px");
txtTarget.setCaption(ctx.tr("SparqlSelectVaadinDialog.txtTarget"));
txtTarget.setRequired(true);
mainLayout.addComponent(txtTarget);
mainLayout.setExpandRatio(txtTarget, 0);
txtQuery = new TextArea();
txtQuery.setSizeFull();
txtQuery.setCaption(ctx.tr("SparqlSelectVaadinDialog.txtQuery"));
txtQuery.addValidator(createSparqlQueryValidator());
txtQuery.setImmediate(true);
txtTarget.setRequired(true);
mainLayout.addComponent(txtQuery);
mainLayout.setExpandRatio(txtQuery, 1);
setCompositionRoot(mainLayout);
}
示例9: FileEditorWindow
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
/**
* Instantiates a new file editor window.
*
* @param file the file
* @param logger the logger
* @param readOnly true, if you want to display a read only window.
*/
public FileEditorWindow(final File file, final Logger logger, boolean readOnly) {
this.file = file;
this.logger = logger;
setCaption((readOnly ? "View" : "Edit") + " MIB");
addStyleName(Runo.WINDOW_DIALOG);
setModal(true);
setClosable(false);
setWidth("800px");
setHeight("540px");
editor = new TextArea();
editor.setPropertyDataSource(new TextFileProperty(file));
editor.setWriteThrough(false);
editor.setImmediate(false);
editor.setSizeFull();
editor.setRows(30);
editor.setReadOnly(readOnly);
cancel = new Button(readOnly ? "Close" : "Cancel");
cancel.setImmediate(false);
cancel.addListener(this);
save = new Button("Save");
save.setImmediate(false);
save.addListener(this);
HorizontalLayout toolbar = new HorizontalLayout();
toolbar.addComponent(cancel);
if (!readOnly)
toolbar.addComponent(save);
addComponent(editor);
addComponent(toolbar);
((VerticalLayout) getContent()).setExpandRatio(editor, 1.0f);
((VerticalLayout) getContent()).setComponentAlignment(toolbar, Alignment.BOTTOM_RIGHT);
}
示例10: createEditFields
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override
protected ComponentContainer createEditFields() {
final FormLayout form = new ExtaFormLayout();
form.setSizeFull();
nameField = new EditField("Название");
nameField.setImmediate(true);
nameField.setDescription("Введите название группы пользователей");
nameField.setRequired(true);
nameField.setRequiredError("Название группы пользователем не может быть пустым. Необходимо ввести название.");
nameField.setColumns(30);
form.addComponent(nameField);
descriptionField = new TextArea("Описание");
descriptionField.setImmediate(true);
descriptionField.setDescription("Введите описание группы пользователей.");
descriptionField.setInputPrompt("Описание группы пользователей");
descriptionField.setNullRepresentation("");
descriptionField.setRows(2);
form.addComponent(descriptionField);
employeesField = new EmployeeMultySelect("Члены группы");
employeesField.setCompanySupplier(() -> lookup(CompanyRepository.class).findEACompany());
employeesField.setWidth(100, Unit.PERCENTAGE);
employeesField.setHeight(370, Unit.PIXELS);
form.addComponent(employeesField);
return form;
}
示例11: createEditFields
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override
protected ComponentContainer createEditFields() {
final FormLayout form = new ExtaFormLayout();
form.setSizeFull();
nameField = new EditField("Название");
nameField.setImmediate(true);
nameField.setDescription("Введите название группы пользователей");
nameField.setRequired(true);
nameField.setRequiredError("Название группы пользователем не может быть пустым. Необходимо ввести название.");
nameField.setColumns(30);
form.addComponent(nameField);
descriptionField = new TextArea("Описание");
descriptionField.setImmediate(true);
descriptionField.setDescription("Введите описание группы пользователей.");
descriptionField.setInputPrompt("Описание группы пользователей");
descriptionField.setNullRepresentation("");
descriptionField.setRows(2);
form.addComponent(descriptionField);
showPrivateCommentsField = new CheckBox("Доступ к закрытым коментариям");
showPrivateCommentsField.setDescription("Установите, чтобы разрешить доступ к закрытым коментариям.");
form.addComponent(showPrivateCommentsField);
brandsField = new MotorBrandMultiselect("Доступные бренды");
form.addComponent(brandsField);
regionsField = new RegionMultiselect("Доступные регионы");
form.addComponent(regionsField);
permissionsField = new ExtaPermissionField(getEntity());
permissionsField.setCaption("Правила доступа группы");
form.addComponent(permissionsField);
return form;
}
示例12: bindTextAreaField
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
public TextArea bindTextAreaField(AbstractLayout form, ValidatingFieldGroup<E> group, String fieldLabel,
String fieldName, int rows)
{
TextArea field = new SplitTextArea(fieldLabel);
field.setRows(rows);
field.setWidth("100%");
field.setImmediate(true);
field.setNullRepresentation("");
addValueChangeListeners(field);
doBinding(group, fieldName, field);
form.addComponent(field);
return field;
}
示例13: buildMainLayout
import com.vaadin.ui.TextArea; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("380px");
mainLayout.setHeight("260px");
// top-level component properties
setWidth("380px");
setHeight("260px");
// txtNombre
txtNombre = new TextField();
txtNombre.setCaption("Nombre");
txtNombre.setImmediate(false);
txtNombre.setWidth("240px");
txtNombre.setHeight("-1px");
mainLayout.addComponent(txtNombre, "top:40.0px;left:60.0px;");
// btnGuardar
btnGuardar = new Button();
btnGuardar.setCaption("Guardar");
btnGuardar.setImmediate(true);
btnGuardar.setWidth("240px");
btnGuardar.setHeight("-1px");
mainLayout.addComponent(btnGuardar, "top:194.0px;left:60.0px;");
// txtDesc
txtDesc = new TextArea();
txtDesc.setCaption("Descripción");
txtDesc.setImmediate(false);
txtDesc.setWidth("240px");
txtDesc.setHeight("100px");
mainLayout.addComponent(txtDesc, "top:80.0px;left:60.0px;");
return mainLayout;
}
示例14: 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;
}
示例15: 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;
}