Package com.jalios.jcms.alert
Enum AlertAppHandler.UITab
- java.lang.Object
-
- java.lang.Enum<AlertAppHandler.UITab>
-
- com.jalios.jcms.alert.AlertAppHandler.UITab
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AlertAppHandler.UITab>
- Enclosing class:
- AlertAppHandler
public static enum AlertAppHandler.UITab extends java.lang.Enum<AlertAppHandler.UITab>
Simple POJO to handle render of UI navigation tabs.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALERT
RECOMMENDATION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAppBodyJsp()
java.lang.String
getAppHeaderTitle(java.lang.String userLang)
java.lang.String
getAppSidebarJsp()
static AlertAppHandler.UITab
getFromKey(java.lang.String str)
java.lang.String
getLabel(java.lang.String userLang)
java.lang.String
getNavigationUrl()
protected java.lang.String
getParamName()
java.lang.String
getValue()
static AlertAppHandler.UITab
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AlertAppHandler.UITab[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALERT
public static final AlertAppHandler.UITab ALERT
-
RECOMMENDATION
public static final AlertAppHandler.UITab RECOMMENDATION
-
-
Method Detail
-
values
public static AlertAppHandler.UITab[] 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 (AlertAppHandler.UITab c : AlertAppHandler.UITab.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlertAppHandler.UITab 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
-
getAppHeaderTitle
public java.lang.String getAppHeaderTitle(java.lang.String userLang)
- Parameters:
userLang
- the user lang- Returns:
- the App header title
-
getValue
public java.lang.String getValue()
- Returns:
- the input's value to select this UITab.
-
getLabel
public java.lang.String getLabel(java.lang.String userLang)
- Parameters:
userLang
- the user lang- Returns:
- the I18N label for this UITab
-
getParamName
protected java.lang.String getParamName()
- Returns:
- the HTML input's name to select a UITab
-
getFromKey
public static AlertAppHandler.UITab getFromKey(java.lang.String str)
- Parameters:
str
- HTML input's value- Returns:
- UITab instance given the HTML input's value
-
getNavigationUrl
public java.lang.String getNavigationUrl()
- Returns:
- the HREF to navigate to this tab.
-
getAppBodyJsp
public java.lang.String getAppBodyJsp()
- Returns:
- the JSP path to render the APP body associated to this tab.
-
getAppSidebarJsp
public java.lang.String getAppSidebarJsp()
- Returns:
- the JSP path to render the APP body associated to this tab.
-
-