Enum Class DisplayResultView
- All Implemented Interfaces:
Serializable,Comparable<DisplayResultView>,Constable
Definition of the different views of result page a survey can display.
- Author:
- silveryocha
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic List<DisplayResultView>fromMainViewOnly(String mainView) Gets a list ofDisplayResultViewinstance from a main view part of identifier.static DisplayResultViewfromString(String name) Gets theDisplayResultViewinstance that matches the specified result view name or code.The code of the view is a combination of the main and sub view separated by an underscore.Gets the main view.Gets the bundle key of main view.Gets the secondary level view.Gets the bundle key of secondary level view.static DisplayResultViewReturns the enum constant of this class with the specified name.static DisplayResultView[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASSIC_GRAPHICAL
-
CLASSIC_HORIZONTAL_BAR
-
DETAIL
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
Gets theDisplayResultViewinstance that matches the specified result view name or code.- Parameters:
name- the enum name or the full name of a predefined result view in survey component.- Returns:
- the
DisplayResultViewinstance having as name the specified role name orDETAILif no such role exists.
-
fromMainViewOnly
Gets a list ofDisplayResultViewinstance from a main view part of identifier.- Parameters:
mainView- a main view part of identifier.- Returns:
- a list of
DisplayResultViewinstance.
-
getIdentifier
The code of the view is a combination of the main and sub view separated by an underscore.- Returns:
- a code as string.
-
getMainView
Gets the main view.- Returns:
- a string.
-
getSecondaryLevelView
Gets the secondary level view.- Returns:
- a string.
-
getMainViewBundleKey
Gets the bundle key of main view.- Returns:
- a string representing a bundle key.
-
getSecondaryViewBundleKey
Gets the bundle key of secondary level view.- Returns:
- a string representing a bundle key.
-