|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KDataToolInfo
public class KDataToolInfo
This is a convenience class for KService. You can use it if you have a KService describing a KDataTool. In this case the KDataToolInfo class is more convenient to work with. Especially useful is the method createTool which creates the datatool described by the service.
KDataTool
Constructor Summary | |
---|---|
|
KDataToolInfo()
Create an invalid KDataToolInfo. |
protected |
KDataToolInfo(java.lang.Class dummy)
|
|
KDataToolInfo(KDataToolInfo info)
Copy constructor. |
Method Summary | |
---|---|
java.util.ArrayList |
commands()
Returns the list of commands the DataTool can execute. |
KDataTool |
createTool()
|
KDataTool |
createTool(org.kde.qt.QObject parent)
|
KDataTool |
createTool(org.kde.qt.QObject parent,
java.lang.String name)
Creates the data tool described by this KDataToolInfo. |
java.lang.String |
dataType()
Returns the data type that the DataTool can accept. |
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
protected void |
finalize()
Deletes the wrapped C++ instance |
java.lang.String |
iconName()
Returns the icon name for this DataTool. |
KInstanceInterface |
instance()
The instance of the service. |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
boolean |
isReadOnly()
Checks whether the DataTool is read-only. |
boolean |
isValid()
A DataToolInfo may be invalid if the KService passed to its constructor does not feature the service type "KDataTool". |
java.util.ArrayList |
mimeTypes()
Returns a list of mime type that will be accepted by the DataTool. |
java.util.ArrayList |
userCommands()
Returns a list of strings that you can put in a QPopupMenu item, for example to offer the DataTools services to the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected KDataToolInfo(java.lang.Class dummy)
public KDataToolInfo()
public KDataToolInfo(KDataToolInfo info)
Method Detail |
---|
public java.lang.String dataType()
public java.util.ArrayList mimeTypes()
public boolean isReadOnly()
public java.lang.String iconName()
public java.util.ArrayList userCommands()
public java.util.ArrayList commands()
public KDataTool createTool(org.kde.qt.QObject parent, java.lang.String name)
parent
- the parent of the QObject (or 0 for parent-less KDataTools)name
- the name of the QObject, can be 0
public KDataTool createTool(org.kde.qt.QObject parent)
public KDataTool createTool()
public KInstanceInterface instance()
public boolean isValid()
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 |