|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QAbstractStyleFactoryInterface
Method Summary | |
---|---|
long |
__qt_cast_to_QAbstractStyleFactory(long ptr)
This method is internal to Qt Jambi. |
QStyle |
create(java.lang.String key)
Creates and returns a QStyle object for the given style key. |
java.util.List<java.lang.String> |
keys()
Returns the list of style keys this plugin supports. |
Methods inherited from interface com.trolltech.qt.core.QAbstractFactoryInterface |
---|
__qt_cast_to_QAbstractFactory |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Method Detail |
---|
QStyle create(java.lang.String key)
QStyle
object for the given style key. The style key is usually the class name of the required style. Note that the keys are case insensitive. For example:
List<String> keys() { List<String> keyList = new Vector<String>(); keyList.add("Rocket"); keyList.add("StarBuster"); return keyList; }
QStyle create(String key) { String lcKey = key; if (lcKey.equals("rocket")) { return new RocketStyle(); } else if (lcKey.equals("starbuster")) { return new StarBusterStyle(); } return null; }
keys()
.
java.util.List<java.lang.String> keys()
These keys are usually the class names of the custom styles that are implemented in the plugin.
create()
.
keys
in interface QAbstractFactoryInterface
long __qt_cast_to_QAbstractStyleFactory(long ptr)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |