Package org.hightides.annotations

Examples of org.hightides.annotations.Page


    }   
    params.put(fieldsPrefix +  "fields", fieldParams);
    params.put("titleField", AnnotationUtil.getTitleField(clazz));
    Annotation annotation = clazz.getAnnotation(Page.class);
    if (annotation instanceof Page) {
      Page page = (Page) annotation;
      params.put("syncMode", page.synchronizeMode());
      params.put("pageType", page.pageType());
    } else {
      // unexpected case... but handle it nevertheless
      params.put("syncMode", SyncMode.UPDATE);
      _log.error("Unable to retrieve syncMode for ["+clazz.getName()+"]");
    }
View Full Code Here


      _log.error("Unable to retrieve syncMode for ["+clazz.getName()+"]");
    }
    // add pageType parameter if available
    Annotation pageAnnotation = clazz.getAnnotation(Page.class);
    if ( (pageAnnotation != null) && (pageAnnotation instanceof Page) ){
      Page page = (Page) pageAnnotation;
      params.put("pageType", page.pageType());
    }
    return params;
  }
View Full Code Here

TOP

Related Classes of org.hightides.annotations.Page

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.