|
java-gnome version 4.0.7 | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
java.lang.Objectorg.freedesktop.bindings.Constant
org.freedesktop.bindings.Flag
public abstract class Flag
Representation of an enum that is used to bit-pack option flags. A flag is a Constant that can be bitwise OR'd with another flag of the same type
| Method Summary | |
|---|---|
boolean |
contains(Flag setting)
Utility function to determine whether a Flags instance has the bit embodied by setting set. |
| Methods inherited from class org.freedesktop.bindings.Constant |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public final boolean contains(Flag setting)
setting set. An example of this in action
is:
WindowState s;
...
if (s.contains(WindowState.STICKY)) {
// get a cloth to clean up the mess
}
You can only use this on instances of the same class!
|
![]() java-gnome |
||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||