Package com.l2fprod.common.beans

Examples of com.l2fprod.common.beans.ExtendedPropertyDescriptor


  }

  private final BeanInfo getAnnotationBeanInfo(List<Field> pFields) {
    BaseBeanInfo res = new BaseBeanInfo(this.getClass());
    for (Field field : pFields) {
      ExtendedPropertyDescriptor propDesc = res.addProperty(field.getName());
      Property propAnno = field.getAnnotation(Property.class);
      if (propAnno.description().length() > 0)
        propDesc.setShortDescription(propAnno.description());
      propDesc.setCategory(propAnno.category().toString());
      if (propAnno.editorClass() != Property.DEFAULT.class)
        propDesc.setPropertyEditorClass(propAnno.editorClass());
    }
    return res;
  }
View Full Code Here

TOP

Related Classes of com.l2fprod.common.beans.ExtendedPropertyDescriptor

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.