|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.extension.gui.dock.preference.PreferenceOperation
public class PreferenceOperation
Represents an operation that a PreferenceEditor
or a PreferenceModel
can
execute, e.g. "reset value to default". This class does not contain any code to
perform the operation, it just serves as key for the operation. The actual implementation
is part of the editor or the model.
Field Summary | |
---|---|
static PreferenceOperation |
DEFAULT
Operation for setting a property to its default value |
static PreferenceOperation |
DELETE
Operation for deleting a property. |
Constructor Summary | |
---|---|
PreferenceOperation(String key)
Creates a new operation. |
|
PreferenceOperation(String key,
Icon icon,
String description)
Creates a new operation. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getDescription()
Gets a short human readable description of this operation. |
Icon |
getIcon()
Gets an icon for this operation. |
int |
hashCode()
|
void |
setDescription(String description)
Sets a human readable description of this operation. |
void |
setIcon(Icon icon)
Sets an icon for this operation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PreferenceOperation DELETE
public static final PreferenceOperation DEFAULT
Constructor Detail |
---|
public PreferenceOperation(String key)
key
- the unique identifier of this operationpublic PreferenceOperation(String key, Icon icon, String description)
key
- the unique identifier of this operationicon
- an icon for this operation, should have a size of 10x10 pixelsdescription
- a small description of this operationMethod Detail |
---|
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public Icon getIcon()
public void setIcon(Icon icon)
icon
- the new iconpublic String getDescription()
public void setDescription(String description)
description
- the description
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |