|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<EnableableItem> bibliothek.gui.dock.common.EnableableItem
public enum EnableableItem
Describes one part of a CDockable
that can be disabled.
Enum Constant Summary | |
---|---|
ACTIONS
Allows to disabled any CAction or DockAction |
|
ALL
A combination of all EnableableItem that exist |
|
SELF
Allows to disabled the CDockable or CStation itself |
|
TABS
Allows to disabled any kind of tab |
|
TITLES
Allows to disabled any DockTitle |
Method Summary | |
---|---|
static int |
add(int flags,
EnableableItem item)
Adds item to the flags and returns a new flag. |
int |
getFlag()
Gets the flag of this item, the flag is used to store a combination of several items. |
static boolean |
isEnabled(int flags,
EnableableItem item)
Tells whether the flags , which was created by add(int, EnableableItem) and
remove(int, EnableableItem) , contains item . |
static int |
remove(int flags,
EnableableItem item)
Removes item from flags and returns a new flag. |
static EnableableItem |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EnableableItem[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EnableableItem TITLES
DockTitle
public static final EnableableItem ACTIONS
CAction
or DockAction
public static final EnableableItem TABS
public static final EnableableItem SELF
CDockable
or CStation
itself
public static final EnableableItem ALL
EnableableItem
that exist
Method Detail |
---|
public static final EnableableItem[] values()
for(EnableableItem c : EnableableItem.values()) System.out.println(c);
public static EnableableItem valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int getFlag()
public static boolean isEnabled(int flags, EnableableItem item)
flags
, which was created by add(int, EnableableItem)
and
remove(int, EnableableItem)
, contains item
.
flags
- the flags that are enableditem
- the item to test
item
is enabledpublic static int add(int flags, EnableableItem item)
item
to the flags
and returns a new flag.
flags
- the enabled itemsitem
- the item that should be enabled too
flags
and item
public static int remove(int flags, EnableableItem item)
item
from flags
and returns a new flag.
flags
- the enabled itemsitem
- the item that should no longer be enabled
flags
except item
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |