|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.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 | |
|---|---|
PreferenceOperationView |
create(PreferenceModel model)
Creates and returns a view of this PreferenceOperation for
model. |
boolean |
equals(Object obj)
|
String |
getDescription()
Gets a short human readable description of this operation. |
Icon |
getIcon()
Gets an icon for this operation. |
String |
getIconId()
Gets the current identifier for the icon of this operation. |
int |
hashCode()
|
void |
setDescription(String description)
Sets a human readable description of this operation. |
void |
setDescriptionId(String descriptionId)
Sets the unique identifier of the description. |
void |
setIcon(Icon icon)
Sets an icon for this operation. |
void |
setIconId(String iconId)
Sets the identifier for the icon, the identifier will be used to read an icon from the IconManager. |
| 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 operation
public 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 operation| Method Detail |
|---|
public PreferenceOperationView create(PreferenceModel model)
PreferenceOperation for
model.
model - the model using the operation
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic Icon getIcon()
public void setIcon(Icon icon)
icon - the new icon, can be nullpublic String getIconId()
setIconId(String)public void setIconId(String iconId)
IconManager.
iconId - the new id, can not be nullpublic String getDescription()
public void setDescriptionId(String descriptionId)
TextManager.
descriptionId - the identifier, not nullpublic void setDescription(String description)
description - the description
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||