Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.0)
E10684-08


oracle.adf.view.rich.resource
Class PageResource

java.lang.Object
  extended by oracle.adf.view.rich.resource.PageResource

All Implemented Interfaces:
java.io.Serializable

public final class PageResource
extends java.lang.Object
implements java.io.Serializable

Definition for a CSS or JavaScript resource that should be added to the page. Specifies a URI for a css or js file.

See Also:
Serialized Form

Nested Class Summary
static class PageResource.ResourceLocation
          Enumeration representing the type of resources that may be added to the HEAD element of the document.
static class PageResource.ResourceType
          Enumeration representing the type of resources that may be added to the HEAD element of the document.

 

Constructor Summary
PageResource(PageResource.ResourceType type, PageResource.ResourceLocation location, java.lang.String value)
          Constructor
PageResource(PageResource.ResourceType type, java.lang.String uri)
          Constructor

 

Method Summary
 boolean equals(java.lang.Object obj)
          
 PageResource.ResourceLocation getLocation()
          Get the resource location
 PageResource.ResourceType getType()
          Get the resource type
 java.lang.String getURI()
          Deprecated. use getValue() instead
 java.lang.String getValue()
          The URI or the content depending on the location
 int hashCode()
          

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

PageResource

public PageResource(PageResource.ResourceType type,
                    java.lang.String uri)
Constructor
Parameters:
type - The type of resource this is (CSS or JavaScript)
uri - The URI to the resource

PageResource

public PageResource(PageResource.ResourceType type,
                    PageResource.ResourceLocation location,
                    java.lang.String value)
Constructor
Parameters:
type - The type of resource this is (CSS or JavaScript)
location - The location of the resource, required
value - The URI or the in-line content, required

Method Detail

getLocation

public PageResource.ResourceLocation getLocation()
Get the resource location
Returns:

getType

public PageResource.ResourceType getType()
Get the resource type

getURI

@Deprecated
public java.lang.String getURI()
Deprecated. use getValue() instead
Get the resource URI

getValue

public java.lang.String getValue()
The URI or the content depending on the location
See Also:
getLocation()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.0)
E10684-08


Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.