java.lang.Object
jp.ecuacion.splib.web.bean.HtmlItem
jp.ecuacion.splib.web.bean.HtmlItemNumber
Is used for number field.
-
Nested Class Summary
Nested classes/interfaces inherited from class jp.ecuacion.splib.web.bean.HtmlItem
HtmlItem.HtmlItemCondition<T>, HtmlItem.HtmlItemConditionContainer<T>, HtmlItem.HtmlItemConditionKeyEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanDetermines whether commas are used or not.Fields inherited from class jp.ecuacion.splib.web.bean.HtmlItem
isNotEmpty, isNotEmptyOnSearch, itemNameKeyClass, itemNameKeyField, itemPropertyPath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisNotEmpty(boolean isNotEmpty) Sets isNotEmpty.isNotEmpty(HtmlItem.HtmlItemConditionKeyEnum authKind, String authString, boolean isNotEmpty) Sets isNotEmpty with the conditions ofHtmlItemConditionKeyEnum,authString.isNotEmptyOnSearch(boolean isNotEmpty) Sets required.isNotEmptyOnSearch(HtmlItem.HtmlItemConditionKeyEnum authKind, String authString, boolean isNotEmpty) Sets isRequiredOnSearch with the conditions ofHtmlItemConditionKeyEnum,authString.itemNameKey(String itemNameKey) SetsitemNameKeyand returns this for method chain.needsCommas(boolean needsCommas) Returns needsCommas.notEmpty()Sets isNotEmpty == true, which means you want the item to be not empty.Sets required.required(boolean isRequired) Deprecated.required(HtmlItem.HtmlItemConditionKeyEnum authKind, String authString, boolean isRequired) Deprecated.Methods inherited from class jp.ecuacion.splib.web.bean.HtmlItem
getIsNotEmpty, getIsNotEmptyOnSearch, getItemNameKey, getItemPropertyPath, getRequiredOnSearch, required, requiredOnSearch, requiredOnSearch
-
Field Details
-
needsCommas
protected boolean needsCommasDetermines whether commas are used or not.
-
-
Constructor Details
-
HtmlItemNumber
Constructs a new instance.- Parameters:
itemPropertyPath- propertyPath- See Also:
-
-
Method Details
-
itemNameKey
Description copied from class:HtmlItemSetsitemNameKeyand returns this for method chain.The format of itemNameKey is the same as itemNameKey, which is like "acc.name", always has one dot (not more than one) in the middle of the string.
But the argument of the method can be like "name". In that case itemNameKeyClass is used instead. When itemNameKeyClass isnull, rootRecordName is used instead.- Overrides:
itemNameKeyin classHtmlItem- Parameters:
itemNameKey- itemNameKey- Returns:
- HtmlItem
-
required
Deprecated.Description copied from class:HtmlItemSets required. -
required
@Deprecated public HtmlItemNumber required(HtmlItem.HtmlItemConditionKeyEnum authKind, String authString, boolean isRequired) Deprecated.Description copied from class:HtmlItemSets isRequired with the conditions ofHtmlItemConditionKeyEnum,authString.When you set multiple conditions to it, the order matters. First condition prioritized.
-
notEmpty
Description copied from class:HtmlItemSets isNotEmpty == true, which means you want the item to be not empty. -
isNotEmpty
Description copied from class:HtmlItemSets isNotEmpty.Set
truewhen you want to the item is not empty.- Overrides:
isNotEmptyin classHtmlItem- Parameters:
isNotEmpty- isNotEmpty- Returns:
- HtmlItem
-
isNotEmpty
public HtmlItemNumber isNotEmpty(HtmlItem.HtmlItemConditionKeyEnum authKind, String authString, boolean isNotEmpty) Description copied from class:HtmlItemSets isNotEmpty with the conditions ofHtmlItemConditionKeyEnum,authString.When you set multiple conditions to it, the order matters. First condition prioritized.
- Overrides:
isNotEmptyin classHtmlItem- Parameters:
authKind- authKindauthString- authStringisNotEmpty- isNotEmpty- Returns:
- HtmlItem
-
notEmptyOnSearch
Description copied from class:HtmlItemSets required.- Overrides:
notEmptyOnSearchin classHtmlItem- Returns:
- HtmlItem
-
isNotEmptyOnSearch
Description copied from class:HtmlItemSets required.- Overrides:
isNotEmptyOnSearchin classHtmlItem- Returns:
- HtmlItem
-
isNotEmptyOnSearch
public HtmlItemNumber isNotEmptyOnSearch(HtmlItem.HtmlItemConditionKeyEnum authKind, String authString, boolean isNotEmpty) Description copied from class:HtmlItemSets isRequiredOnSearch with the conditions ofHtmlItemConditionKeyEnum,authString.When you set multiple conditions to it, the order matters. First condition prioritized.
- Overrides:
isNotEmptyOnSearchin classHtmlItem- Parameters:
authKind- authKindauthString- authStringisNotEmpty- isRequired- Returns:
- HtmlItem
-
needsCommas
Returns needsCommas.- Parameters:
needsCommas- needsCommas- Returns:
- HtmlItemNumber
-
getNeedsCommas
public boolean getNeedsCommas()
-