|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.resource.DeviceResourceDescriptor
public abstract class DeviceResourceDescriptor
Instances of this class can allocate and dispose SWT resources. Each instance describes a particular resource (such as a Color, Font, or Image) and can create and destroy that resource on demand. DeviceResourceDescriptors are managed by a ResourceRegistry.
ResourceManager| Constructor Summary | |
|---|---|
DeviceResourceDescriptor()
|
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
createResource(Device device)
Creates the resource described by this descriptor |
abstract void |
destroyResource(java.lang.Object previouslyCreatedObject)
Undoes everything that was done by a previous call to create(...), given the object that was returned by create(...). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceResourceDescriptor()
| Method Detail |
|---|
public abstract java.lang.Object createResource(Device device)
device - the Device on which to allocate the resource
DeviceResourceException - if unable to allocate the resourcepublic abstract void destroyResource(java.lang.Object previouslyCreatedObject)
previouslyCreatedObject - an object that was returned by an equal
descriptor in a previous call to createResource(...).
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.