Enum InputTypeEnum
- java.lang.Object
-
- java.lang.Enum<InputTypeEnum>
-
- cn.mapway.ui.client.mvc.attribute.InputTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<InputTypeEnum>
public enum InputTypeEnum extends Enum<InputTypeEnum>
int INPUT_TEXTBOX = 0; int INPUT_DROPDOWNLIST = 1; int INPUT_CHECKBOX = 2; int INPUT_COLOR = 3; int INPUT_PATH = 4; int INPUT_FILE = 5; int INPUT_SLIDER = 6; int INPUT_OTHERS = 99; int INPUT_PATHALL = 7; int INPUT_TEXTAREA = 8; int INPUT_MULTIFILE = 9;
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INPUT_CHECKBOXINPUT_COLORINPUT_CUSTOM_EDITORINPUT_DROPDOWNINPUT_FILEINPUT_MULTI_FILEINPUT_OTHERSINPUT_PATHINPUT_PATH_ALLINPUT_SLIDERINPUT_TEXTAREAINPUT_TEXTBOX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()StringgetName()static InputTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static InputTypeEnumvalueOfCode(Integer code)static InputTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INPUT_OTHERS
public static final InputTypeEnum INPUT_OTHERS
-
INPUT_TEXTBOX
public static final InputTypeEnum INPUT_TEXTBOX
-
INPUT_DROPDOWN
public static final InputTypeEnum INPUT_DROPDOWN
-
INPUT_CHECKBOX
public static final InputTypeEnum INPUT_CHECKBOX
-
INPUT_COLOR
public static final InputTypeEnum INPUT_COLOR
-
INPUT_PATH
public static final InputTypeEnum INPUT_PATH
-
INPUT_FILE
public static final InputTypeEnum INPUT_FILE
-
INPUT_SLIDER
public static final InputTypeEnum INPUT_SLIDER
-
INPUT_PATH_ALL
public static final InputTypeEnum INPUT_PATH_ALL
-
INPUT_TEXTAREA
public static final InputTypeEnum INPUT_TEXTAREA
-
INPUT_MULTI_FILE
public static final InputTypeEnum INPUT_MULTI_FILE
-
INPUT_CUSTOM_EDITOR
public static final InputTypeEnum INPUT_CUSTOM_EDITOR
-
-
Method Detail
-
values
public static InputTypeEnum[] 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 (InputTypeEnum c : InputTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InputTypeEnum 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 nameNullPointerException- if the argument is null
-
valueOfCode
public static InputTypeEnum valueOfCode(Integer code)
-
getCode
public int getCode()
-
getName
public String getName()
-
-