• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Form类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: initAlfrescoComponent

import com.vaadin.ui.Form; //导入依赖的package包/类
protected void initAlfrescoComponent() {
  alfrescoForm = new Form();
  alfrescoForm.setDescription(i18nManager.getMessage(Messages.ALFRESCO_DESCRIPTION));
  
  final TextField alfrescoServer = new TextField(i18nManager.getMessage(Messages.ALFRESCO_SERVER));
  alfrescoForm.getLayout().addComponent(alfrescoServer);
  
  final TextField alfrescoUserName = new TextField(i18nManager.getMessage(Messages.ALFRESCO_USERNAME));
  alfrescoForm.getLayout().addComponent(alfrescoUserName);
  
  final PasswordField alfrescoPassword = new PasswordField(i18nManager.getMessage(Messages.ALFRESCO_PASSWORD));
  alfrescoForm.getLayout().addComponent(alfrescoPassword);
  
  // Matching listener
  alfrescoClickListener = new ClickListener() {
    public void buttonClick(ClickEvent event) {
      Map<String, Object> accountDetails = createAccountDetails(
              "alfresco", 
              alfrescoUserName.getValue().toString(), 
              alfrescoPassword.getValue().toString(),
              "server", alfrescoServer.getValue().toString()
              ); 
      fireEvent(new SubmitEvent(AccountSelectionPopup.this, SubmitEvent.SUBMITTED, accountDetails));
    }
  };
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:27,代码来源:AccountSelectionPopup.java


示例2: FileAttachmentEditorComponent

import com.vaadin.ui.Form; //导入依赖的package包/类
public FileAttachmentEditorComponent(Attachment attachment, String taskId, String processInstanceId) {
  this.attachment = attachment;
  this.taskId = taskId;
  this.processInstanceId = processInstanceId;
  
  this.i18nManager = ExplorerApp.get().getI18nManager();
  taskService = ProcessEngines.getDefaultProcessEngine().getTaskService();
  
  form = new Form();
  form.setDescription(i18nManager.getMessage(Messages.RELATED_CONTENT_TYPE_FILE_HELP));
  setSizeFull();
  addComponent(form);
  initSuccessIndicator();
  initFileUpload();
  initName();
  initDescription();
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:18,代码来源:FileAttachmentEditorComponent.java


示例3: 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


示例4: build

import com.vaadin.ui.Form; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
public Form build() {
	Form form = new Form();
	
	if (layout != null)
		form.setLayout(layout);
	if (formFieldFactory != null)
		form.setFormFieldFactory(formFieldFactory);
	if (visibleProperties != null)
		form.setVisibleItemProperties(visibleProperties);
	if (width != null)
		form.setWidth(width);
	if (height != null)
		form.setHeight(height);
	
	return form;
}
 
开发者ID:chelu,项目名称:jdal,代码行数:20,代码来源:ConfigurableFormBuilder.java


示例5: buttonClick

import com.vaadin.ui.Form; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@SuppressWarnings("rawtypes")
@Override
public void buttonClick(ClickEvent event) {
	PageableTable<?> table = (PageableTable<?>) getTable();
	Filter filter = (Filter) table.getFilter();
	
	if (filter == null)
		return;
	
	filter.clear();
	
	if (table.getFilterForm() instanceof Form) {
		Form form = (Form) table.getFilterForm();
		form.discard();
	}
	else if (table.getFilterForm() instanceof View) {
		((View) table.getFilterForm()).refresh();
	}
	
	table.getPaginator().firstPage();
}
 
开发者ID:chelu,项目名称:jdal,代码行数:25,代码来源:ClearFilterAction.java


示例6: initForm

import com.vaadin.ui.Form; //导入依赖的package包/类
protected void initForm() {
  form = new Form();
  form.setSizeFull();
  
  addComponent(form);
  setComponentAlignment(form, Alignment.TOP_CENTER);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:8,代码来源:FormPropertiesComponent.java


示例7: 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


示例8: 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


示例9: FossaLoginScreen

import com.vaadin.ui.Form; //导入依赖的package包/类
public FossaLoginScreen(FossaApplication app, FossaAuthorizer authorizer, String error) {
	super(app);
	setStyleName("login");
	
	this.authorizer = authorizer;
	setCaption("Bitte melden Sie sich an!");
	setWidth("500px");
	center();
	CustomLayout layout = new CustomLayout("./login/loginScreen");
	setContent(layout);

	Label errorlabel = new Label(error);
	formLoginScreen = new Form();
	
	formLoginScreen.addField(username, username);
    username.focus();
	formLoginScreen.addField(password, password);
	formLoginScreen.getField(username).setRequired(true);
	formLoginScreen.getField(password).setRequired(true);
	
	layout.addComponent(formLoginScreen, "form");
	layout.addComponent(errorlabel, "errorlabel");

	Button login = new Button("Anmelden");
	layout.addComponent(login, "login");
	login.addListener((Button.ClickListener) this);
	login.setClickShortcut(KeyCode.ENTER);

}
 
开发者ID:fossaag,项目名称:rolp,代码行数:30,代码来源:FossaLoginScreen.java


示例10: renameGroup

import com.vaadin.ui.Form; //导入依赖的package包/类
private static void renameGroup(GraphContainer graphContainer, Vertex group, String newLabel) {
	RenameGroupOperation operation = new RenameGroupOperation();
	OperationContext context = getOperationContext(graphContainer);
	// Execute the operation on the single vertex
	operation.execute(Collections.singletonList((VertexRef)group), context);

	// Grab the window, put a value into the form field, and commit the form to complete
	// the operation.
	Window window = context.getMainWindow();
	assertEquals(1, window.getChildWindows().size());
	Window prompt = window.getChildWindows().iterator().next();

	for (Iterator<Component> itr = prompt.getComponentIterator(); itr.hasNext();) {
		Component component = itr.next();
		try {
			Form form = (Form)component;
			Field field = form.getField("Group Label");
			field.setValue(newLabel);
			// Make sure that the value was set, Vaadin will ignore the value
			// if, for instance, the specified value is not in the Select list
			assertEquals(newLabel, field.getValue());
			form.commit();
		} catch (ClassCastException e) {
			LoggerFactory.getLogger(GroupOperationsTest.class).info("Not a Form: " + component.getClass());
		}
	}
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:28,代码来源:GroupOperationsTest.java


示例11: SPARQLUpdateTransformDialog

import com.vaadin.ui.Form; //导入依赖的package包/类
public SPARQLUpdateTransformDialog(SPARQLUpdateTransformConfig oldConfig) {
    this.config = oldConfig;
    queryForm = new Form();
    queryForm.setSizeFull();
    queryForm.setFormFieldFactory(new FormFieldFactory() {

        @Override
        public Field createField(Item item, Object propertyId, Component uiContext) {
            if (propertyId.equals("query")) {
                TextArea query = new TextArea("SPARQL Query");
                query.setSizeFull();
                query.setRows(25);
                query.addValidator(new AbstractStringValidator("Must be a valid UPDATE query!") {

                    @Override
                    protected boolean isValidString(String value) {
                        SPARQLParser parser = new SPARQLParser();
                        try {
                            ParsedUpdate parsed = parser.parseUpdate(value, null);
                        } catch (Exception ex) {
                            setErrorMessage(ex.getMessage());
                            return false;
                        }
                        return true;
                    }
                });
                return query;
            }
            return null;
        }
    });
    queryForm.setItemDataSource(new BeanItem<SPARQLUpdateTransformConfig>(config));
    addComponent(queryForm);
}
 
开发者ID:lodms,项目名称:lodms-plugins,代码行数:35,代码来源:SPARQLUpdateTransformDialog.java


示例12: addOKCancelButtons

import com.vaadin.ui.Form; //导入依赖的package包/类
/**
 * Add a default commit/discard buttons to a form
 * @param f the Form
 */
public static void addOKCancelButtons(Form f) {
	Button ok = newOKButton(f);
	Button cancel = newCancelButton(f);
	HorizontalLayout hl = new HorizontalLayout();
	hl.setSpacing(true);
	hl.addComponent(ok);
	hl.addComponent(cancel);
	HorizontalLayout  footer = new HorizontalLayout();
	footer.setWidth("100%");
	footer.addComponent(hl);
	footer.setComponentAlignment(hl, Alignment.TOP_CENTER);
	f.setFooter(footer);
}
 
开发者ID:chelu,项目名称:jdal,代码行数:18,代码来源:FormUtils.java


示例13: newCancelButton

import com.vaadin.ui.Form; //导入依赖的package包/类
/**
 * Creates a new cancel button
 * @param f form holding the button
 * @return new cancel button
 */
private static Button newCancelButton(final Form f) {
	Button cancel = new Button(StaticMessageSource.getMessage("cancel"));
	cancel.addClickListener(new ClickListener() {
		
		public void buttonClick(ClickEvent event) {
			f.discard();
		}
	});
	
	return cancel;
}
 
开发者ID:chelu,项目名称:jdal,代码行数:17,代码来源:FormUtils.java


示例14: newOKButton

import com.vaadin.ui.Form; //导入依赖的package包/类
/**
 * Creates a new OK Button
 * @param f form holding the button
 * @return new OK Button
 */
private static Button newOKButton(final Form f) {
	Button ok = new Button(StaticMessageSource.getMessage("ok"));
	ok.addClickListener(new ClickListener() {
		
		public void buttonClick(ClickEvent event) {
			f.commit();
		}
	});
	
	return ok;
}
 
开发者ID:chelu,项目名称:jdal,代码行数:17,代码来源:FormUtils.java


示例15: createForm

import com.vaadin.ui.Form; //导入依赖的package包/类
private Form createForm() {
	Form form = new Form();
	form.setFormFieldFactory(this.formFieldFactory);
	return form;
}
 
开发者ID:frincon,项目名称:openeos,代码行数:6,代码来源:VaadinTabImpl.java


示例16: attach

import com.vaadin.ui.Form; //导入依赖的package包/类
@Override
public void attach() {
    setHeight(TAB_HEIGHT);
    setMargin(false, true, true, true);
    setSpacing(false);

    // メインフォーム
    Form mainForm = new Form();
    addComponent(mainForm);

    // 監視プロトコル
    checkProtocolSelect = new ComboBox(ViewProperties.getCaption("field.checkProtocol"));
    checkProtocolSelect.setWidth(TEXT_WIDTH);
    checkProtocolSelect.setImmediate(true);
    checkProtocolSelect.setNullSelectionAllowed(false);
    checkProtocolSelect.addListener(new Property.ValueChangeListener() {
        @Override
        public void valueChange(Property.ValueChangeEvent event) {
            checkProtocolValueChange(event);
        }
    });
    mainForm.getLayout().addComponent(checkProtocolSelect);

    // 監視ポート
    checkPortField = new TextField(ViewProperties.getCaption("field.checkPort"));
    checkPortField.setWidth(TEXT_WIDTH);
    mainForm.getLayout().addComponent(checkPortField);

    // 監視Path
    checkPathField = new TextField(ViewProperties.getCaption("field.checkPath"));
    checkPathField.setImmediate(true);
    mainForm.getLayout().addComponent(checkPathField);

    // ヘルスチェック詳細設定パネル
    Panel panel = new Panel(ViewProperties.getCaption("field.healthCheckDetail"));
    ((Layout) panel.getContent()).setMargin(false, false, false, true);
    ((Layout) panel.getContent()).setHeight("200px");
    ((Layout) panel.getContent()).setWidth("315px");
    mainForm.getLayout().addComponent(panel);

    // サブフォーム
    Form subForm = new Form();
    subForm.setStyleName("panel-healthcheck-setting");
    subForm.getLayout().setMargin(false, false, false, false);
    panel.addComponent(subForm);

    // タイムアウト時間
    checkTimeoutField = new TextField(ViewProperties.getCaption("field.checkTimeout"));
    checkTimeoutField.setWidth(TEXT_WIDTH);
    subForm.getLayout().addComponent(checkTimeoutField);

    // ヘルスチェック間隔
    checkIntervalField = new TextField(ViewProperties.getCaption("field.checkInterval"));
    checkIntervalField.setWidth(TEXT_WIDTH);
    subForm.getLayout().addComponent(checkIntervalField);

    // 障害閾値
    unhealthyThresholdField = new TextField(ViewProperties.getCaption("field.checkDownThreshold"));
    unhealthyThresholdField.setWidth(TEXT_WIDTH);
    subForm.getLayout().addComponent(unhealthyThresholdField);

    // 復帰閾値
    healthyThresholdField = new TextField(ViewProperties.getCaption("field.checkRecoverThreshold"));
    healthyThresholdField.setWidth(TEXT_WIDTH);
    subForm.getLayout().addComponent(healthyThresholdField);

    // UltraMonkeyロードバランサの場合、復帰閾値は設定できない
    if (PCCConstant.LOAD_BALANCER_ULTRAMONKEY.equals(loadBalancerType)) {
        healthyThresholdField.setEnabled(false);
    }

    initValidation();
}
 
开发者ID:primecloud-controller-org,项目名称:primecloud-controller,代码行数:74,代码来源:WinLoadBalancerEdit.java


示例17: attach

import com.vaadin.ui.Form; //导入依赖的package包/类
@Override
public void attach() {
    // メインフォーム
    Form mainForm = new Form();
    Layout mainLayout = mainForm.getLayout();
    addComponent(mainForm);

    // ロードバランサ名
    nameField = new TextField(ViewProperties.getCaption("field.loadBalancerName"));
    nameField.setReadOnly(true);
    mainLayout.addComponent(nameField);

    // サービス名
    serviceField = new TextField(ViewProperties.getCaption("field.loadBalancerService"));
    serviceField.setReadOnly(true);
    mainLayout.addComponent(serviceField);

    // ロードバランサ設定パネル
    Panel panel = new Panel(ViewProperties.getCaption("field.loadBalancerConfig"));
    ((Layout) panel.getContent()).setMargin(false, false, false, true);
    mainLayout.addComponent(panel);

    // サブフォーム
    subForm = new Form();
    FormLayout sublayout = (FormLayout) this.subForm.getLayout();
    sublayout.setMargin(false);
    sublayout.setSpacing(false);
    panel.getContent().addComponent(subForm);
    subForm.setHeight("200px");

    // ロードバランサポート
    loadBalancerPortField = new TextField(ViewProperties.getCaption("field.loadBalancerPort"));
    loadBalancerPortField.setWidth(TEXT_WIDTH);
    sublayout.addComponent(loadBalancerPortField);

    // サービスポート
    servicePortField = new TextField(ViewProperties.getCaption("field.loadBalancerServicePort"));
    servicePortField.setWidth(TEXT_WIDTH);
    sublayout.addComponent(servicePortField);

    // プロトコル
    protocolSelect = new ComboBox(ViewProperties.getCaption("field.loadBalancerProtocol"));
    protocolSelect.setWidth(TEXT_WIDTH);
    protocolSelect.setImmediate(true);
    sublayout.addComponent(protocolSelect);
    protocolSelect.addListener(new Property.ValueChangeListener() {
        @Override
        public void valueChange(Property.ValueChangeEvent event) {
            protocolValueChange(event);
        }
    });

    // SSLキー
    sslKeySelect = new ComboBox(ViewProperties.getCaption("field.loadBalancerSSLKey"));
    sslKeySelect.setWidth(TEXT_WIDTH);
    sslKeySelect.addContainerProperty(SSLKEY_CAPTION_ID, String.class, null);
    sslKeySelect.setItemCaptionMode(AbstractSelect.ITEM_CAPTION_MODE_PROPERTY);
    sslKeySelect.setItemCaptionPropertyId(SSLKEY_CAPTION_ID);
    sublayout.addComponent(sslKeySelect);

    initValidation();
}
 
开发者ID:primecloud-controller-org,项目名称:primecloud-controller,代码行数:63,代码来源:WinLoadBalancerConfigListener.java


示例18: attach

import com.vaadin.ui.Form; //导入依赖的package包/类
@Override
public void attach() {
    // Window
    setIcon(Icons.LOGIN.resource());
    setCaption(ViewProperties.getCaption("window.login"));
    setModal(true);
    setWidth("300px");
    setResizable(false);
    setClosable(false);

    // Layout
    VerticalLayout layout = (VerticalLayout) getContent();
    layout.setMargin(true);
    layout.setSpacing(true);

    // Form
    Form form = new Form();
    form.addStyleName("form-login");

    // ユーザ名
    usernameField = new TextField(ViewProperties.getCaption("field.userName"));
    usernameField.setWidth("90%");
    usernameField.focus(); // フォーカスを設定
    usernameField.setRequired(true);
    usernameField.setRequiredError(ViewMessages.getMessage("IUI-000019"));
    form.getLayout().addComponent(usernameField);

    // パスワード
    passwordField = new TextField(ViewProperties.getCaption("field.password"));
    passwordField.setSecret(true);
    passwordField.setWidth("90%");
    passwordField.setRequired(true);
    passwordField.setRequiredError(ViewMessages.getMessage("IUI-000020"));
    form.getLayout().addComponent(passwordField);

    layout.addComponent(form);

    // ログインボタン
    Button loginButton = new Button(ViewProperties.getCaption("button.login"));
    loginButton.setDescription(ViewProperties.getCaption("description.login"));
    loginButton.addListener(new ClickListener() {
        public void buttonClick(ClickEvent event) {
            loginButtonClick(event);
        }
    });
    loginButton.setClickShortcut(KeyCode.ENTER);

    layout.addComponent(loginButton);
    layout.setComponentAlignment(loginButton, "right");
}
 
开发者ID:primecloud-controller-org,项目名称:primecloud-controller,代码行数:51,代码来源:WinLogin.java


示例19: attach

import com.vaadin.ui.Form; //导入依赖的package包/类
@Override
public void attach() {
    setHeight(TAB_HEIGHT);
    setMargin(false, true, false, true);
    setSpacing(false);

    // フォーム
    Form form = new Form();
    form.setSizeFull();
    addComponent(form);

    // ロードバランサ名
    loadBalancerNameField = new TextField(ViewProperties.getCaption("field.loadBalancerName"));
    form.getLayout().addComponent(loadBalancerNameField);

    // コメント
    commentField = new TextField(ViewProperties.getCaption("field.comment"));
    commentField.setWidth("95%");
    form.getLayout().addComponent(commentField);

    // プラットフォーム
    cloudLabel = new Label();
    cloudLabel.setCaption(ViewProperties.getCaption("field.cloud"));
    cloudLabel.addStyleName("icon-label");
    form.getLayout().addComponent(cloudLabel);

    // ロードバランサ種別
    typeLabel = new Label();
    typeLabel.setCaption(ViewProperties.getCaption("field.loadBalancerType"));
    typeLabel.addStyleName("icon-label");
    form.getLayout().addComponent(typeLabel);

    // 割り当てサービス
    serviceSelect = new ComboBox();
    serviceSelect.setCaption(ViewProperties.getCaption("field.loadBalancerService"));
    serviceSelect.setNullSelectionAllowed(false);
    serviceSelect.addContainerProperty(SERVICE_CAPTION_ID, String.class, null);
    serviceSelect.setItemCaptionMode(AbstractSelect.ITEM_CAPTION_MODE_PROPERTY);
    serviceSelect.setItemCaptionPropertyId(SERVICE_CAPTION_ID);
    form.getLayout().addComponent(serviceSelect);

    // アルゴリズム
    algorithmSelect = new ComboBox();
    algorithmSelect.setCaption(ViewProperties.getCaption("field.algorithm"));
    algorithmSelect.setNullSelectionAllowed(false);
    form.getLayout().addComponent(algorithmSelect);

    // パブリックポート
    publicPortField = new TextField(ViewProperties.getCaption("field.publicport"));
    publicPortField.setWidth("95%");
    form.getLayout().addComponent(publicPortField);

    // プライベートポート
    privatePortField = new TextField(ViewProperties.getCaption("field.privateport"));
    privatePortField.setWidth("95%");
    form.getLayout().addComponent(privatePortField);

    initValidation();
}
 
开发者ID:primecloud-controller-org,项目名称:primecloud-controller,代码行数:60,代码来源:WinCloudStackLoadBalancerEdit.java


示例20: initImapComponent

import com.vaadin.ui.Form; //导入依赖的package包/类
protected void initImapComponent() {
  imapForm = new Form();
  imapForm.setDescription(i18nManager.getMessage(Messages.IMAP_DESCRIPTION));
  
  final TextField imapServer = new TextField(i18nManager.getMessage(Messages.IMAP_SERVER));
  imapForm.getLayout().addComponent(imapServer);
  
  final TextField imapPort = new TextField(i18nManager.getMessage(Messages.IMAP_PORT));
  imapPort.setWidth(30, UNITS_PIXELS);
  imapPort.setValue(143); // Default imap port (non-ssl)
  imapForm.getLayout().addComponent(imapPort);
  
  final CheckBox useSSL = new CheckBox(i18nManager.getMessage(Messages.IMAP_SSL));
  useSSL.setValue(false);
  useSSL.setImmediate(true);
  imapForm.getLayout().addComponent(useSSL);
  useSSL.addListener(new ValueChangeListener() {
    public void valueChange(ValueChangeEvent event) {
      imapPort.setValue( ((Boolean) useSSL.getValue()) ? 993 : 143);
    }
  });
  
  final TextField imapUserName = new TextField(i18nManager.getMessage(Messages.IMAP_USERNAME));
  imapForm.getLayout().addComponent(imapUserName);
  
  final PasswordField imapPassword = new PasswordField(i18nManager.getMessage(Messages.IMAP_PASSWORD));
  imapForm.getLayout().addComponent(imapPassword);
  
  // Matching listener
  imapClickListener = new ClickListener() {
    public void buttonClick(ClickEvent event) {
      Map<String, Object> accountDetails = createAccountDetails(
              "imap", 
              imapUserName.getValue().toString(), 
              imapPassword.getValue().toString(),
              "server", imapServer.getValue().toString(),
              "port", imapPort.getValue().toString(),
              "ssl", imapPort.getValue().toString()
              ); 
      fireEvent(new SubmitEvent(AccountSelectionPopup.this, SubmitEvent.SUBMITTED, accountDetails));
    }
  };
}
 
开发者ID:iotsap,项目名称:FiWare-Template-Handler,代码行数:44,代码来源:AccountSelectionPopup.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SubsystemMarshallingContext类代码示例发布时间:2022-05-21
下一篇:
Java Attribute类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap