Package org.exoplatform.services.resources

Examples of org.exoplatform.services.resources.Orientation


               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


      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

      }
   }

   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 context.createURL(NodeURL.TYPE);
            }
        });

        // 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

     */
    public boolean renderCSS(ControllerContext context, ResourceRenderer renderer, boolean compress) throws RenderingException,
            IOException {
        String dir = context.getParameter(ResourceRequestHandler.ORIENTATION_QN);

        Orientation orientation = "rt".equals(dir) ? Orientation.RT : Orientation.LT;

        // Check if it is running under developing mode
        String resource = "/" + context.getParameter(ResourceRequestHandler.RESOURCE_QN) + ".css";
        if (!compress) {
            StringBuffer sb = new StringBuffer();
View Full Code Here

        if (PropertyManager.isDevelopping()) {
            return Long.MAX_VALUE;
        }

        FutureMap<String, CachedStylesheet, SkinContext> cache = ltCache;
        Orientation orientation = Orientation.LT;
        String dir = context.getParameter(ResourceRequestHandler.ORIENTATION_QN);
        if ("rt".equals(dir)) {
            orientation = Orientation.RT;
            cache = rtCache;
        }
View Full Code Here

      ResourceRenderer renderer,
      boolean compress) throws RenderingException, IOException
   {
      String dir = context.getParameter(ResourceRequestHandler.ORIENTATION_QN);

      Orientation orientation = "rt".equals(dir) ? Orientation.RT : Orientation.LT;

      // Check if it is running under developing mode
      String resource = "/" + context.getParameter(ResourceRequestHandler.RESOURCE_QN) + ".css";
      if (!compress)
      {
View Full Code Here

      {
         return Long.MAX_VALUE;
      }

      FutureMap<String, CachedStylesheet, SkinContext> cache = ltCache;
      Orientation orientation = Orientation.LT;
      String dir = context.getParameter(ResourceRequestHandler.ORIENTATION_QN);
      if ("rt".equals(dir))
      {
         orientation = Orientation.RT;
         cache = rtCache;
View Full Code Here

                    config.setInputEncoding(element.getFirstChild().getNodeValue());
                } else if ("description".equals(element.getNodeName())) {
                    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 {
                        config.setOrientation(orientation);
                    }
View Full Code Here

     */
    public boolean renderCSS(ControllerContext context, ResourceRenderer renderer, boolean compress) throws RenderingException,
            IOException {
        String dir = context.getParameter(ResourceRequestHandler.ORIENTATION_QN);

        Orientation orientation = "rt".equals(dir) ? Orientation.RT : Orientation.LT;

        // Check if it is running under developing mode
        String resource = "/" + context.getParameter(ResourceRequestHandler.RESOURCE_QN) + ".css";
        if (!compress) {
            StringBuffer sb = new StringBuffer();
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.