public enum Selectable extends Enum<Selectable>
Enum Constant and Description |
---|
MULTI
Multi selection possible.
|
MULTI_CASCADE
Multi selection possible.
|
MULTI_LEAF_ONLY
Only leafs are selectable.
|
NONE
Not selectable.
|
SIBLING
Only siblings are selectable.
|
SIBLING_LEAF_ONLY
Only siblings are selectable and they have to be leafs.
|
SINGLE
Only one item is selectable.
|
SINGLE_LEAF_ONLY
Only one item is selectable and it must be a leaf.
|
SINGLE_OR_NONE
Only one of no item is selectable.
|
Modifier and Type | Method and Description |
---|---|
String |
getValue() |
boolean |
isLeafOnly() |
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 SINGLE_OR_NONE
public static final Selectable MULTI_LEAF_ONLY
public static final Selectable SINGLE_LEAF_ONLY
public static final Selectable SIBLING
public static final Selectable SIBLING_LEAF_ONLY
public static final Selectable 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 String getValue()
public static Selectable parse(Object name) throws IllegalArgumentException
name
- Name of the TreeSelectableIllegalArgumentException
- When the name doesn't match any TreeSelectable.public boolean isLeafOnly()
public boolean isSingle()
public boolean isSupportedBySheet()
public boolean isSupportedByTree()
public boolean isSupportedByTreeListbox()
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.