public static enum PageResource.ResourceType extends Enum<PageResource.ResourceType>
RichDocument.addResource(PageResource)
Enum Constant and Description |
---|
CSS
text/css, to be rendered in a <style/> or <link> element
|
JAVASCRIPT
text/javascript, to be rendered in a <script/> element
|
Modifier and Type | Method and Description |
---|---|
static PageResource.ResourceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PageResource.ResourceType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final PageResource.ResourceType CSS
public static final PageResource.ResourceType JAVASCRIPT
public static PageResource.ResourceType[] values()
for (PageResource.ResourceType c : PageResource.ResourceType.values()) System.out.println(c);
public static PageResource.ResourceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null