Class Resource
IMPORTANT: This class is intended to be subclassed only within the RWT implementation. However, it has not been marked final to allow those outside of the RWT development team to implement patched versions of the class in order to get around specific limitations in advance of when those limitations can be addressed by the team. Any class built using subclassing to access the internals of this class will likely fail to compile or run between releases and may be strongly platform specific. Subclassing should not be attempted without an intimate and detailed understanding of the workings of the hierarchy. No support is provided for user-written classes which are implemented as subclasses of this class.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes of the resource.Returns theDevicewhere this resource was created.booleanReturnstrueif the resource has been disposed, andfalseotherwise.
-
Method Details
-
getDevice
Returns theDevicewhere this resource was created.- Returns:
Devicethe device of the receiver- Since:
- 1.3
-
dispose
public void dispose()Disposes of the resource. Applications must dispose of all resources which they allocate. This method does nothing if the resource is already disposed.- Since:
- 1.3
-
isDisposed
public boolean isDisposed()Returnstrueif the resource has been disposed, andfalseotherwise.This method gets the dispose state for the resource. When a resource has been disposed, it is an error to invoke any other method (except
dispose()) using the resource.- Returns:
truewhen the resource is disposed andfalseotherwise- Since:
- 1.3
-