congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ResourceDependency
Code IndexAdd Tabnine to your IDE (free)

How to use
ResourceDependency
in
javax.faces.application

Best Java code snippets using javax.faces.application.ResourceDependency (Showing top 20 results out of 315)

Refine searchRefine arrow

  • ResourceDependencies
  • FacesComponent
  • FacesRenderer
origin: primefaces/primefaces

@ResourceDependencies({
    @ResourceDependency(library = "primefaces", name = "components.css"),
    @ResourceDependency(library = "primefaces", name = "dock/dock.css"),
    @ResourceDependency(library = "primefaces", name = "jquery/jquery.js"),
    @ResourceDependency(library = "primefaces", name = "jquery/jquery-plugins.js"),
    @ResourceDependency(library = "primefaces", name = "core.js"),
    @ResourceDependency(library = "primefaces", name = "components.js"),
    @ResourceDependency(library = "primefaces", name = "dock/dock.js")
})
public class Dock extends DockBase {

  public static final String COMPONENT_TYPE = "org.primefaces.component.Dock";
}
origin: com.evasion/COMMON

/**
 *
 * @author glon-56610
 */
@FacesComponent(value = "com.evasion.common.component.DateItem")
@ResourceDependencies({
  @ResourceDependency(name = "component/core.css", target = "head"),
  @ResourceDependency(name = "component/theme.css", target = "head")    
})
public class DateItem extends FormItem {

  @Override
  public UIInput createInput() {
    throw new UnsupportedOperationException("Not supported yet.");
  }
  
}

origin: com.liferay.faces/com.liferay.faces.alloy

/**
 * @author  Kyle Stiemann
 */

//J-
@FacesRenderer(componentFamily = Button.COMPONENT_FAMILY, rendererType = Button.RENDERER_TYPE)
@ResourceDependencies(
  {
    @ResourceDependency(library = "liferay-faces-alloy", name = "alloy.css"),
    @ResourceDependency(library = "liferay-faces-alloy-reslib", name = "build/aui-css/css/bootstrap.min.css"),
    @ResourceDependency(library = "liferay-faces-alloy-reslib", name = "build/aui/aui-min.js"),
    @ResourceDependency(library = "liferay-faces-alloy-reslib", name = "liferay.js")
  }
)
//J+
public class ButtonRenderer extends AbstractButtonRenderer {
  // Initial Generation
}

origin: com.liferay.faces/liferay-faces-alloy

/**
 * @author  Vernon Singleton
 */
@FacesRenderer(componentFamily = SelectOneRadio.COMPONENT_FAMILY, rendererType = SelectOneRadio.RENDERER_TYPE)
@ResourceDependency(library = "liferay-faces-alloy", name = "alloy.css")
public class SelectOneRadioRenderer extends SelectOneRadioRendererBase {

  @Override
  protected String getSelectType() {
    return "radio";
  }
}

origin: org.glassfish/javax.faces

public ResourceDependencyHandler(ResourceDependency[] dependencies) {
  this.dependencies = dependencies;
  Map<Object, Object> attrs = FacesContext.getCurrentInstance().getAttributes();
  expressionsMap = new HashMap<>(dependencies.length, 1.0f);
  for (ResourceDependency dep : dependencies) {
    Expressions exprs = new Expressions();
    exprs.name = dep.name();
    String lib = dep.library();
    if (lib.length() > 0) {
      // Take special action to resolve the "this" library name
      if ("this".equals(lib)) {
        String thisLibrary = (String)
            attrs.get(com.sun.faces.application.ApplicationImpl.THIS_LIBRARY);
        assert(null != thisLibrary);
        lib = thisLibrary;
      }
      exprs.library = lib;
    }
    String tgt = dep.target();
    if (tgt.length() > 0) {
      exprs.target = tgt;
    }
    expressionsMap.put(dep, exprs);
  }
}
origin: com.github.albfernandez.richfaces/richfaces-core

  @Override
  public ResourceKey apply(ResourceDependency resourceDependency) {
    return new ResourceKey(resourceDependency.name(), resourceDependency.library());
  }
};
origin: com.github.albfernandez.richfaces/richfaces-core

  @Override
  public boolean apply(ResourceDependency resourceDependency) {
    return !"body".equals(resourceDependency.target());
  }
};
origin: org.butterfaces/components

@ResourceDependencies({
    @ResourceDependency(library = "butterfaces-dist-css", name = "butterfaces-default.css", target = "head"),
    @ResourceDependency(library = "butterfaces-dist-css", name = "dist-butterfaces-bootstrap.css", target = "head"),
    @ResourceDependency(library = "butterfaces-dist-bundle-dev-js", name = "butterfaces-third-party-jquery.js", target = "head"),
    @ResourceDependency(library = "butterfaces-dist-bundle-dev-js", name = "butterfaces-third-party-bootstrap.js", target = "head")
})
@FacesComponent(HtmlSecret.COMPONENT_TYPE)
public class HtmlSecret extends HtmlText {

  public static final String COMPONENT_TYPE = "org.butterfaces.component.secret";
  public static final String COMPONENT_FAMILY = "org.butterfaces.component.family";
  public static final String RENDERER_TYPE = "org.butterfaces.component.renderkit.html_basic.SecretRenderer";

  public HtmlSecret() {
    super();
    this.setRendererType(RENDERER_TYPE);
    this.setType("password");
  }

  @Override
  public String getFamily() {
    return COMPONENT_FAMILY;
  }

}

origin: com.liferay.faces/liferay-faces-alloy

/**
 * @author  Kyle Stiemann
 */
//J-
@FacesRenderer(componentFamily = Button.COMPONENT_FAMILY, rendererType = Button.RENDERER_TYPE)
@ResourceDependencies(
  {
    @ResourceDependency(library = "liferay-faces-reslib", name = "build/aui-css/css/bootstrap.min.css"),
    @ResourceDependency(library = "liferay-faces-alloy", name = "alloy.css"),
    @ResourceDependency(library = "liferay-faces-reslib", name = "build/aui/aui-min.js"),
    @ResourceDependency(library = "liferay-faces-reslib", name = "liferay.js")
  }
)
//J+
public class ButtonRenderer extends AbstractButtonRenderer {
  // Initial Generation
}

origin: com.liferay.faces/liferay-faces-alloy

/**
 * @author  Vernon Singleton
 */
@FacesRenderer(componentFamily = SelectManyCheckbox.COMPONENT_FAMILY, rendererType = SelectManyCheckbox.RENDERER_TYPE)
@ResourceDependency(library = "liferay-faces-alloy", name = "alloy.css")
public class SelectManyCheckboxRenderer extends SelectManyCheckboxRendererBase {

  @Override
  protected String getSelectType() {
    return "checkbox";
  }
}

origin: com.sun.faces/jsf-impl

public ResourceDependencyHandler(ResourceDependency[] dependencies) {
  this.dependencies = dependencies;
  Map<Object, Object> attrs = FacesContext.getCurrentInstance().getAttributes();
  expressionsMap = new HashMap<ResourceDependency,Expressions>(dependencies.length, 1.0f);
  for (ResourceDependency dep : dependencies) {
    Expressions exprs = new Expressions();
    exprs.name = dep.name();
    String lib = dep.library();
    if (lib.length() > 0) {
      // Take special action to resolve the "this" library name
      if ("this".equals(lib)) {
        String thisLibrary = (String)
            attrs.get(com.sun.faces.application.ApplicationImpl.THIS_LIBRARY);
        assert(null != thisLibrary);
        lib = thisLibrary;
      }
      exprs.library = lib;
    }
    String tgt = dep.target();
    if (tgt.length() > 0) {
      exprs.target = tgt;
    }
    expressionsMap.put(dep, exprs);
  }
}
origin: org.richfaces/richfaces

private static LibraryFunction getScriptFromAnnotation(Class<?> javaClass) {
  if (javaClass.isAnnotationPresent(ClientSideScript.class)) {
    ClientSideScript clientSideScript = javaClass.getAnnotation(ClientSideScript.class);
    List<ResourceKey> resources = Lists.newArrayList();
    for (ResourceDependency dependency : clientSideScript.resources()) {
      resources.add(ResourceKey.create(dependency.name(), dependency.library()));
    }
    return new LibraryFunctionImplementation(clientSideScript.function(), resources);
  } else {
    return NO_SCRIPT;
  }
}
origin: org.apache.myfaces.core/myfaces-impl

String target = annotation.target();
if (target != null && target.length() > 0)
String target = annotation.target();
if (target != null && target.length() > 0)
origin: de.larmic.butterfaces/components

@ResourceDependencies({
    @ResourceDependency(library = "butterfaces-dist-css", name = "butterfaces-default.css", target = "head"),
    @ResourceDependency(library = "butterfaces-dist-bower", name = "jquery.js", target = "head"),
    @ResourceDependency(library = "butterfaces-dist-bower", name = "bootstrap.css", target = "head"),
    @ResourceDependency(library = "butterfaces-dist-bower", name = "bootstrap.js", target = "head"),
})
@FacesComponent(HtmlSecret.COMPONENT_TYPE)
public class HtmlSecret extends HtmlText {

  public static final String COMPONENT_TYPE = "de.larmic.butterfaces.component.secret";
  public static final String COMPONENT_FAMILY = "de.larmic.butterfaces.component.family";
  public static final String RENDERER_TYPE = "de.larmic.butterfaces.component.renderkit.html_basic.SecretRenderer";

  public HtmlSecret() {
    super();
    this.setRendererType(RENDERER_TYPE);
    this.setType("password");
  }

  @Override
  public String getFamily() {
    return COMPONENT_FAMILY;
  }

}

origin: com.liferay.faces/com.liferay.faces.alloy

/**
 * @author  Vernon Singleton
 */

//J-
@FacesRenderer(componentFamily = SelectStarRating.COMPONENT_FAMILY, rendererType = SelectStarRating.RENDERER_TYPE)
@ResourceDependencies(
  {
    @ResourceDependency(library = "liferay-faces-alloy-reslib", name = "build/aui-css/css/bootstrap.min.css"),
    @ResourceDependency(library = "liferay-faces-alloy-reslib", name = "build/aui/aui-min.js"),
    @ResourceDependency(library = "liferay-faces-alloy-reslib", name = "liferay.js")
  }
)
//J+
public class SelectStarRatingRenderer extends SelectStarRatingRendererBase {
  // Initial Generation
}

origin: primefaces/primefaces

@ResourceDependencies({
    @ResourceDependency(library = "primefaces", name = "contentflow/contentflow.css"),
    @ResourceDependency(library = "primefaces", name = "jquery/jquery.js"),
    @ResourceDependency(library = "primefaces", name = "jquery/jquery-plugins.js"),
    @ResourceDependency(library = "primefaces", name = "core.js"),
    @ResourceDependency(library = "primefaces", name = "components.js"),
    @ResourceDependency(library = "primefaces", name = "contentflow/contentflow.js")
})
public class ContentFlow extends ContentFlowBase {

  public static final String COMPONENT_TYPE = "org.primefaces.component.ContentFlow";

  public static final String CONTAINER_CLASS = "ui-contentflow ui-widget ui-widget-content ui-corner-all";
}
origin: com.liferay.faces/com.liferay.faces.alloy

/**
 * @author  Vernon Singleton
 */
@FacesRenderer(componentFamily = SelectManyCheckbox.COMPONENT_FAMILY, rendererType = SelectManyCheckbox.RENDERER_TYPE)
@ResourceDependency(library = "liferay-faces-alloy", name = "alloy.css")
public class SelectManyCheckboxRenderer extends SelectManyCheckboxRendererBase {

  @Override
  protected String getSelectType() {
    return "checkbox";
  }
}

origin: org.glassfish/jakarta.faces

public ResourceDependencyHandler(ResourceDependency[] dependencies) {
  this.dependencies = dependencies;
  Map<Object, Object> attrs = FacesContext.getCurrentInstance().getAttributes();
  expressionsMap = new HashMap<>(dependencies.length, 1.0f);
  for (ResourceDependency dep : dependencies) {
    Expressions exprs = new Expressions();
    exprs.name = dep.name();
    String lib = dep.library();
    if (lib.length() > 0) {
      // Take special action to resolve the "this" library name
      if ("this".equals(lib)) {
        String thisLibrary = (String)
            attrs.get(com.sun.faces.application.ApplicationImpl.THIS_LIBRARY);
        assert(null != thisLibrary);
        lib = thisLibrary;
      }
      exprs.library = lib;
    }
    String tgt = dep.target();
    if (tgt.length() > 0) {
      exprs.target = tgt;
    }
    expressionsMap.put(dep, exprs);
  }
}
origin: org.richfaces.ui/richfaces-components-ui

private static LibraryFunction getScriptFromAnnotation(Class<?> javaClass) {
  if (javaClass.isAnnotationPresent(ClientSideScript.class)) {
    ClientSideScript clientSideScript = javaClass.getAnnotation(ClientSideScript.class);
    List<ResourceKey> resources = Lists.newArrayList();
    for (ResourceDependency dependency : clientSideScript.resources()) {
      resources.add(ResourceKey.create(dependency.name(), dependency.library()));
    }
    return new LibraryFunctionImplementation(clientSideScript.function(), resources);
  } else {
    return NO_SCRIPT;
  }
}
origin: ButterFaces/ButterFaces

@ResourceDependencies({
    @ResourceDependency(library = "butterfaces-dist-css", name = "butterfaces-default.css", target = "head"),
    @ResourceDependency(library = "butterfaces-dist-css", name = "dist-butterfaces-bootstrap.css", target = "head"),
    @ResourceDependency(library = "butterfaces-dist-bundle-dev-js", name = "butterfaces-third-party-jquery.js", target = "head"),
    @ResourceDependency(library = "butterfaces-dist-bundle-dev-js", name = "butterfaces-third-party-bootstrap.js", target = "head")
})
@FacesComponent(HtmlSecret.COMPONENT_TYPE)
public class HtmlSecret extends HtmlText {

  public static final String COMPONENT_TYPE = "org.butterfaces.component.secret";
  public static final String COMPONENT_FAMILY = "org.butterfaces.component.family";
  public static final String RENDERER_TYPE = "org.butterfaces.component.renderkit.html_basic.SecretRenderer";

  public HtmlSecret() {
    super();
    this.setRendererType(RENDERER_TYPE);
    this.setType("password");
  }

  @Override
  public String getFamily() {
    return COMPONENT_FAMILY;
  }

}

javax.faces.applicationResourceDependency

Most used methods

  • <init>
  • library
  • name
  • target

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now