|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KRootProp
public class KRootProp
Access KDE desktop resources stored on the root window. A companion to the KConfig class. The KRootProp class is used for reading and writing configuration entries to properties on the root window. All configuration entries are of the form "key=value".
KConfig.KConfig(org.kde.koala.KConfigBackEnd)
Constructor Summary | |
---|---|
|
KRootProp()
|
protected |
KRootProp(java.lang.Class dummy)
|
|
KRootProp(java.lang.String rProp)
Constructs a KRootProp object for the property rProp. |
Method Summary | |
---|---|
void |
destroy()
Destroys the property completely. |
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
protected void |
finalize()
Deletes the wrapped C++ instance |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
java.util.ArrayList |
listEntries()
Returns a list of all keys. |
java.lang.String |
prop()
Returns the name of the property under which keys are searched. |
org.kde.qt.QColor |
readColorEntry(java.lang.String rKey)
|
org.kde.qt.QColor |
readColorEntry(java.lang.String rKey,
org.kde.qt.QColor pDefault)
Reads a QColor. |
java.lang.String |
readEntry(java.lang.String rKey)
|
java.lang.String |
readEntry(java.lang.String rKey,
java.lang.String pDefault)
Reads the value of an entry specified by rKey in the current property. |
org.kde.qt.QFont |
readFontEntry(java.lang.String rKey)
|
org.kde.qt.QFont |
readFontEntry(java.lang.String rKey,
org.kde.qt.QFont pDefault)
Reads a QFont value. |
int |
readNumEntry(java.lang.String rKey)
|
int |
readNumEntry(java.lang.String rKey,
int nDefault)
Reads a numerical value. |
java.lang.String |
removeEntry(java.lang.String rKey)
Removes an entry. |
void |
setProp()
|
void |
setProp(java.lang.String rProp)
Sets the property in which keys will be searched. |
void |
sync()
Flushes the entry cache. |
java.lang.String |
writeEntry(java.lang.String rKey,
int nValue)
Writes the (key/value) pair. |
java.lang.String |
writeEntry(java.lang.String rKey,
org.kde.qt.QColor rColor)
Writes the (key/value) pair. |
java.lang.String |
writeEntry(java.lang.String rKey,
org.kde.qt.QFont rFont)
Writes the (key/value) pair. |
java.lang.String |
writeEntry(java.lang.String rKey,
java.lang.String rValue)
Writes a (key/value) pair. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected KRootProp(java.lang.Class dummy)
public KRootProp(java.lang.String rProp)
rProp.
rProp
- the property that will be searched, null to
do nothingsetProp(java.lang.String)
public KRootProp()
Method Detail |
---|
public void setProp(java.lang.String rProp)
rProp
- the property that will be searchedpublic void setProp()
public java.lang.String prop()
public void destroy()
public java.lang.String readEntry(java.lang.String rKey, java.lang.String pDefault)
rKey
in the current property.
rKey
- The key to search for.pDefault
- A default value returned if the key was not found.
public java.lang.String readEntry(java.lang.String rKey)
public int readNumEntry(java.lang.String rKey, int nDefault)
rKey
in the current property
and interprets it numerically.
rKey
- The key to search for.nDefault
- A default value returned if the key was not found.
public int readNumEntry(java.lang.String rKey)
public org.kde.qt.QFont readFontEntry(java.lang.String rKey, org.kde.qt.QFont pDefault)
rKey
in the current property
and interpret it as a font object.
rKey
- The key to search for.pDefault
- A default value returned if the key was not found.
public org.kde.qt.QFont readFontEntry(java.lang.String rKey)
public org.kde.qt.QColor readColorEntry(java.lang.String rKey, org.kde.qt.QColor pDefault)
rKey
in the current property
and interprets it as a color.
rKey
- The key to search for.pDefault
- A default value returned if the key was not found.
public org.kde.qt.QColor readColorEntry(java.lang.String rKey)
public java.lang.String writeEntry(java.lang.String rKey, java.lang.String rValue)
rKey
- The key to write.rValue
- The value to write.
public java.lang.String writeEntry(java.lang.String rKey, int nValue)
rKey
- The key to write.nValue
- The value to write.
public java.lang.String writeEntry(java.lang.String rKey, org.kde.qt.QFont rFont)
rKey
- The key to write.rFont
- The font to write.
public java.lang.String writeEntry(java.lang.String rKey, org.kde.qt.QColor rColor)
rKey
- The key to write.rColor
- The color to write.
public java.lang.String removeEntry(java.lang.String rKey)
rKey
- The key to remove.
public java.util.ArrayList listEntries()
public void sync()
protected void finalize() throws java.lang.InternalError
finalize
in class java.lang.Object
java.lang.InternalError
public void dispose()
public boolean isDisposed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |