Package org.exbin.bined.basic
Enum CodeAreaViewMode
- java.lang.Object
-
- java.lang.Enum<CodeAreaViewMode>
-
- org.exbin.bined.basic.CodeAreaViewMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CodeAreaViewMode>
public enum CodeAreaViewMode extends java.lang.Enum<CodeAreaViewMode>
Enumeration of supported view modes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CODE_MATRIX
Show numerical codes only.DUAL
Show both numerical codes and textual preview.TEXT_PREVIEW
Show textual preview only.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CodeAreaViewMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CodeAreaViewMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DUAL
public static final CodeAreaViewMode DUAL
Show both numerical codes and textual preview.
-
CODE_MATRIX
public static final CodeAreaViewMode CODE_MATRIX
Show numerical codes only.
-
TEXT_PREVIEW
public static final CodeAreaViewMode TEXT_PREVIEW
Show textual preview only.
-
-
Method Detail
-
values
public static CodeAreaViewMode[] 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 (CodeAreaViewMode c : CodeAreaViewMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CodeAreaViewMode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-