Exemple #1
0
 /* (non-Javadoc)
  * @see com.vaadin.ui.AbstractField#getInternalValue()
  */
 @Override
 @SuppressWarnings("unchecked")
 protected Collect getInternalValue() {
   Collect collect = new Collect();
   if (selectField.getValue() instanceof Set) {
     Set<String> selected = (Set<String>) selectField.getValue();
     for (String value : selected) {
       collect.addIncludeGroup(value);
     }
   } else {
     collect.addIncludeGroup((String) selectField.getValue());
   }
   return collect;
 }