Module jp.ecuacion.splib.web
Package jp.ecuacion.splib.web.bean
Class HtmlField.HtmlFieldConditionContainer<T>
java.lang.Object
jp.ecuacion.splib.web.bean.HtmlField.HtmlFieldConditionContainer<T>
- Type Parameters:
T- data type of the value
- Enclosing class:
HtmlField
Stores multiple HtmlField conditions.
Conditions are stored in List, so the order matters.
If you set new HtmlField("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 HtmlField("name").setXxx("X").setXxx(KEYWORD, "update", "A")
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(HtmlField.HtmlFieldCondition<T> authInfo) adds condition.getValue(String loginState, SplibSecurityUtil.RolesAndAuthoritiesBean bean) Returns value.voidsetDefaultValue(T defaultValue) voidsetList(List<HtmlField.HtmlFieldCondition<T>> list)
-
Constructor Details
-
HtmlFieldConditionContainer
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
-