|
Eclipse Platform Release 3.1 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.jface.commands.CommandImageManager
A central lookup facility for images for commands. Images can be associated with commands using this manager.
| Field Summary | |
|---|---|
static int |
TYPE_DEFAULT
The type of image to display in the default case. |
static int |
TYPE_DISABLED
The type of image to display if the corresponding command is disabled. |
static int |
TYPE_HOVER
The type of image to display if the mouse is hovering over the command and the command is enabled. |
| Constructor Summary | |
|---|---|
CommandImageManager()
|
|
| Method Summary | |
|---|---|
void |
bind(String commandId,
int type,
String style,
URL url)
Binds a particular image path to a command id, type and style triple |
void |
clear()
Removes all of the images from this manager. |
ImageDescriptor |
getImageDescriptor(String commandId)
Retrieves the default image associated with the given command in the default style. |
ImageDescriptor |
getImageDescriptor(String commandId,
int type)
Retrieves the image of the given type associated with the given command in the default style. |
ImageDescriptor |
getImageDescriptor(String commandId,
int type,
String style)
Retrieves the image of the given type associated with the given command in the given style. |
ImageDescriptor |
getImageDescriptor(String commandId,
String style)
Retrieves the default image associated with the given command in the given style. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TYPE_DEFAULT
public static final int TYPE_DISABLED
public static final int TYPE_HOVER
| Constructor Detail |
public CommandImageManager()
| Method Detail |
public final void bind(String commandId,
int type,
String style,
URL url)
commandId - The identifier of the command to which the image should be
bound; must not be null.type - The type of image to retrieve. This value must be one of the
TYPE constants defined in this class.style - The style of the image; may be null.url - The URL to the image. Should not be null.public final void clear()
public final ImageDescriptor getImageDescriptor(String commandId)
commandId - The identifier to find; must not be null.
null.
public final ImageDescriptor getImageDescriptor(String commandId,
int type)
commandId - The identifier to find; must not be null.type - The type of image to retrieve. This value must be one of the
TYPE constants defined in this class.
null
if the given image type cannot be found.
public final ImageDescriptor getImageDescriptor(String commandId,
int type,
String style)
commandId - The identifier to find; must not be null.type - The type of image to retrieve. This value must be one of the
TYPE constants defined in this class.style - The style of the image to retrieve; may be null.
null
if the given image style and type cannot be found.
public final ImageDescriptor getImageDescriptor(String commandId,
String style)
commandId - The identifier to find; must not be null.style - The style of the image to retrieve; may be null.
null
if the given image style cannot be found.
|
Eclipse Platform Release 3.1 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.