Package org.boco.seamwebappgen.annotations

Examples of org.boco.seamwebappgen.annotations.ShowTransientAttributeInList


        attr.setKey(false);
        attr.setTrans(true);

        ShowAttribute showAttr = new ShowAttribute(null, attr);

        ShowTransientAttributeInList annotation = methods[i].getAnnotation(ShowTransientAttributeInList.class);

        showAttr.setTransientParameters(annotation.parameters());
        showAttr.setWidth(annotation.width());

        if (annotation.order() != 1000)
        {
          if (tmp.size() <= annotation.order())
            tmp.setSize(annotation.order() + 1);

          //          if (tmp.get(order(methods[i])) != null)
          //            throw new ShowAttributeWrongOrderException(methods[i].getName(), beanName);

          tmp.set(annotation.order(), showAttr);
        }
        else
          tmp.add(showAttr);

        //        if (order(methods[i]) != 1000)
        //        {
        //          if (tmp.size() <= order(methods[i]))
        //            tmp.setSize(order(methods[i]) + 1);
        //
        //          if (tmp.get(order(methods[i])) != null)
        //            throw new ShowAttributeWrongOrderException(methods[i].getName(), beanName);
        //
        //          tmp.set(order(methods[i]), showAttr);
        //        }
        //        else
        //          tmp.add(showAttr);
      }
    }

    // Attributi delle relazioni collegate al bean

    for (int j = 0; j < methods.length; j++)
    {
      Annotation annotations[] = methods[j].getAnnotations();

      // System.out.println("Metodo "+methods[j].getName());

      for (int k = 0; k < annotations.length; k++)
      {
        Annotation annotation = annotations[k];

        if (annotation.annotationType().equals(ShowRelationshipAttributesInList.class))
        {
          String attributesName[] = ((ShowRelationshipAttributesInList) annotation).names();
          int    attributesOrder[] = ((ShowRelationshipAttributesInList) annotation).orders();
          String widths[] = ((ShowRelationshipAttributesInList) annotation).widths();
         
View Full Code Here

TOP

Related Classes of org.boco.seamwebappgen.annotations.ShowTransientAttributeInList

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.