public enum Selectable extends Enum<Selectable>
Enum Constant and Description |
---|
multi
Multi selection possible.
|
multiCascade
Multi selection possible.
|
multiLeafOnly
Only leafs are selectable.
|
none
Not selectable.
|
sibling
Only siblings are selectable.
|
siblingLeafOnly
Only siblings are selectable and they have to be leafs.
|
single
Only one item is selectable.
|
singleLeafOnly
Only one item is selectable and it must be a leaf.
|
singleOrNone
Only one of no item is selectable.
|
Modifier and Type | Field and Description |
---|---|
static String |
MULTI |
static String |
MULTI_CASCADE |
static String |
MULTI_LEAF_ONLY |
static String |
NONE |
static String |
SIBLING |
static String |
SIBLING_LEAF_ONLY |
static String |
SINGLE |
static String |
SINGLE_LEAF_ONLY |
static String |
SINGLE_OR_NONE |
Modifier and Type | Method and Description |
---|---|
boolean |
isLeafOnly() |
boolean |
isMulti() |
boolean |
isSingle() |
boolean |
isSupportedBySheet() |
boolean |
isSupportedByTree() |
boolean |
isSupportedByTreeListbox() |
static Selectable |
parse(Object name) |
static Selectable |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Selectable[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Selectable none
public static final Selectable multi
public static final Selectable single
public static final Selectable singleOrNone
public static final Selectable multiLeafOnly
public static final Selectable singleLeafOnly
public static final Selectable sibling
public static final Selectable siblingLeafOnly
public static final Selectable multiCascade
public static final String NONE
public static final String MULTI
public static final String SINGLE
public static final String SINGLE_OR_NONE
public static final String MULTI_LEAF_ONLY
public static final String SINGLE_LEAF_ONLY
public static final String SIBLING
public static final String SIBLING_LEAF_ONLY
public static final String MULTI_CASCADE
public static Selectable[] values()
for (Selectable c : Selectable.values()) System.out.println(c);
public static Selectable 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 static Selectable parse(Object name) throws IllegalArgumentException
name
- Name of the SelectableIllegalArgumentException
- When the name doesn't match any Selectable.public boolean isLeafOnly()
public boolean isSingle()
public boolean isMulti()
public boolean isSupportedBySheet()
public boolean isSupportedByTree()
public boolean isSupportedByTreeListbox()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.