Codota Logo
ThemeStylingService.getFlavor
Code IndexAdd Codota to your IDE (free)

How to use
getFlavor
method
in
org.nuxeo.theme.styling.service.ThemeStylingService

Best Java code snippets using org.nuxeo.theme.styling.service.ThemeStylingService.getFlavor (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core

@Override
public FlavorDescriptor getFlavor(String flavorName) {
  if (flavorName == null) {
    return null;
  }
  return themeStylingService.getFlavor(flavorName);
}
origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core

/**
 * Returns favicons for current flavor.
 *
 * @since 7.4
 */
public List<IconDescriptor> getFavicons() {
  if (currentFavicons == null) {
    String flavor = getCurrentFlavor();
    FlavorDescriptor f = themeStylingService.getFlavor(flavor);
    currentFavicons = new ArrayList<IconDescriptor>();
    if (f != null) {
      List<IconDescriptor> icons = f.getFavicons();
      currentFavicons.addAll(icons);
    }
  }
  return currentFavicons;
}
origin: org.nuxeo.ecm.platform/nuxeo-web-resources-wro

if (flavorName != null) {
  ThemeStylingService s = Framework.getService(ThemeStylingService.class);
  FlavorDescriptor fd = s.getFlavor(flavorName);
  if (fd != null) {
    List<SassImport> sassVars = fd.getSassImports();
org.nuxeo.theme.styling.serviceThemeStylingServicegetFlavor

Javadoc

Returns the flavor for given name, or null if not found.

If not defined on the local flavor, flavor attributes will be resolved from the extended flavor if any.

Popular methods of ThemeStylingService

  • getDefaultFlavorName
    Returns the default flavor for a given theme page
  • getLogo
    Returns the logo configured for given flavor name, and fallbacks on the extends flavor logo if not s
  • getPage
    Returns the page for given name. Resources and bundles declared for all pages will also be attached
  • getPages
    Rerurns all pages declared on the service, except the global one named "*". Resources and bundles d
  • getPresetVariables
    Returns the map of variable replacements for given flavor. Returns an empty map if flavor is not res
  • negotiate
    Returns the negotiated String value for given target variable. Context can be dependent on the targe

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now