Package org.cruxframework.crux.core.utils

Source Code of org.cruxframework.crux.core.utils.ViewUtils

package org.cruxframework.crux.core.utils;

import org.cruxframework.crux.core.rebind.screen.widget.WidgetCreator;
import org.cruxframework.crux.core.rebind.screen.widget.declarative.TagConstraints;

public class ViewUtils
{
  /**
   *
   * @param processorClass
   * @return
   */
  public static TagConstraints getChildTagConstraintsAnnotation(Class<?> processorClass)
  {
    TagConstraints attributes = processorClass.getAnnotation(TagConstraints.class);
    if (attributes == null)
    {
      Class<?> superClass = processorClass.getSuperclass();
      if (superClass != null && !superClass.equals(WidgetCreator.class))
      {
        attributes = getChildTagConstraintsAnnotation(superClass);
      }
    }

    return attributes;
  }
}
TOP

Related Classes of org.cruxframework.crux.core.utils.ViewUtils

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.