Package org.auraframework.def

Examples of org.auraframework.def.ComponentDefRefArray


* @since 0.0.234
*/
public class ProvidedBodyRenderer implements Renderer {
    @Override
    public void render(BaseComponent<?, ?> component, Appendable out) throws IOException, QuickFixException {
      ComponentDefRefArray bodyAttribute = component.getAttributes().getValue("body", ComponentDefRefArray.class);
        if (bodyAttribute == null) {
          return;
        }
       
        // Loop over all the items in the body, which is a ComponentDefRefArray
        // If you find a ComponentInstance, render that instance
        for (Object bodyComponent : bodyAttribute.getList()) {
          if(bodyComponent instanceof BaseComponent) {
            Aura.getRenderingService().render((BaseComponent<?, ?>)bodyComponent, out);
          }
        }
        return;
View Full Code Here


                        c.reinitializeModel();
                    }
                }
            }
            else if (componentDefRefArrayType.equals(typeDesc)) {
              ComponentDefRefArray val = getAttributes().getValue(foo.getKey().getName(), ComponentDefRefArray.class);
                if (val != null) {
                    //@SuppressWarnings("unchecked")
                    //List<BaseComponent<?, ?>> facet = (List<BaseComponent<?, ?>>) val;
                    for (Object c : val.getList()) {
                      if(c instanceof BaseComponent) {
                        ((BaseComponent<?, ?>)c).reinitializeModel();                       
                      }
                    }
                }
View Full Code Here

TOP

Related Classes of org.auraframework.def.ComponentDefRefArray

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.