|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KGlobal
public class KGlobal
Access to the KDE global objects. KGlobal provides you with pointers of many central objects that exist only once in the process. It is also responsible for managing instances of KStaticDeleterBase.
KStaticDeleterBase
Constructor Summary | |
---|---|
|
KGlobal()
|
protected |
KGlobal(java.lang.Class dummy)
|
Method Summary | |
---|---|
static KInstanceInterface |
activeInstance()
|
static KCharsets |
charsets()
The global charset manager. |
static KConfig |
config()
Returns the general config object. |
static void |
deleteStaticDeleters()
Calls KStaticDeleterBase.destructObject() on all registered static deleters and unregisters them all. |
static KStandardDirs |
dirs()
Returns the application standard dirs object. |
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
protected void |
finalize()
Deletes the wrapped C++ instance |
static KIconLoader |
iconLoader()
Returns an iconloader object. |
static KInstanceInterface |
instance()
Returns the global instance. |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
static KLocale |
locale()
Returns the global locale object. |
static void |
registerStaticDeleter(KStaticDeleterBase d)
Registers a static deleter. |
static void |
setActiveInstance(KInstanceInterface d)
The instance currently active (useful in a multi-instance application, such as a KParts application). |
static KSharedConfig |
sharedConfig()
Returns the general config object. |
static java.lang.String |
staticQString(java.lang.String str)
Creates a static String. |
static void |
unregisterStaticDeleter(KStaticDeleterBase d)
Unregisters a static deleter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected KGlobal(java.lang.Class dummy)
public KGlobal()
Method Detail |
---|
public static KInstanceInterface instance()
public static KStandardDirs dirs()
public static KConfig config()
public static KSharedConfig sharedConfig()
public static KIconLoader iconLoader()
public static KLocale locale()
public static KCharsets charsets()
public static java.lang.String staticQString(java.lang.String str)
static StringmyString = KGlobal.staticString("myText");!!! Do _NOT_ use: !!!
static String myString = KGlobal.staticString("myText");This creates a static object (instead of a static reference) and as you know static objects are EVIL.
str
- the string to create
public static void registerStaticDeleter(KStaticDeleterBase d)
d
- the static deleter to registerKStaticDeleterBase
,
KStaticDeleter
public static void unregisterStaticDeleter(KStaticDeleterBase d)
d
- the static deleter to unregisterKStaticDeleterBase
,
KStaticDeleter
public static void deleteStaticDeleters()
KStaticDeleterBase
,
KStaticDeleter
public static void setActiveInstance(KInstanceInterface d)
public static KInstanceInterface activeInstance()
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 |