Package org.exoplatform.services.resources

Examples of org.exoplatform.services.resources.Orientation


      super(resolver, w);
      uicomponent_ = uicomponent;
      rcontext_ = context;

      // Add Orientation specific information
      Orientation orientation = context.getOrientation();
      this.put("orientation", orientation);
      this.put("isLT", orientation.isLT());
      this.put("isRT", orientation.isRT());
      this.put("dir", orientation.isLT() ? "ltr" : "rtl");
   }
View Full Code Here


               config.setDescription(element.getFirstChild().getNodeValue());
            }
            else if ("orientation".equals(element.getNodeName()))
            {
               String s = element.getFirstChild().getNodeValue();
               Orientation orientation = orientations.get(s);
               if (orientation == null)
               {
                  log.error("Wrong orientation value " + s);
               }
               else
View Full Code Here

      }
   }

   public void renderCSS(ResourceRenderer renderer, String path) throws RenderingException, IOException
   {
      Orientation orientation = Orientation.LT;
      if (path.endsWith("-lt.css"))
      {
         path = path.substring(0, path.length() - "-lt.css".length()) + ".css";
      }
      else if (path.endsWith("-rt.css"))
View Full Code Here

    * @return <code>true</code> if the <code>CSS resource </code>is found and rendered;
    *         <code>false</code> otherwise.
    */
   public boolean renderCSS(ResourceRenderer renderer, String path) throws RenderingException, IOException
   {
      Orientation orientation = Orientation.LT;
      if (path.endsWith("-lt.css"))
      {
         path = path.substring(0, path.length() - "-lt.css".length()) + ".css";
      }
      else if (path.endsWith("-rt.css"))
View Full Code Here

      {
         return Long.MAX_VALUE;
      }

      FutureMap<String, CachedStylesheet, Orientation> cache = ltCache;
      Orientation orientation = Orientation.LT;
      if (path.endsWith("-lt.css"))
      {
         path = path.substring(0, path.length() - "-lt.css".length()) + ".css";
      }
      else if (path.endsWith("-rt.css"))
View Full Code Here

TOP

Related Classes of org.exoplatform.services.resources.Orientation

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.