Package com.vaadin.server
Class ThemeResource
- java.lang.Object
-
- com.vaadin.server.ThemeResource
-
- All Implemented Interfaces:
Resource,Serializable
public class ThemeResource extends Object implements Resource
ThemeResourceis a named theme dependant resource provided and managed by a theme. The actual resource contents are dynamically resolved to comply with the used theme by the terminal adapter. This is commonly used to provide static images, flash, java-applets, etc for the terminals.- Since:
- 3.0
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ThemeResource(String resourceId)Creates a resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Tests if the given object equals this Resource.StringgetMIMEType()Gets the MIME type of the resource.StringgetResourceId()Gets the resource id.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
ThemeResource
public ThemeResource(String resourceId)
Creates a resource.- Parameters:
resourceId- the Id of the resource.
-
-
Method Detail
-
equals
public boolean equals(Object obj)
Tests if the given object equals this Resource.- Overrides:
equalsin classObject- Parameters:
obj- the object to be tested for equality.- Returns:
trueif the given object equals this Icon,falseif not.- See Also:
Object.equals(Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
getResourceId
public String getResourceId()
Gets the resource id.- Returns:
- the resource id.
-
getMIMEType
public String getMIMEType()
Description copied from interface:ResourceGets the MIME type of the resource.- Specified by:
getMIMETypein interfaceResource- Returns:
- the MIME type of the resource.
- See Also:
Resource.getMIMEType()
-
-