Package org.cruxframework.crux.core.rebind.screen.widget.WidgetCreatorAnnotationsProcessor

Examples of org.cruxframework.crux.core.rebind.screen.widget.WidgetCreatorAnnotationsProcessor.ChildrenProcessor


    Class<?> childProcessor = child.value();
    TagConstraints processorAttributes = factoryHelper.getChildtrenAttributesAnnotation(childProcessor);
    final String widgetProperty = processorAttributes.widgetProperty();
    final boolean isHasText = HasText.class.isAssignableFrom(factoryHelper.getWidgetType());
   
      ChildrenProcessor childrenProcessor = new ChildrenProcessor()
    {
      public void processChildren(SourcePrinter out, WidgetCreatorContext context)
      {
        String child = widgetCreator.ensureTextChild(context.getChildElement(), acceptNoChildren, context.getWidgetId(), false);
        if (!StringUtils.isEmpty(child))
View Full Code Here


   */
  private ChildrenProcessor createChildrenProcessorForMultipleChildren(Class<?> processorClass, TagChildren children, boolean acceptNoChildren, boolean isAgregatorChild)
    {
    try
    {
      ChildrenProcessor childrenProcessor = doCreateChildrenProcessorForMultipleChildren(processorClass, acceptNoChildren, isAgregatorChild);

      boolean hasAgregator = false;
      for (TagChild child : children.value())
            {
        if (child.autoProcess())
View Full Code Here

      WidgetChildProcessor<?> processor;
      processor = child.value().newInstance();
      processor.setWidgetCreator(widgetCreator);

      Device[] supportedDevices = child.supportedDevices();
      ChildrenProcessor childrenProcessor = doCreateChildrenProcessorForSingleChild(processorClass,
          acceptNoChildren, processor, childProcessor, supportedDevices);

      return childrenProcessor;
    }
    catch (Exception e)
View Full Code Here

   * @return
   */
  private ChildrenProcessor doCreateChildrenProcessorForMultipleChildren(Class<?> processorClass, final boolean acceptNoChildren,
                                      final boolean isAgregatorChild)
    {
    ChildrenProcessor childrenProcessor = new ChildrenProcessor()
    {
      public void processChildren(SourcePrinter out, WidgetCreatorContext context)
      {
        String childName;
        if (isAgregatorChild)
View Full Code Here

    TagChildLazyConditions lazyConditions = childProcessorClass.getAnnotation(TagChildLazyConditions.class);
    final WidgetLazyChecker lazyChecker = (lazyConditions== null?null:LazyWidgets.initializeLazyChecker(lazyConditions));
   
    final String childName = getChildTagName(tagName, isAgregator, (isAnyWidget || isAnyWidgetType));
   
    ChildrenProcessor childrenProcessor = new ChildrenProcessor()
    {
      public void processChildren(SourcePrinter out, WidgetCreatorContext context)
      {
        JSONObject child = widgetCreator.ensureFirstChild(context.getChildElement(), acceptNoChildren, context.getWidgetId());
        if (child != null)
        {
          context.setChildElement(child);
          processChild(out, context, childName);
        }
      }
    };
    scannedProcessors.put(processorClass.getCanonicalName(), childrenProcessor);
   
    ChildProcessor childProcessor = createChildProcessor(isAnyWidget, widgetProperty, lazyChecker, processor, supportedDevices);
    if (!isAnyWidget && !isAnyWidgetType)
    {
      childProcessor.setChildrenProcessor(scanChildren(childProcessorClass, isAgregator));
    }
   
    childrenProcessor.addChildProcessor(childName, childProcessor);
    return childrenProcessor;
    }
View Full Code Here

    String processorName = processorClass.getCanonicalName();
    if (scannedProcessors.containsKey(processorName))
    {
      return scannedProcessors.get(processorClass.getCanonicalName());
    }
    ChildrenProcessor result = null;
   
    TagChildren children = processorClass.getAnnotation(TagChildren.class);
   
    if (children != null && mustGenerateChildrenProcessMethod(children))
    {
View Full Code Here

TOP

Related Classes of org.cruxframework.crux.core.rebind.screen.widget.WidgetCreatorAnnotationsProcessor.ChildrenProcessor

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.