|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.kde.koala.KKeySequence
public class KKeySequence
A KKeySequence object holds a sequence of up to 4 keys. Ex: Ctrl+X,I
KKey,
KShortcut| Field Summary | |
|---|---|
static int |
MAX_KEYS
|
| Constructor Summary | |
|---|---|
|
KKeySequence()
Create a new null key sequence. |
protected |
KKeySequence(java.lang.Class dummy)
|
|
KKeySequence(KKey key)
Create a new key sequence that only contains the given key. |
|
KKeySequence(KKeySequence keySeq)
Copies the given key sequence. |
|
KKeySequence(org.kde.qt.QKeySequence keySeq)
Copies the given qt key sequence. |
|
KKeySequence(java.lang.String keySeq)
Creates a new key sequence that contains the given key sequence. |
| Method Summary | |
|---|---|
void |
clear()
Clears the key sequence. |
int |
compare(KKeySequence keySeq)
Compares this object with the given key sequence. |
int |
count()
Returns the number of key strokes of this sequence. |
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
protected void |
finalize()
Deletes the wrapped C++ instance |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
boolean |
isNull()
Returns true if the key sequence is null (after clear() or empty constructor). |
boolean |
isTriggerOnRelease()
|
KKey |
key(int i)
Return the i'th key of this sequence, or a null key if there
are less then i keys. |
int |
keyCodeQt()
Returns the qt key code of the first key. |
static KKeySequence |
nil()
Returns a null key sequence. |
boolean |
op_equals(KKeySequence seq)
Compares the keys of both sequences. |
boolean |
op_lt(KKeySequence seq)
Compares the keys of both sequences. |
boolean |
op_not_equals(KKeySequence seq)
Compares the keys of both sequences. |
org.kde.qt.QKeySequence |
qt()
Converts this key sequence to a QKeySequence. |
boolean |
setKey(int i,
KKey key)
Sets the i'th key of the sequence. |
boolean |
startsWith(KKeySequence keySeq)
Returns true if this key sequence begins with the given sequence. |
java.lang.String |
toString()
Returns the key sequence as a number of key presses as returned by KKey.toString(), separated by commas. |
java.lang.String |
toStringInternal()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_KEYS
| Constructor Detail |
|---|
protected KKeySequence(java.lang.Class dummy)
public KKeySequence()
isNull(),
#null,
clear()public KKeySequence(org.kde.qt.QKeySequence keySeq)
keySeq - the qt key sequence to copypublic KKeySequence(KKey key)
key - the key to addpublic KKeySequence(KKeySequence keySeq)
keySeq - the key sequence to copypublic KKeySequence(java.lang.String keySeq)
keySeq - the description of the keyKKeyServer#Sym#init,
KKey#KKey(const| Method Detail |
|---|
public void clear()
isNull()public int count()
MAX_KEYSpublic KKey key(int i)
i'th key of this sequence, or a null key if there
are less then i keys.
i - the key to retrieve
i'th key, or KKey.null() if there are less
than i keysMAX_KEYSpublic boolean isTriggerOnRelease()
public boolean setKey(int i,
KKey key)
i'th key of the sequence. You can not introduce gaps
in a sequence, so you must use an i <= count(). Also note that
the maximum length of a key sequence is MAX_KEYS.
i - the position of the new key (<= count(), <= MAX_KEYS)key - the key to set
public boolean isNull()
clear(),
#nullpublic boolean startsWith(KKeySequence keySeq)
keySeq - the key sequence to search
public int compare(KKeySequence keySeq)
keySeq - the key sequence to compare to
KKey#sequencepublic boolean op_equals(KKeySequence seq)
compare(org.kde.koala.KKeySequence)public boolean op_not_equals(KKeySequence seq)
compare(org.kde.koala.KKeySequence)public boolean op_lt(KKeySequence seq)
compare(org.kde.koala.KKeySequence)public org.kde.qt.QKeySequence qt()
public int keyCodeQt()
org.kde.qt.Qt#Key,
KKey.keyCodeQt()public java.lang.String toString()
toString in class java.lang.ObjectKKey.toString()public java.lang.String toStringInternal()
public static KKeySequence nil()
isNull(),
clear()
protected void finalize()
throws java.lang.InternalError
finalize in class java.lang.Objectjava.lang.InternalErrorpublic void dispose()
public boolean isDisposed()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||