|
Preferences Editor | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jppietsch.prefedit.AbstractTransferable
de.jppietsch.prefedit.Preference
An immutable key/value pair which may be placed in the clipboard.
Field Summary | |
private String |
key
The key. |
private Preferences |
prefs
The preferences node. |
private String |
value
The value. |
Constructor Summary | |
Preference(Preferences somePreferences,
String aKey)
Constructs this Preference from a given preferences node and key. |
Method Summary | |
void |
cut()
Copies this preference to the system clipboard and removes it from the preferences node. |
protected void |
doPaste(Preferences somePreferences)
Adds this transferable to the given preferences. |
protected String |
humanPresentableClassName()
Returns a human presentable name for this class. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class de.jppietsch.prefedit.AbstractTransferable |
copy, flavor, getTransferData, getTransferDataFlavors, isDataFlavorSupported, paste |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private Preferences prefs
private final String key
private final String value
Constructor Detail |
public Preference(Preferences somePreferences, String aKey)
somePreferences
- the preferences node.aKey
- the value's key.Method Detail |
public String toString()
public void cut()
cut
in class AbstractTransferable
protected String humanPresentableClassName()
humanPresentableClassName
in class AbstractTransferable
protected void doPaste(Preferences somePreferences)
doPaste
in class AbstractTransferable
somePreferences
- to which this is added.
|
Preferences Editor | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |