|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QFlags<T>
public abstract class QFlags<T extends QtEnumerator>
This class manages a set of QtEnumerator values. Each enum value is treated as a flag that is either set or unset. You can set and clear flags, and query which flags are set.
Constructor Summary | |
---|---|
protected |
QFlags(T... args)
Creates a new QFlags where the flags in args are set. |
Method Summary | |
---|---|
void |
clear(QFlags<T> other)
Clears the flag other. |
void |
clear(T... ts)
Clears all flags in ts. |
void |
clearAll()
Clears all flags. |
boolean |
equals(java.lang.Object object)
|
boolean |
isSet(QFlags<T> other)
Returns true if flag other is set; otherwise, returns false. |
boolean |
isSet(T... ts)
Returns true if all ts flags are set; otherwise, returns false. |
void |
set(QFlags<T> other)
Sets the flag other |
void |
set(T... ts)
Sets the flags in ts. |
void |
setValue(int value)
Sets the value of this QFlags. |
java.lang.String |
toString()
|
int |
value()
Returns the value of this QFlags. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected QFlags(T... args)
Method Detail |
---|
public final void set(QFlags<T> other)
public final void set(T... ts)
public final boolean isSet(QFlags<T> other)
public final boolean isSet(T... ts)
public final void clear(QFlags<T> other)
public final void clear(T... ts)
public final void clearAll()
public final void setValue(int value)
public final int value()
value
in interface QtEnumerator
public final boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |