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

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


        NodeList conditions = child.getElementsByTagNameNS("http://www.cruxframework.org/crux", "condition");
        for (int j=0; j< conditions.getLength(); j++)
        {
          Element condition = (Element)conditions.item(j);
          String userAgentValue = condition.getAttribute("when");
          Device templateDevice = Device.valueOf(userAgentValue);
          if (templateDevice.equals(supportedDevice))
          {
            NodeList replacements = condition.getElementsByTagNameNS("http://www.cruxframework.org/crux", "parameter");
            for (int k=0; k< replacements.getLength(); k++)
            {
              Element replacement = (Element)replacements.item(k);
View Full Code Here


        generateViewCreator(sourceWriter, view);
      }

      if (view.isRootView())
      {
        Device currentDevice = Device.valueOf(getDeviceFeatures());
        if (currentDevice.getSize().equals(Size.small))
        {
          String smallViewport = view.getSmallViewport();
          if (smallViewport != null && smallViewport.length() > 0)
          {
            sourceWriter.println(DisplayHandler.class.getCanonicalName()+".configureViewport("+EscapeUtils.quote(smallViewport, false)+");");
View Full Code Here

TOP

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

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.