Class resource is a named resource accessed with the class loader. This can be used to access resources such as icons, files, etc.
3.0
Inheritance Path. java.lang.Object-> com.itmill.toolkit.terminal.ClassResource
Parameters
associatedClass
The class of the which the resource is associated.
resourceName
Unique identifier of the resource within the application.
application
The application this resource will be added to.
Create new application resource instance.
Parameters
resourceName
Unique identifier of the resource within the application.
application
The application this resource will be added to.
Create new application resource instance. The resource id is relative to the location of the application class.
Get the application of the resource
Parameters
int The size of the buffer in bytes.
Get the size of the download buffer used for this resource.
If the buffer size is 0, the buffer size is decided by the terminal adapter. The default value is 0.
Parameters
Cache time in milliseconds
Get lenght of cache expiration time.
This gives the adapter the possibility cache streams sent to the client. The caching may be made in adapter or at the client if the client supports caching. Default is DEFAULT_CACHETIME.
Parameters
bufferSize
The size of the buffer in bytes.
Set the size of the download buffer used for this resource.
Parameters
cacheTime
The cache time in milliseconds.
Set lenght of cache expiration time.
This gives the adapter the possibility cache streams sent to the client. The caching may be made in adapter or at the client if the client supports caching. Zero or negavive value disbales the caching of this stream.