public enum EnableableItem extends Enum<EnableableItem>
CDockable
that can be disabled.Enum Constant and Description |
---|
ACTIONS
Allows to disabled any
CAction or DockAction |
ALL
A combination of all
EnableableItem that exist |
SELF
|
TABS
Allows to disabled any kind of tab
|
TITLES
Allows to disabled any
DockTitle |
Modifier and Type | Method and Description |
---|---|
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 are declared.
|
public static final EnableableItem TITLES
DockTitle
public static final EnableableItem ACTIONS
CAction
or DockAction
public static final EnableableItem TABS
public static final EnableableItem SELF
public static final EnableableItem ALL
EnableableItem
that existpublic static 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 nameNullPointerException
- if the argument is nullpublic 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 testitem
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 tooflags
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 enabledflags
except item