Package org.cruxframework.crux.core.client.screen.DeviceAdaptive

Examples of org.cruxframework.crux.core.client.screen.DeviceAdaptive.Templates


    }
  }

  public static Templates getChildTagTemplatesAnnotation(Class<?> templateClass)
  {
    Templates attributes = templateClass.getAnnotation(Templates.class);
    if (attributes == null)
    {
      if(templateClass.getGenericInterfaces() != null)
      {
        for(Type type : templateClass.getGenericInterfaces())
View Full Code Here


        try
        {
          Class<?> deviceAdaptiveClass = Class.forName(deviceAdaptive);
          if (deviceAdaptiveClass.isInterface() && !deviceAdaptiveClass.equals(DeviceAdaptive.class))
          {
            Templates templates = getChildTagTemplatesAnnotation(deviceAdaptiveClass);
            if (templates == null)
            {
              throw new CrossDevicesException("DeviceAdaptive widget ["+deviceAdaptive+"] does not declare any templates. Use the annotation @Views to add templates to this widget.");
            }

            for (Template template : templates.value())
            {
              try
              {
                Package adaptiveDevicePackage = deviceAdaptiveClass.getPackage();
                String templateResource = "/"+(adaptiveDevicePackage!=null?adaptiveDevicePackage.getName().replaceAll("\\.", "/"):"")+"/"+template.name()+".xdevice.xml";
View Full Code Here

TOP

Related Classes of org.cruxframework.crux.core.client.screen.DeviceAdaptive.Templates

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.