Package org.primefaces.resource

Examples of org.primefaces.resource.ResourceHolder


  private java.lang.String _onstart;
  private java.lang.String _oncomplete;

  public UIAjax() {
    setRendererType(DEFAULT_RENDERER);
    ResourceHolder resourceHolder = getResourceHolder();
    if(resourceHolder != null) {
      resourceHolder.addResource("/yui/utilities/utilities.js");
      resourceHolder.addResource("/jquery/jquery.js");
      resourceHolder.addResource("/primefaces/ajax/ajax.js");
    }
  }
View Full Code Here


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


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

  private java.lang.String _title;
  private java.lang.Boolean _disabled;

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

  private java.lang.String _exclude;

  public Resources() {
    setRendererType(DEFAULT_RENDERER);
    ResourceHolder resourceHolder = getResourceHolder();
    if(resourceHolder != null) {
      resourceHolder.addResource("/yui/utilities/utilities.js");
      resourceHolder.addResource("/primefaces/core/core.js");
    }
  }
View Full Code Here

public class ResourcesRenderer extends CoreRenderer {

  private static Logger logger = Logger.getLogger(ResourcesRenderer.class.getName());
 
  public void encodeEnd(FacesContext facesContext, UIComponent component) throws IOException {
    ResourceHolder resourceQueue = getResourceHolder(facesContext);
    ResponseWriter writer = facesContext.getResponseWriter();
    Resources resources = (Resources) component;
    String excludedResources = resources.getExclude();
   
    writer.write("\n");
   
    for(String resource : resourceQueue.getResources()) {
      if(isResourceExcluded(excludedResources, resource))
        continue;
     
      if(resource.endsWith("css"))
        renderCSSDependency(facesContext, resource);
View Full Code Here

  private java.lang.String _toggleMode;
  private java.lang.Boolean _cache;

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

  private java.lang.String _title;

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

  private java.lang.Boolean _showRGBControls;
  private java.lang.Boolean _showWebSafe;

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

  private java.lang.Boolean _showDetail;
  private java.lang.String _for;

  public Message() {
    setRendererType(DEFAULT_RENDERER);
    ResourceHolder resourceHolder = getResourceHolder();
    if(resourceHolder != null) {
      resourceHolder.addResource("/primefaces/messages/messages.css");
    }
  }
View Full Code Here

  private java.lang.String _style;
  private java.lang.String _styleClass;

  public Media() {
    setRendererType(DEFAULT_RENDERER);
    ResourceHolder resourceHolder = getResourceHolder();
    if(resourceHolder != null) {
    }
  }
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.