Package de.xima.fc.gui.bean.application
Class EnumBean
java.lang.Object
de.xima.fc.gui.bean.application.EnumBean
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetByModuleName
(String modulName) EAnrede[]
<T extends Enum<T>>
T[]getEnumValues
(Class<T> enumClass) Deprecated.This returns the value in source code order, which may change at any time.<T extends Enum<T> & INamedUiElement>
List<SelectItemChoice<T>>getSelectItemsByDisplayName
(Class<T> enumType) Returns all enum values asSelectItem
s, sorted by their display name.<T extends Enum<T> & INamedUiElement>
List<SelectItemChoice<T>>getSelectItemsByDisplayName
(Map<?, T> values) Returns all enum values asSelectItem
s, sorted by their display name.<T extends Enum<T> & INamedUiElement & ISortKeyProviding<S>,
S extends Comparable<S>>
List<SelectItemChoice<T>>getSelectItemsByDisplayNameCustomOrder
(Class<T> enumType) Returns all enum values asSelectItem
s, sorted byISortKeyProviding.getSortKey()
.<T extends Enum<T> & INamedUiElement & ISortKeyProviding<S>,
S extends Comparable<S>>
List<SelectItemChoice<T>>getSelectItemsByDisplayNameCustomOrder
(Map<?, T> values) Returns all enum values asSelectItem
s, sorted byISortKeyProviding.getSortKey()
.<T extends Enum<T>>
List<SelectItemChoice<T>>getSelectItemsByName
(Class<T> enumType) Returns all enum values asSelectItem
s, sorted by their technical name.<T extends Enum<T>>
List<SelectItemChoice<T>>getSelectItemsByName
(Map<String, T> values) Returns all enum values asSelectItem
s, sorted by their technical name.<T extends Enum<T> & ISortKeyProviding<S>,
S extends Comparable<S>>
List<SelectItemChoice<T>>getSelectItemsByNameCustomOrder
(Class<T> enumType) Returns all enum values asSelectItem
s, sorted by sorted byISortKeyProviding.getSortKey()
.<T extends Enum<T> & ISortKeyProviding<S>,
S extends Comparable<S>>
List<SelectItemChoice<T>>getSelectItemsByNameCustomOrder
(Map<String, T> values) Returns all enum values asSelectItem
s, sorted byISortKeyProviding.getSortKey()
.<T extends Enum<T> & ISortKeyProviding<S>,
S extends Comparable<S>>
List<T>getValuesByCustomOrder
(Class<T> enumType) Returns all enum values, sorted byISortKeyProviding.getSortKey()
.<T extends Enum<T> & ISortKeyProviding<S>,
S extends Comparable<S>>
List<T>getValuesByCustomOrder
(Map<?, T> values) Returns all enum values, sorted byISortKeyProviding.getSortKey()
.<T extends Enum<T> & INamedUiElement>
List<T>getValuesByDisplayName
(Class<T> enumType) Returns all enum values, sorted by their display name.<T extends Enum<T> & INamedUiElement>
List<T>getValuesByDisplayName
(Map<?, T> values) Returns all enum values, sorted by their display name.getValuesByName
(Class<T> enumType) Returns all enum values, sorted by their technical name.getValuesByName
(Map<String, T> values) Returns all enum values, sorted by their technical name.
-
Constructor Details
-
EnumBean
public EnumBean()
-
-
Method Details
-
getEAnrede
-
getEAuthClientType
-
getEBenutzerverwaltungsTyp
-
getEBenutzerStatus
-
getEDatenquellenTyp
-
getETextbausteinKategorie
-
getEExecCondition
-
getEWeiterverarbeitungBedingung
-
getEWeiterverarbeitungAktion
-
getEWeiterverarbeitungStatus
-
getEDatenbankTyp
-
getEDbEncryptionAlgorithm
-
getERessourcenTyp
-
getEMatchCondition
-
getEAktionsResultat
-
getELanguage
-
getENodeType
-
getEClusterProtocolType
-
getELogLevel
-
getEMailEncryption
-
getEMailAuthenticationType
-
getByModuleName
-
getEAuthClientTypeConfigurable
-
getESystemDatenbankTypen
-
getEFormExportOptions
-
getEnumValues
Deprecated.This returns the value in source code order, which may change at any time. UsegetValuesByDisplayName(Class)
etc. for alphabetical ordering. If you need a custom ordering, either declare the order via<f:selectItem>
or via a custom bean method.Returns all enum values, in the order as declared in the Java source code.- Type Parameters:
T
- Type of the enum class.- Parameters:
enumClass
- Type of the enum type.- Returns:
- All enum values, in the order as declared in the Java source code.
-
getValuesByDisplayName
Returns all enum values, sorted by their display name. Should not be used in Java code, but is meant for XHTML pages in combination withp:importConstants
. For Java code, usegetValuesByDisplayName(Class)
.- Type Parameters:
T
- Type of the enum class.- Parameters:
values
- A map with the enum values as keys.- Returns:
- All enum values, sorted by
INamedUiElement.getDisplayName(Locale)
.
-
getValuesByCustomOrder
public <T extends Enum<T> & ISortKeyProviding<S>,S extends Comparable<S>> List<T> getValuesByCustomOrder(Map<?, T> values) Returns all enum values, sorted byISortKeyProviding.getSortKey()
. Should not be used in Java code, but is meant for XHTML pages in combination withp:importConstants
. For Java code, usegetValuesByCustomOrder(Class)
.- Type Parameters:
T
- Type of the enum class.- Parameters:
values
- A map with the enum values as keys.- Returns:
- All enum values, sorted by
ISortKeyProviding.getSortKey()
.
-
getValuesByDisplayName
Returns all enum values, sorted by their display name.- Type Parameters:
T
- Type of the enum class.- Parameters:
enumType
- Type of the enum class.- Returns:
- All enum values, sorted by
INamedUiElement.getDisplayName(Locale)
.
-
getValuesByCustomOrder
public <T extends Enum<T> & ISortKeyProviding<S>,S extends Comparable<S>> List<T> getValuesByCustomOrder(Class<T> enumType) Returns all enum values, sorted byISortKeyProviding.getSortKey()
.- Type Parameters:
T
- Type of the enum class.- Parameters:
enumType
- Type of the enum class.- Returns:
- All enum values, sorted by
ISortKeyProviding.getSortKey()
.
-
getValuesByName
Returns all enum values, sorted by their technical name. Should not be used in Java code, but is meant for XHTML pages in combination withp:importConstants
. For Java code, usegetValuesByName(Class)
.- Type Parameters:
T
- Type of the enum class.- Parameters:
values
- A map with the enum values as keys.- Returns:
- All enum values, sorted by
Enum.name()
.
-
getValuesByName
Returns all enum values, sorted by their technical name.- Type Parameters:
T
- Type of the enum class.- Parameters:
enumType
- Type of the enum class.- Returns:
- All enum values, sorted by
Enum.name()
.
-
getSelectItemsByDisplayName
public <T extends Enum<T> & INamedUiElement> List<SelectItemChoice<T>> getSelectItemsByDisplayName(Map<?, T> values) Returns all enum values asSelectItem
s, sorted by their display name. Should not be used in Java code, but is meant for XHTML pages in combination withp:importConstants
. For Java code, usegetSelectItemsByDisplayName(Class)
.- Type Parameters:
T
- Type of the enum class.- Parameters:
values
- A map with the enum values as keys.- Returns:
- All enum values as select items, sorted by
INamedUiElement.getDisplayName(Locale)
. The label is the display name.
-
getSelectItemsByDisplayNameCustomOrder
public <T extends Enum<T> & INamedUiElement & ISortKeyProviding<S>,S extends Comparable<S>> List<SelectItemChoice<T>> getSelectItemsByDisplayNameCustomOrder(Map<?, T> values) Returns all enum values asSelectItem
s, sorted byISortKeyProviding.getSortKey()
. Should not be used in Java code, but is meant for XHTML pages in combination withp:importConstants
. For Java code, usegetSelectItemsByDisplayName(Class)
.- Type Parameters:
T
- Type of the enum class.- Parameters:
values
- A map with the enum values as keys.- Returns:
- All enum values as select items, sorted by
ISortKeyProviding.getSortKey()
. The label is the display name.
-
getSelectItemsByDisplayName
public <T extends Enum<T> & INamedUiElement> List<SelectItemChoice<T>> getSelectItemsByDisplayName(Class<T> enumType) Returns all enum values asSelectItem
s, sorted by their display name.- Type Parameters:
T
- Type of the enum class.- Parameters:
enumType
- Type of the enum class.- Returns:
- All enum values, sorted by
INamedUiElement.getDisplayName(Locale)
. The label is the display name.
-
getSelectItemsByDisplayNameCustomOrder
public <T extends Enum<T> & INamedUiElement & ISortKeyProviding<S>,S extends Comparable<S>> List<SelectItemChoice<T>> getSelectItemsByDisplayNameCustomOrder(Class<T> enumType) Returns all enum values asSelectItem
s, sorted byISortKeyProviding.getSortKey()
.- Type Parameters:
T
- Type of the enum class.- Parameters:
enumType
- Type of the enum class.- Returns:
- All enum values, sorted by
ISortKeyProviding.getSortKey()
. The label is the display name.
-
getSelectItemsByName
Returns all enum values asSelectItem
s, sorted by their technical name. Should not be used in Java code, but is meant for XHTML pages in combination withp:importConstants
. For Java code, usegetSelectItemsByName(Class)
.- Type Parameters:
T
- Type of the enum class.- Parameters:
values
- A map with the enum values as keys.- Returns:
- All enum values, sorted by
Enum.name()
. The label is the technical name.
-
getSelectItemsByNameCustomOrder
public <T extends Enum<T> & ISortKeyProviding<S>,S extends Comparable<S>> List<SelectItemChoice<T>> getSelectItemsByNameCustomOrder(Map<String, T> values) Returns all enum values asSelectItem
s, sorted byISortKeyProviding.getSortKey()
. Should not be used in Java code, but is meant for XHTML pages in combination withp:importConstants
. For Java code, usegetSelectItemsByName(Class)
.- Type Parameters:
T
- Type of the enum class.- Parameters:
values
- A map with the enum values as keys.- Returns:
- All enum values, sorted by
ISortKeyProviding.getSortKey()
. The label is theEnum.name()
.
-
getSelectItemsByName
Returns all enum values asSelectItem
s, sorted by their technical name.- Type Parameters:
T
- Type of the enum class.- Parameters:
enumType
- Type of the enum class.- Returns:
- All enum values, sorted by
Enum.name()
. The label is the technical name.
-
getSelectItemsByNameCustomOrder
public <T extends Enum<T> & ISortKeyProviding<S>,S extends Comparable<S>> List<SelectItemChoice<T>> getSelectItemsByNameCustomOrder(Class<T> enumType) Returns all enum values asSelectItem
s, sorted by sorted byISortKeyProviding.getSortKey()
.- Type Parameters:
T
- Type of the enum class.- Parameters:
enumType
- Type of the enum class.- Returns:
- All enum values, sorted by
ISortKeyProviding.getSortKey()
. The label isEnum.name()
.
-