Package muntjac :: Package terminal :: Module theme_resource :: Class ThemeResource
[hide private]
[frames] | no frames]

Class ThemeResource

source code

        object --+    
                 |    
resource.IResource --+
                     |
                    ThemeResource

ThemeResource is a named theme dependent 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.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

Instance Methods [hide private]
 
__init__(self, resourceId)
Creates a resource.
source code
 
__eq__(self, obj)
Tests if the given object equals this IResource.
source code
 
__ne__(self, obj) source code
 
__hash__(self)
hash(x)
source code
 
__str__(self)
str(x)
source code
 
getResourceId(self)
Gets the resource id.
source code
 
getMIMEType(self)
Gets the MIME type of the resource.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, resourceId)
(Constructor)

source code 

Creates a resource.

Parameters:
  • resourceId - the Id of the resource.
Overrides: object.__init__

__eq__(self, obj)
(Equality operator)

source code 

Tests if the given object equals this IResource.

Parameters:
  • obj - the object to be tested for equality.
Returns:
True if the given object equals this Icon, False if not.

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

getResourceId(self)

source code 

Gets the resource id.

Returns:
the resource id.

getMIMEType(self)

source code 

Gets the MIME type of the resource.

Returns:
the MIME type of the resource.
Overrides: resource.IResource.getMIMEType