Package org.primefaces.resource

Examples of org.primefaces.resource.ResourceHolder


  private java.lang.Boolean _hover;
  private java.lang.Integer _hoverDelay;

  public AccordionPanel() {
    setRendererType(DEFAULT_RENDERER);
    ResourceHolder resourceHolder = getResourceHolder();
    if(resourceHolder != null) {
      resourceHolder.addResource("/yui/accordion/assets/skins/sam/accordionview.css");
      resourceHolder.addResource("/yui/utilities/utilities.js");
      resourceHolder.addResource("/yui/accordion/accordionview-min.js");
      resourceHolder.addResource("/primefaces/accordion/accordion.js");
    }
  }
View Full Code Here


  private java.lang.String _widgetVar;
  private java.lang.String _image;

  public ImageCropper() {
    setRendererType(DEFAULT_RENDERER);
    ResourceHolder resourceHolder = getResourceHolder();
    if(resourceHolder != null) {
      resourceHolder.addResource("/yui/assets/skins/sam/resize.css");
      resourceHolder.addResource("/yui/assets/skins/sam/imagecropper.css");
      resourceHolder.addResource("/yui/utilities/utilities.js");
      resourceHolder.addResource("/yui/resize/resize-min.js");
      resourceHolder.addResource("/yui/imagecropper/imagecropper-min.js");
      resourceHolder.addResource("/primefaces/imagecropper/imagecropper.js");
    }
  }
View Full Code Here

  private java.lang.String _title;
  private java.lang.String _display;
  public RowGroup() {
    setRendererType(DEFAULT_RENDERER);
    ResourceHolder resourceHolder = getResourceHolder();
    if(resourceHolder != null) {
    }
  }
View Full Code Here

  public static final String COMPONENT_FAMILY = "org.primefaces.touch";
  private static final String DEFAULT_RENDERER = "org.primefaces.touch.component.TableViewRenderer";

  public TableView() {
    setRendererType(DEFAULT_RENDERER);
    ResourceHolder resourceHolder = getResourceHolder();
    if(resourceHolder != null) {
    }
  }
View Full Code Here

  private static final Logger logger = Logger.getLogger(ApplicationRenderer.class.getName());

  public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
    ResponseWriter writer = facesContext.getResponseWriter();
    Application application = (Application) component;
    ResourceHolder resourceHolder = ResourceUtils.getResourceHolder(facesContext);
    String themeRelativePath = "/jquery/plugins/jqtouch/themes/" + application.getTheme();
    String themeRealPath = ResourceUtils.getResourceURL(facesContext, themeRelativePath);
   
    writer.startElement("html", null);
   
    writer.startElement("head", null);
   
    renderCSSDependency(facesContext, "/jquery/plugins/jqtouch/jqtouch.min.css");
    renderCSSDependency(facesContext, themeRelativePath + "/theme.min.css");
   
    for(String resource : resourceHolder.getResources()) {
      if(resource.endsWith("css"))
        renderCSSDependency(facesContext, resource);
      else if(resource.endsWith("js"))
        renderScriptDependency(facesContext, resource);
      else
View Full Code Here

  private java.lang.String _theme;
  private java.lang.String _icon;
  public Application() {
    setRendererType(DEFAULT_RENDERER);
    ResourceHolder resourceHolder = getResourceHolder();
    if(resourceHolder != null) {
      resourceHolder.addResource("/yui/utilities/utilities.js");
      resourceHolder.addResource("/jquery/jquery.js");
      resourceHolder.addResource("/jquery/plugins/jqtouch/jqtouch.min.js");
      resourceHolder.addResource("/jquery/plugins/jqtouch/jqtouch.transitions.js");
      resourceHolder.addResource("/primefaces/core/core.js");
      resourceHolder.addResource("/touch/touchfaces.js");
    }
  }
View Full Code Here

  private static final String DEFAULT_RENDERER = "org.primefaces.touch.component.ViewRenderer";

  private java.lang.String _title;
  public View() {
    setRendererType(DEFAULT_RENDERER);
    ResourceHolder resourceHolder = getResourceHolder();
    if(resourceHolder != null) {
    }
  }
View Full Code Here

  private java.lang.Boolean _proxy;
  private java.lang.Boolean _dragOnly;
  private java.lang.String _update;
  public Draggable() {
    setRendererType(DEFAULT_RENDERER);
    ResourceHolder resourceHolder = getResourceHolder();
    if(resourceHolder != null) {
      resourceHolder.addResource("/yui/utilities/utilities.js");
      resourceHolder.addResource("/primefaces/core/core.js");
      resourceHolder.addResource("/primefaces/dnd/dragdrop.js");
    }
  }
View Full Code Here

  private java.lang.String _effect;
  private java.lang.Double _effectDuration;
  private java.lang.Integer _zindex;
  public Menubar() {
    setRendererType(DEFAULT_RENDERER);
    ResourceHolder resourceHolder = getResourceHolder();
    if(resourceHolder != null) {
      resourceHolder.addResource("/yui/menu/assets/skins/sam/menu.css");
      resourceHolder.addResource("/yui/utilities/utilities.js");
      resourceHolder.addResource("/yui/container/container-min.js");
      resourceHolder.addResource("/yui/menu/menu-min.js");
      resourceHolder.addResource("/primefaces/core/core.js");
    }
  }
View Full Code Here

  private java.lang.String _target;
  private java.lang.String _style;
  private java.lang.String _styleClass;
  public LinkButton() {
    setRendererType(DEFAULT_RENDERER);
    ResourceHolder resourceHolder = getResourceHolder();
    if(resourceHolder != null) {
      resourceHolder.addResource("/yui/button/assets/skins/sam/button.css");
      resourceHolder.addResource("/yui/utilities/utilities.js");
      resourceHolder.addResource("/yui/button/button-min.js");
      resourceHolder.addResource("/primefaces/core/core.js");
    }
  }
View Full Code Here

TOP

Related Classes of org.primefaces.resource.ResourceHolder

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.