Package org.boco.seamwebappgen.annotations

Examples of org.boco.seamwebappgen.annotations.SearchResultList


   */
  public void setSearchListActionsInfo(Bean bean)
  {
    Class cBean = this.getClass(bean.getName());

    SearchResultList searchInfoAnnotation = (SearchResultList) cBean.getAnnotation(SearchResultList.class);

    if (searchInfoAnnotation != null)
    {
      Vector<String> tmp = new Vector<String>();
      for (int i = 0; i < searchInfoAnnotation.actionLabels().length; i++)
      {
        tmp.add(searchInfoAnnotation.actionLabels()[i]);
      }
      bean.setSearchActionLabels(tmp);

      tmp = new Vector<String>();
      for (int i = 0; i < searchInfoAnnotation.actions().length; i++)
      {
        tmp.add(searchInfoAnnotation.actions()[i]);
      }
      bean.setSearchActions(tmp);
     
      tmp = new Vector<String>();
      for (int i = 0; i < searchInfoAnnotation.immediateActionLabels().length; i++)
      {
        tmp.add(searchInfoAnnotation.immediateActionLabels()[i]);
      }
      bean.setSearchImmediateActionLabels(tmp);

      tmp = new Vector<String>();
      for (int i = 0; i < searchInfoAnnotation.immediateActions().length; i++)
      {
        tmp.add(searchInfoAnnotation.immediateActions()[i]);
      }
      bean.setSearchImmediateActions(tmp);     
    }
  }
View Full Code Here

TOP

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

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.