Package de.xima.fc.gui.model.portal
Enum EUserPortalViewTab
- java.lang.Object
-
- java.lang.Enum<EUserPortalViewTab>
-
- de.xima.fc.gui.model.portal.EUserPortalViewTab
-
- All Implemented Interfaces:
Serializable
,Comparable<EUserPortalViewTab>
public enum EUserPortalViewTab extends Enum<EUserPortalViewTab>
Enum for the tabs in the user portal UI.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADVANCED
Advanced tab for editing advanced settings such as custom properties.BASE
Base tab with for editing e.g.CUSTOMIZATION
Customization tab for editing the portal's appearance (e.g.FORMS
Forms tab for editing the forms available in the portal.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EUserPortalViewTab
byTabIndexOrNull(int activeTabIndex)
Gets the tab by its index.int
tabIndex()
Gets the index of the tab.static EUserPortalViewTab
valueOf(String name)
Returns the enum constant of this type with the specified name.static EUserPortalViewTab[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BASE
public static final EUserPortalViewTab BASE
Base tab with for editing e.g. the portal's name and description.
-
FORMS
public static final EUserPortalViewTab FORMS
Forms tab for editing the forms available in the portal.
-
CUSTOMIZATION
public static final EUserPortalViewTab CUSTOMIZATION
Customization tab for editing the portal's appearance (e.g. localized messages and files).
-
ADVANCED
public static final EUserPortalViewTab ADVANCED
Advanced tab for editing advanced settings such as custom properties.
-
-
Method Detail
-
values
public static EUserPortalViewTab[] 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 (EUserPortalViewTab c : EUserPortalViewTab.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EUserPortalViewTab 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
-
tabIndex
public int tabIndex()
Gets the index of the tab.- Returns:
- Index of the tab.
-
byTabIndexOrNull
public static EUserPortalViewTab byTabIndexOrNull(int activeTabIndex)
Gets the tab by its index.- Parameters:
activeTabIndex
- Index of the tab.- Returns:
- The tab or null if no tab with the given index exists.
-
-