Class HtmlItem.HtmlItemConditionContainer<T>
java.lang.Object
jp.ecuacion.splib.web.item.HtmlItem.HtmlItemConditionContainer<T>
- Type Parameters:
T- data type of the value
- Enclosing class:
HtmlItem
Stores multiple HtmlItem conditions.
Conditions are stored in List, so the order matters.
If you set new HtmlItem("name").setXxx(KEYWORD, "update", "A")
.setXxx(ROLE, "admin", "B").setXxx("X")
and parameters have keyword update and role "admin",
the resultant value becomes "A".
.setXxx("C") sets the default value so even if you set as follows
and you give a parameter keyword "update", the resultant value is "A".
new HtmlItem("name").setXxx("X").setXxx(KEYWORD, "update", "A")
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(HtmlItem.HtmlItemCondition<T> authInfo) adds condition.getValue(String loginState, SplibSecurityUtil.RolesAndAuthoritiesBean bean) Returns value.voidsetDefaultValue(T defaultValue) voidsetList(List<HtmlItem.HtmlItemCondition<T>> list)
-
Constructor Details
-
HtmlItemConditionContainer
Returns the defaultValue.- Parameters:
defaultValue- defaultValue
-
-
Method Details
-
add
adds condition.- Parameters:
authInfo- authInfo
-
setList
-
getDefaultValue
-
setDefaultValue
-
getValue
Returns value.- Parameters:
loginState- loginStatebean- bean- Returns:
- T
-