Package com.sun.jsftemplating.layout.descriptors

Examples of com.sun.jsftemplating.layout.descriptors.LayoutComponent.addOption()


        // Create a StaticText component and add it under the
        // "root" component.
        LayoutComponent stDesc = new LayoutComponent(null,
      "externalContent", new ComponentType("tmpTextCT",
      "com.sun.jsftemplating.component.factory.basic.StaticTextFactory"));
        stDesc.addOption("value", content);
        ComponentUtil.getInstance(ctx).createChildComponent(ctx, stDesc, root);
    } else {
        // Include the first one...
        includeIntegrationPoint(ctx, root, point);
    }
View Full Code Here


        // Create a StaticText component and add it under the
        // "root" component.
        LayoutComponent stDesc = new LayoutComponent(null,
      "externalContent", new ComponentType("tmpTextCT",
      "com.sun.jsftemplating.component.factory.basic.StaticTextFactory"));
        stDesc.addOption("value", content);
        ComponentUtil.getInstance(ctx).createChildComponent(ctx, stDesc, root);
    } else {
        // Include the first one...
        includeIntegrationPoint(ctx, root, point);
    }
View Full Code Here

        // Create a StaticText component and add it under the
        // "root" component.
        LayoutComponent stDesc = new LayoutComponent(null,
      "externalContent", new ComponentType("tmpTextCT",
      "com.sun.jsftemplating.component.factory.basic.StaticTextFactory"));
        stDesc.addOption("value", content);
        ComponentUtil.getInstance(ctx).createChildComponent(ctx, stDesc, root);
    } else {
        // Include the first one...
        includeIntegrationPoint(ctx, root, point);
    }
View Full Code Here

  LayoutComponent child = new LayoutStaticText(
      parent,
      LayoutElementUtil.getGeneratedId(
    "txt", env.getReader().getNextIdNumber()),
      content);
  child.addOption("value", content);
  child.setNested(env.isNested());

  parent.addChildLayoutElement(child);
    }
View Full Code Here

      // Make a "markup" LayoutComponent..
      ComponentType type = ensureMarkupType(parent);
      markupElt = new LayoutComponent(
        parent, MARKUP_ELEMENT + _markupCount++, type);
      LayoutComponent markupComp = ((LayoutComponent) markupElt);
      markupComp.addOption("tag", tag);
      markupComp.setNested(true);

      // Add children...
      addChildLayoutComponentChildren(markupComp, node);
  } else {
View Full Code Here

    }
    parent = parent.getParent();
      }

      // Set the facet name
      component.addOption(LayoutComponent.FACET_NAME, id);
  }

  // Add children... (different for component LayoutElements)
  addChildLayoutComponentChildren(component, node);
View Full Code Here

  parent.addChildLayoutElement(component);

  // Configure it...
  component.setNested(
      LayoutElementUtil.isNestedLayoutComponent(component));
  component.addOption(EDITABLE, Boolean.TRUE); // Flag

  // Add children... (different for component LayoutElements)
  addChildLayoutComponentChildren(component, node);

  return parent;
View Full Code Here

      component.setOverwrite(Boolean.valueOf(overwrite.getValue().toString()).booleanValue());
  }

  // Set options...
  for (NameValuePair np : nvps) {
      component.addOption(np.getName(), np.getValue());
  }

  // Set flag to indicate if this LayoutComponent is nested in another
  // LayoutComponent.  This is significant b/c during rendering, events
  // will need to be fired differently (the TemplateRenderer /
View Full Code Here

      desc.setOptions((Map) properties);
  }
  if (facetName != null) {
      // Add the facetName to use
// FIXME: Decide if this should have its own method
      desc.addOption(LayoutComponent.FACET_NAME, facetName);
  }

  return getChild(parent, desc);
    }
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.