org.broadleafcommerce.common.presentation.client
Enum LookupType
java.lang.Object
java.lang.Enum<LookupType>
org.broadleafcommerce.common.presentation.client.LookupType
- All Implemented Interfaces:
- Serializable, Comparable<LookupType>
public enum LookupType
- extends Enum<LookupType>
Defines whether or not a to-one lookup should be rendered in a modal to be selected or
through a pre-populated dropdown.
- Author:
- Andre Azzolini (apazzolini)
|
Method Summary |
static LookupType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LookupType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
STANDARD
public static final LookupType STANDARD
DROPDOWN
public static final LookupType DROPDOWN
values
public static LookupType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (LookupType c : LookupType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static LookupType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2013. All Rights Reserved.