Examples of uiComponent()


Examples of org.apache.myfaces.tobago.apt.annotation.UIComponentTag.uiComponent()

  protected void addElement(ClassDeclaration decl, List<Element> components, List<Element> renderer,
      Namespace namespace) throws IOException {
    UIComponentTag componentTag = decl.getAnnotation(UIComponentTag.class);
    if (componentTag != null) {
      try {
        Class<?> uiComponentClass = Class.forName(componentTag.uiComponent());
        if (!componentTag.isComponentAlreadyDefined()) {
          Element element = createComponentElement(decl, componentTag, uiComponentClass, namespace);
          if (element != null) {
            if (!containsElement(components, element)) {
              addFacets(componentTag, namespace, element);
View Full Code Here

Examples of org.apache.myfaces.tobago.apt.annotation.UIComponentTag.uiComponent()

  protected void addElement(InterfaceDeclaration decl, List<Element> components, List<Element> renderer,
      final Namespace namespace) throws IOException {
    UIComponentTag componentTag = decl.getAnnotation(UIComponentTag.class);
    if (componentTag != null) {
      try {
        Class<?> uiComponentClass = Class.forName(componentTag.uiComponent());
        if (!componentTag.isComponentAlreadyDefined()) {
          Element element = createComponentElement(decl, componentTag, uiComponentClass, namespace);
          if (element != null) {
            if (!containsElement(components, element)) {
              addFacets(componentTag, namespace, element);
View Full Code Here

Examples of org.apache.myfaces.tobago.apt.annotation.UIComponentTag.uiComponent()

        if (property.isTagAttribute()) {
          tagInfo.getProperties().add(property);
        }
      }
      tagInfo.setSuperClass("org.apache.myfaces.tobago.internal.taglib.TobagoELTag");
      tagInfo.setComponentClassName(componentTag.uiComponent());
      tagInfo.addImport("org.apache.commons.lang.StringUtils");
      tagInfo.addImport("org.slf4j.Logger");
      tagInfo.addImport("org.slf4j.LoggerFactory");
      tagInfo.addImport("javax.faces.application.Application");
      tagInfo.addImport("javax.faces.component.UIComponent");
View Full Code Here

Examples of org.apache.myfaces.tobago.apt.annotation.UIComponentTag.uiComponent()

      return;
    }
    try {
      ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader();
      Thread.currentThread().setContextClassLoader(UIComponent.class.getClassLoader());
      Class uiComponentClass = Class.forName(componentTag.uiComponent());

      StringBuilder addComponent = new StringBuilder("addTobagoComponent(\"");
      addComponent.append(annotationTag.name());

      Field componentField = uiComponentClass.getField("COMPONENT_TYPE");
View Full Code Here

Examples of org.apache.myfaces.tobago.apt.annotation.UIComponentTag.uiComponent()

          tagInfo.setSuperClass("org.apache.myfaces.tobago.internal.taglib.TobagoBodyTag");
        } else {
          tagInfo.setSuperClass("org.apache.myfaces.tobago.internal.taglib.TobagoTag");
        }
      }
      tagInfo.setComponentClassName(componentTag.uiComponent());
      tagInfo.addImport("org.apache.commons.lang.StringUtils");
      tagInfo.addImport("org.slf4j.Logger");
      tagInfo.addImport("org.slf4j.LoggerFactory");
      tagInfo.addImport("javax.faces.application.Application");
      tagInfo.addImport("javax.faces.component.UIComponent");
View Full Code Here

Examples of org.apache.myfaces.tobago.apt.annotation.UIComponentTag.uiComponent()

    }

    if (componentTag.generate()) {
      StringTemplate componentStringTemplate = componentStringTemplateGroup.getInstanceOf("component");
      ComponentInfo componentInfo
          = new ComponentInfo(declaration.getQualifiedName(), componentTag.uiComponent(), componentTag.rendererType());
     
/*
      String p = componentTag.uiComponentBaseClass();
      String c = componentTag.uiComponent();
      String m = c.substring(0, 36) + "Abstract" + c.substring(36);
View Full Code Here

Examples of org.apache.myfaces.tobago.apt.annotation.UIComponentTag.uiComponent()

        componentInfo.addInterface(interfaces);
      }
      if (componentTag.componentType().length() > 0) {
        componentInfo.setComponentType(componentTag.componentType());
      } else {
        componentInfo.setComponentType(componentTag.uiComponent().replace(".component.UI", "."));
      }
      try {
        Class componentBaseClass = Class.forName(componentTag.uiComponentBaseClass());
        for (PropertyInfo info : properties.values()) {
          String methodName
View Full Code Here

Examples of org.apache.myfaces.tobago.apt.annotation.UIComponentTag.uiComponent()

      return;
    }
    try {
      ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader();
      Thread.currentThread().setContextClassLoader(UIComponent.class.getClassLoader());
      Class uiComponentClass = Class.forName(componentTag.uiComponent());

      StringBuilder addComponent = new StringBuilder("addComponent(\"");
      addComponent.append(annotationTag.name());

      Field componentField = uiComponentClass.getField("COMPONENT_TYPE");
View Full Code Here

Examples of org.apache.myfaces.tobago.apt.annotation.UIComponentTag.uiComponent()

  protected void addElement(ClassDeclaration decl, List<Element> components, Namespace namespace) throws IOException {
    UIComponentTag componentTag = decl.getAnnotation(UIComponentTag.class);
    if (componentTag != null && !componentTag.isComponentAlreadyDefined()) {
      try {
        Class<?> uiComponentClass = Class.forName(componentTag.uiComponent());
        Element element = createElement(decl, componentTag, uiComponentClass, namespace);
        if (element != null) {
          if (!containsElement(components, element)) {
            addFacets(componentTag, namespace, element);
            List attributes = new ArrayList();
View Full Code Here

Examples of org.apache.myfaces.tobago.apt.annotation.UIComponentTag.uiComponent()

  protected void addElement(InterfaceDeclaration decl, List<Element> components, Namespace namespace)
      throws IOException {
    UIComponentTag componentTag = decl.getAnnotation(UIComponentTag.class);
    if (componentTag != null && !componentTag.isComponentAlreadyDefined()) {
      try {
        Class<?> uiComponentClass = Class.forName(componentTag.uiComponent());
        Element element = createElement(decl, componentTag, uiComponentClass, namespace);
        if (element != null) {
          if (!containsElement(components, element)) {
            addFacets(componentTag, namespace, element);
            List attributes = new ArrayList();
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.