Examples of FXProperty


Examples of at.bestsolution.efxclipse.tooling.model.internal.FXProperty

        beanProperties.put(name, m);
      }
    }
   
    for( Entry<String, IMethod> e : beanProperties.entrySet() ) {
      FXProperty p = getProperty(fxClass, e.getKey(), e.getValue());
      if( p != null ) {
        rv.put(e.getKey(), p)
      }
    }
   
    for( Entry<String, IMethod> e : builderProperties.entrySet() ) {
      IFXProperty p = rv.get(e.getKey());
      if( p == null ) {
        continue;
      }
     
      if( ! (p instanceof IFXCollectionProperty) ) {
        if( ! p.isSetable() ) {
          p = getProperty(fxClass, e.getKey(), e.getValue());
          if( p != null ) {
            rv.put(e.getKey(), p)
          }
        }
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.model.internal.FXProperty

   
    return rv;
  }
 
  private static FXProperty getProperty(FXClass fxClass, String name, IMethod m) throws JavaModelException {
    FXProperty p = null;
   
    String signature;
   
    if( m.getElementName().startsWith("get") || m.getElementName().startsWith("is") ) {
      signature = m.getReturnType();
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.model.internal.FXProperty

     
      if( name.startsWith("set") && m.getParameterTypes().length == 2 ) {
        name = name.substring(3);
        name = Character.toLowerCase(name.charAt(0)) + name.substring(1);
       
        FXProperty p = null;
       
        String signature = m.getParameterTypes()[1];
       
        String genericType = Signature.toString(signature);
       
        if( FXPrimitiveProperty.isPrimitive(genericType) ) {
          p = new FXPrimitiveProperty(fxClass, name, m, Type.parseType(genericType),true);
        } else {
          String erasedFQNType = Util.getFQNType((IType)m.getParent(), Signature.getTypeErasure(genericType));
          if( erasedFQNType != null ) {
            if( FXEnumProperty.isEnum(fxClass.getJavaProject(), erasedFQNType) ) {
              p = new FXEnumProperty(fxClass, name, m, erasedFQNType,true);
            } else {
              p = new FXObjectPoperty(fxClass, name, m, erasedFQNType,true);
            }
          }
        }
       
        if( p != null ) {
          rv.put(p.getName(), p);
        }
      }
    }
   
    return rv;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.