java.lang.Object
jp.ecuacion.splib.web.bean.HtmlField
- Direct Known Subclasses:
HtmlFieldNumber,HtmlFieldString
Stores attributes of each html component which controls the behiviors of it in html pages.
It is named with "field"
because it's name is defined in the "field" format like "mailAddress".
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStores one HtmlField condition.static classStores multiple HtmlField conditions.static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringIs an ID to the display name of the field.protected StringIs an ID which the root record name plus dot (like"acc.") is removed from the itemId.protected HtmlField.HtmlFieldConditionContainer<Boolean> Shows whether the field allows empty. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondisplayNameId(String displayNameId) ReturnsdisplayNameIdvalue if it's notnull, andgetId()booleangetIsNotEmpty(String loginState, SplibSecurityUtil.RolesAndAuthoritiesBean bean) isNotEmpty(boolean isNotEmpty) isNotEmpty(HtmlField.HtmlFieldConditionKeyEnum authKind, String authString, boolean isNotEmpty) 複数登録する場合は、登録順序に意味がある。
-
Field Details
-
id
Is an ID which the root record name plus dot (like"acc.") is removed from the itemId.When you treat the field in the record belonging to the root record, you need to define it like
childRecord.childFieldName.It is required if you construct this class.
-
displayNameId
Is an ID to the display name of the field.The display name can be obtained by referring
field_names.propertieswith it. -
isNotEmpty
Shows whether the field allows empty.When this value is
true, required validation is executed on server side, and shows "required" mark on the component in the html page.It doesn't depend on the data type.
The default value is preset:
false. So the value becomesfalseif you don't have to set this value.
-
-
Constructor Details
-
HtmlField
Constructs a new instance withID.- Parameters:
id- fieldId
-
-
Method Details
-
getId
-
displayNameId
-
getDisplayNameId
ReturnsdisplayNameIdvalue if it's notnull, and- Returns:
-
isNotEmpty
-
isNotEmpty
public HtmlField isNotEmpty(HtmlField.HtmlFieldConditionKeyEnum authKind, String authString, boolean isNotEmpty) 複数登録する場合は、登録順序に意味がある。先に登録されたものから順に検証し、当てはまればその値を使用する。 -
getIsNotEmpty
-