Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.gui
Class QItemEditorCreator

    java.lang.Object
      com.trolltech.qt.internal.QSignalEmitterInternal
          com.trolltech.qt.QSignalEmitter
              com.trolltech.qt.QtJambiObject
                  com.trolltech.qt.gui.QItemEditorCreatorBase
                      com.trolltech.qt.gui.QItemEditorCreator

All Implemented Interfaces:
  QtJambiInterface

    public class QItemEditorCreator

extends QItemEditorCreatorBase

Nested Class Summary

Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
`QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9`

Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal`

Field Summary

Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`currentSender`

Constructor Summary
`QItemEditorCreator(java.lang.String valuePropertyName, java.lang.Class widgetType)`

Method Summary
`QWidget` | `createWidget(QWidget parent)` Returns an editor widget with the given `parent`.
`QByteArray` | `valuePropertyName()` Returns the name of the property used to get and set values in the creator's editor widgets.

Methods inherited from class com.trolltech.qt.QtJambiObject
`dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr`

Methods inherited from class com.trolltech.qt.QSignalEmitter
`blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread`

Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`__qt_signalInitialization`

Methods inherited from class java.lang.Object
`clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface com.trolltech.qt.QtJambiInterface
`disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership`

Constructor Detail

### QItemEditorCreator

    public QItemEditorCreator(java.lang.String valuePropertyName,
                              java.lang.Class widgetType)

Method Detail

### createWidget

    public QWidget createWidget(QWidget parent)

  Description copied from class: `QItemEditorCreatorBase`
  Returns an editor widget with the given `parent`.

  When implementing this function in subclasses of this class, you must construct and return new editor widgets with the parent widget specified.

  Specified by:
    `createWidget` in class `QItemEditorCreatorBase`

### valuePropertyName

    public QByteArray valuePropertyName()

  Description copied from class: `QItemEditorCreatorBase`
  Returns the name of the property used to get and set values in the creator's editor widgets.

  When implementing this function in subclasses, you must ensure that the editor widget's property specified by this function can accept the type the creator is registered for. For example, a creator which constructs `QCheckBox` widgets to edit boolean values would return the `checkable` property name from this function, and must be registered in the item editor factory for the `QVariant::Bool` type.

  Note: Since Qt 4.2 the item delegates query the user property of widgets, and only call this function if the widget has no user property. You can override this behavior by reimplementing `QAbstractItemDelegate::setModelData()` and `QAbstractItemDelegate::setEditorData()`.

See also:
  QMetaObject::userProperty(), and `QItemEditorFactory::registerEditor()`.

  Specified by:
    `valuePropertyName` in class `QItemEditorCreatorBase`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD