com.vaadin.terminal
Class ThemeResource

java.lang.Object
  extended by com.vaadin.terminal.ThemeResource
All Implemented Interfaces:
Resource, Serializable

public class ThemeResource
extends Object
implements Resource

ThemeResource is 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
Version:
7.0.0.alpha3
Author:
Vaadin Ltd.
See Also:
Serialized Form

Constructor Summary
ThemeResource(String resourceId)
          Creates a resource.
 
Method Summary
 boolean equals(Object obj)
          Tests if the given object equals this Resource.
 String getMIMEType()
          Gets the MIME type of the resource.
 String getResourceId()
          Gets the resource id.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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:
equals in class Object
Parameters:
obj - the object to be tested for equality.
Returns:
true if the given object equals this Icon, false if not.
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getResourceId

public String getResourceId()
Gets the resource id.

Returns:
the resource id.

getMIMEType

public String getMIMEType()
Description copied from interface: Resource
Gets the MIME type of the resource.

Specified by:
getMIMEType in interface Resource
Returns:
the MIME type of the resource.
See Also:
Resource.getMIMEType()


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.