Package com.vaadin.ui

Examples of com.vaadin.ui.Select


    private final User m_currentUser;
    private boolean adminMode;

    public UserAdminWindow(User currentUser) {
        m_userTable = new Table();
        m_groupSelect = new Select();
        m_usernameTextField = new TextField();
        m_passwordTextField = new PasswordField();
        m_addNewUserButton = new Button();
        m_cancelNewUserButton = new Button();
        m_applyButton = new Button();
View Full Code Here


        m_passwordTextField.setCaption("Password");
        m_passwordTextField.setImmediate(true);
        m_passwordTextField.setRequired(true);
        m_passwordTextField.addListener(changeListener);

        m_groupSelect = new Select();
        m_groupSelect.setCaption("Role");
        m_groupSelect.setImmediate(true);
        m_groupSelect.setNullSelectionAllowed(false);
        m_groupSelect.setRequired(true);
        m_groupSelect.addListener(changeListener);
View Full Code Here

    editModelButton.addListener(new EditModelClickListener(modelData.getId()));
   
    actionLabel = new Label(i18nManager.getMessage(Messages.MODEL_ACTION));
    actionLabel.setSizeUndefined();
   
    actionSelect = new Select();
    actionSelect.addItem(i18nManager.getMessage(Messages.PROCESS_COPY));
    actionSelect.addItem(i18nManager.getMessage(Messages.PROCESS_DELETE));
    actionSelect.addItem(i18nManager.getMessage(Messages.PROCESS_DEPLOY));
    actionSelect.addItem(i18nManager.getMessage(Messages.PROCESS_EXPORT));
   
View Full Code Here

    editModelButton.addListener(new EditModelClickListener(modelData));
   
    actionLabel = new Label(i18nManager.getMessage(Messages.MODEL_ACTION));
    actionLabel.setSizeUndefined();
   
    actionSelect = new Select();
    actionSelect.addItem(i18nManager.getMessage(Messages.PROCESS_COPY));
    actionSelect.addItem(i18nManager.getMessage(Messages.PROCESS_DELETE));
    actionSelect.addItem(i18nManager.getMessage(Messages.PROCESS_DEPLOY));
    actionSelect.addItem(i18nManager.getMessage(Messages.PROCESS_EXPORT));
   
View Full Code Here

    List<String> roleNames = LiferayBridge.getRoleNames(application.getUser().getCompanyId());
      BeanItemContainer<String> ds = new BeanItemContainer<String>(String.class);
      ds.addAll(roleNames);
     
      final Select select = new Select(source.getMessage("queues.add.form.rights.new.combo"));
    select.setContainerDataSource(ds);
    select.setItemCaptionPropertyId("name");
    select.setItemCaptionMode(Select.ITEM_CAPTION_MODE_PROPERTY);
    select.setNullSelectionAllowed(false);
    select.setWidth(100, Sizeable.UNITS_PERCENTAGE);
   
    Button addButton = new Button(source.getMessage("queues.add.form.rights.new.add"));
    addButton.addListener(new ClickListener() {
     
      @Override
      public void buttonClick(ClickEvent event) {
        if (select.getValue() == null) {
          return;
        }
       
        String roleName = (String)select.getValue();
       
        ProcessQueueRight bean = new ProcessQueueRight();
        bean.setBrowseAllowed(true);
        bean.setRoleName(roleName);
        dataSource.addBean(bean);
View Full Code Here

    }
   
    private void  initComponents(){
      I18NSource messages = I18NSource.ThreadUtil.getThreadI18nSource();
      taskItemClassLabel = styled(new Label(messages.getMessage("process.definition.taskItemClass")), "h2");
    taskItemClassField = new Select();
        taskItemClassField.setNewItemsAllowed(true);
        taskItemClassField.setWidth("100%");
    }
View Full Code Here

  public static Field createFieldByPropertyType(Class<?> type) {
    Field field = DefaultFieldFactory.createFieldByPropertyType(type);

    if (field instanceof TextField && !type.isAssignableFrom(String.class)) {
      if (type.isEnum()) {
        Select select = new Select();

        for (Object value : type.getEnumConstants()) {
          select.addItem(value);
        }
        field = select;
      } else {
        field = new GenericValueTextField();
      }
View Full Code Here

    }
    return entryProviders;
  }

  public Select createSelect(Object item, String property) {
    return createSelect(new Select(), item, property, null);
  }
View Full Code Here

  public <S extends AbstractSelect> S createSelect(S select, Object item, String property) {
    return createSelect(select, item, property, null);
  }

  public Select createSelect(Object item, String property, DictEntryFilter entryFilter) {
    return createSelect(new Select(), item, property, entryFilter);
  }
View Full Code Here

        select.setItemCaptionPropertyId("name");
    return select;
  }

  public Select createSelect(String dictName) {
    return createSelect(new Select(), dictName, (DictEntryFilter)null);
  }
View Full Code Here

TOP

Related Classes of com.vaadin.ui.Select

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.