com.vaadin.sass.internal
Enum ScssContext.UrlMode

java.lang.Object
  extended by java.lang.Enum<ScssContext.UrlMode>
      extended by com.vaadin.sass.internal.ScssContext.UrlMode
All Implemented Interfaces:
Serializable, Comparable<ScssContext.UrlMode>
Enclosing class:
ScssContext

public static enum ScssContext.UrlMode
extends Enum<ScssContext.UrlMode>

Url mode specifies how urls appearing in an scss style sheet are interpreted. When url mode is absolute, urls will appear in the generated css as they are in the original scss file. In relative mode the folder of an imported scss stylesheet is taken into account: for instance, when importing the stylesheet foo/bar.scss containing url(baz.png), the url will be output as url(foo/baz.png). Mixed mode is a mixture of absolute and relative modes: most urls are taken to be absolute, but in simple properties (handled by RuleNode) they are relative. Mixed mode has been used in previous versions of Vaadin Sass compiler, whereas absolute mode is compatible with sass-lang.


Enum Constant Summary
ABSOLUTE
           
MIXED
           
RELATIVE
           
 
Method Summary
static ScssContext.UrlMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ScssContext.UrlMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ABSOLUTE

public static final ScssContext.UrlMode ABSOLUTE

MIXED

public static final ScssContext.UrlMode MIXED

RELATIVE

public static final ScssContext.UrlMode RELATIVE
Method Detail

values

public static ScssContext.UrlMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ScssContext.UrlMode c : ScssContext.UrlMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ScssContext.UrlMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2013–2015 Vaadin. All rights reserved.