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

## com.trolltech.qt.gui
Class QInputContextFactory

    java.lang.Object
      com.trolltech.qt.QSignalEmitter
          com.trolltech.qt.QtJambiObject
              com.trolltech.qt.gui.QInputContextFactory

All Implemented Interfaces:
  QtJambiInterface

    public class QInputContextFactory

extends QtJambiObject

The `QInputContextFactory` class creates `QInputContext` objects.

The input context factory creates a `QInputContext` object for a given key with QInputContextFactory::create().

The input contexts are either built-in or dynamically loaded from an input context plugin (see QInputContextPlugin).

`keys` returns a list of valid keys. The keys are the names used, for example, to identify and specify input methods for the input method switching mechanism. The names have to be consistent with QInputContext::identifierName(), and may only contain ASCII characters.

A key can be used to retrieve the associated input context's supported languages using `languages`. You can retrieve the input context's description using `description` and finally you can get a user friendly internationalized name of the `QInputContext` object specified by the key using `displayName`.

See Also:
  `QInputContext`, `QInputContextPlugin`

Nested Class Summary

Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
`QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>`

Method Summary
`static QInputContext` | `create(java.lang.String key, QObject parent)` Creates and returns a `QInputContext` object for the input context specified by `key` with the given `parent`.
`static java.lang.String` | `description(java.lang.String key)` Returns an internationalized brief description of the `QInputContext` object specified by `key`.
`static java.lang.String` | `displayName(java.lang.String key)` Returns a user friendly internationalized name of the `QInputContext` object specified by `key`.
`static QInputContextFactory` | `fromNativePointer(QNativePointer nativePointer)` This function returns the QInputContextFactory instance pointed to by nativePointer
`static java.util.List<java.lang.String>` | `keys()` Returns the list of keys this factory can create input contexts for.
`static java.util.List<java.lang.String>` | `languages(java.lang.String key)` Returns the languages supported by the `QInputContext` object specified by `key`.

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

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

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

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

Method Detail

### create

    public static QInputContext create(java.lang.String key,
                                       QObject parent)

  Creates and returns a `QInputContext` object for the input context specified by `key` with the given `parent`. Keys are case sensitive.

  See Also:
    `keys`

### description

    public static java.lang.String description(java.lang.String key)

  Returns an internationalized brief description of the `QInputContext` object specified by `key`. You can, for example, use this description in a user interface.

  See Also:
    `keys`, `displayName`

### displayName

    public static java.lang.String displayName(java.lang.String key)

  Returns a user friendly internationalized name of the `QInputContext` object specified by `key`. You can, for example, use this name in a menu.

  See Also:
    `keys`, `QInputContext::identifierName`

### keys

    public static java.util.List<java.lang.String> keys()

  Returns the list of keys this factory can create input contexts for.

  The keys are the names used, for example, to identify and specify input methods for the input method switching mechanism. The names have to be consistent with QInputContext::identifierName(), and may only contain ASCII characters.

  See Also:
    `create`, `displayName`, `QInputContext::identifierName`

### languages

    public static java.util.List<java.lang.String> languages(java.lang.String key)

  Returns the languages supported by the `QInputContext` object specified by `key`.

  The languages are expressed as language code (e.g. "zh_CN", "zh_TW", "zh_HK", "ja", "ko", ...). An input context that supports multiple languages can return all supported languages as a `QStringList`. The name has to be consistent with QInputContext::language().

  This information may be used to optimize a user interface.

  See Also:
    `keys`, `QInputContext::language`, `QLocale`

### fromNativePointer

    public static QInputContextFactory fromNativePointer(QNativePointer nativePointer)

  This function returns the QInputContextFactory instance pointed to by nativePointer

  Parameters:
    `nativePointer` - the QNativePointer of which object should be returned.

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