Package org.aperteworkflow.editor.stepeditor.user

Examples of org.aperteworkflow.editor.stepeditor.user.Property


          fieldDocName = field.getName();
        }
        if (StringUtils.isEmpty(fieldDocDescription)) {
          fieldDocDescription = field.getName();
        }
        Property property = new Property(null, field.getType());
        property.setPropertyId(field.getName());
        property.setName(fieldDocName);
        property.setDescription(fieldDocDescription);
       
        if (awp != null) {
            property.setRequired(awp.required());
        }
        if (awpConfigurator != null) {
            property.setPropertyFieldClass(awpConfigurator.fieldClass());
        }
        return property;
  }
View Full Code Here


   
  public Map<String,Object> getPropertiesMap() {
    Map<String,Object> map = new HashMap<String,Object>();
   
    for (Object propertyId : propertiesForm.getItemPropertyIds()) {
            Property prop = (Property)propertyId;
      com.vaadin.ui.Field field = propertiesForm.getField(propertyId);
            Object obj = field.getValue();
           
          if (obj == null) { // TODO this is at least strange and should be reconsidered
            if (Boolean.class.equals(prop.getType()))
              obj = Boolean.FALSE;
            else if (String.class.equals(prop.getType()))
              obj = "";
          }
           
            map.put(prop.getPropertyId(), obj);
    }

    return map;
  }
View Full Code Here

TOP

Related Classes of org.aperteworkflow.editor.stepeditor.user.Property

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.