当前位置: 首页>>代码示例>>Java>>正文


Java Form.setImmediate方法代码示例

本文整理汇总了Java中com.vaadin.ui.Form.setImmediate方法的典型用法代码示例。如果您正苦于以下问题:Java Form.setImmediate方法的具体用法?Java Form.setImmediate怎么用?Java Form.setImmediate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.vaadin.ui.Form的用法示例。


在下文中一共展示了Form.setImmediate方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: WkdXmlConfigDialog

import com.vaadin.ui.Form; //导入方法依赖的package包/类
public WkdXmlConfigDialog(WkdXmlConfig config) {
    form = new Form();
    addComponent(form);
    beanItem = new BeanItem<WkdXmlConfig>(config);
    form.setImmediate(true);
    form.setFormFieldFactory(new DefaultFieldFactory() {
        @Override
        public Field createField(Item item, Object propertyId, Component uiContext) {
            Field f = super.createField(item, propertyId, uiContext);
            f.setRequired(true);
            f.setWidth(500,UNITS_PIXELS);
            return f;
        }
    });
    form.setItemDataSource(beanItem);
    form.focus();
}
 
开发者ID:lodms,项目名称:lodms-plugins,代码行数:18,代码来源:WkdXmlConfigDialog.java

示例2: initForm

import com.vaadin.ui.Form; //导入方法依赖的package包/类
protected void initForm() {
  form = new Form();
  form.setValidationVisibleOnCommit(true);
  form.setImmediate(true);
  addComponent(form);
  
  initInputFields();
  initCreateButton();
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:10,代码来源:NewUserPopupWindow.java

示例3: initForm

import com.vaadin.ui.Form; //导入方法依赖的package包/类
protected void initForm() {
  form = new Form();
  form.setValidationVisibleOnCommit(true);
  form.setImmediate(true);
  addComponent(form);
  
  // name
  nameField = new TextField(i18nManager.getMessage(Messages.TASK_NAME));
  nameField.focus();
  nameField.setRequired(true);
  nameField.setRequiredError(i18nManager.getMessage(Messages.TASK_NAME_REQUIRED));
  form.addField("name", nameField);
  
  // description
  descriptionArea = new TextArea(i18nManager.getMessage(Messages.TASK_DESCRIPTION));
  descriptionArea.setColumns(25);
  form.addField("description", descriptionArea);
  
  // duedate
  dueDateField = new DateField(i18nManager.getMessage(Messages.TASK_DUEDATE));
  dueDateField.setResolution(DateField.RESOLUTION_DAY);
  form.addField("duedate", dueDateField);
  
  // priority
  priorityComboBox = new PriorityComboBox(i18nManager);
  form.addField("priority", priorityComboBox);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:28,代码来源:NewCasePopupWindow.java

示例4: JobsStatusViewComponent

import com.vaadin.ui.Form; //导入方法依赖的package包/类
public JobsStatusViewComponent(URL appUrl) {

		VerticalLayout mainLayout = new VerticalLayout();
		mainLayout.setSpacing(true);
		mainLayout.setMargin(true);
		mainLayout.setWidth("100%");

		// Refresher will update UI as progress is made
		final Refresher refresher = new Refresher();
		refresher.setRefreshInterval(UPDATE_STATUS_INTERVAL);
		refresher.addListener(this);
		mainLayout.addComponent(refresher);

		mainLayout.addComponent(buildTableControls());

		form = new Form();
		form.setCaption("Selected Job");
		form.setWidth("420px");
		form.setFormFieldFactory(new ExpressZipFieldFactory());
		form.setVisible(true);
		form.setImmediate(true);

		table = new Table(null);
		table.addStyleName("expresszip");
		table.setWidth("100%");
		table.setSelectable(true);
		table.setImmediate(true);
		table.setNullSelectionAllowed(false);
		table.setPageLength(0);
		table.setHeight("250px");
		container = new BeanItemContainer<Job>(Job.class, Job.getJobQueue());
		container.addNestedContainerProperty("exportProps.jobName");
		container.addNestedContainerProperty("exportProps.userNotation");
		table.setContainerDataSource(container);

		table.setVisibleColumns(new String[] { "exportProps.jobName", "exportProps.userNotation", "status" });
		table.setColumnHeaders(new String[] { "Job Name", "User Name", "Status" });
		table.sort(new Object[] { "exportProps.jobName", "exportProps.userNotation" }, new boolean[] { true, true });
		table.setColumnExpandRatio("status", 0.8f);
		
		// use green bar to highlight selected row
		ExpressZipTreeTable.enableFirstColumnHighlighter(table);
		
		updateTableData();

		mainLayout.addComponent(table);
		mainLayout.setExpandRatio(table, 1.0f);

		mainLayout.addComponent(form);

		Link browseExports = new Link("Browse Archived Jobs", new ExternalResource(appUrl.getProtocol() + "://"
				+ appUrl.getAuthority() + "/exportdir/"));
		// Open the URL in a new window/tab
		browseExports.setTargetName("_blank");
		mainLayout.addComponent(browseExports);

		// setContent(mainLayout);
		setCompositionRoot(mainLayout);
	}
 
开发者ID:lizardtechblog,项目名称:ExpressZip,代码行数:60,代码来源:JobsStatusViewComponent.java


注:本文中的com.vaadin.ui.Form.setImmediate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。