Package org.boco.seamwebappgen.annotations

Examples of org.boco.seamwebappgen.annotations.AlternateOrderingAttribute


        if (isAlternateOrderingAttribute(fields[j]))
        {
          // Il campo ha una annotazione @AlternateOrderingAttribute

          AlternateOrderingAttribute annotation = fields[j].getAnnotation(AlternateOrderingAttribute.class);

          attr.setAlternateOrderingAttribute(annotation.attribute());
        }

        tmp.add(attr);
      }
    }

    // Inserisce i campi di tipo @Transient
    // escludendo getSerialVersionUID

    Method methods[] = cBean.getDeclaredMethods();

    /** Ordinamento degli attributi per nome **/

    java.util.Arrays.sort(methods, new JavaMethodComparator());

    for (int i = 0; i < methods.length; i++)
    {
      if (methods[i].getName().startsWith("get") && !methods[i].getName().equals("getSerialVersionUID") && methods[i].getAnnotation(javax.persistence.Transient.class) != null && methods[i].getAnnotation(ShowTransientInForm.class) != null)
      {
        Attribute attr = new Attribute();

        attr.setName(Utils.makeMethod2Field(methods[i].getName()));
        attr.setType(methods[i].getReturnType().getName());
        attr.setKey(false);

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

        attr.setImplementationType(AttributeImplementationType.READONLY);
        attr.setOrderInForm(annotation.order());
        attr.setTrans(true);

        tmp.add(attr);
      }
    }
View Full Code Here


          if (isAlternateOrderingAttribute(fields[j]))
          {
            // Il campo ha una annotazione @AlternateOrderingAttribute

            AlternateOrderingAttribute annotation = fields[j].getAnnotation(AlternateOrderingAttribute.class);

            attr.setAlternateOrderingAttribute(annotation.attribute());
          }

          Cache.put(beanName, attributeName, attr);
          return attr;
        }
View Full Code Here

        if (isAlternateOrderingAttribute(fields[j]))
        {
          // Il campo ha una annotazione @AlternateOrderingAttribute

          AlternateOrderingAttribute ann = fields[j].getAnnotation(AlternateOrderingAttribute.class);

          showAttr.setAlternateOrderingAttribute(ann.attribute());
        }

        showAttr.setWidth(annotation.width());
       
        if (order(fields[j]) != 1000)
View Full Code Here

TOP

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

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.