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
isRequired, isRequiredOnSearch, itemKindIdClass, itemKindIdField, itemNameKeyClass, itemNameKeyField, itemPropertyPath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisNotEmpty(boolean isNotEmpty) Deprecated.isNotEmpty(HtmlItem.HtmlItemConditionKeyEnum authKind, String authString, boolean isNotEmpty) Deprecated.itemNameKey(String itemNameKey) SetsitemNameKeyand returns this for method chain.needsCommas(boolean needsCommas) Returns needsCommas.required(boolean isRequired) Sets required.required(HtmlItem.HtmlItemConditionKeyEnum authKind, String authString, boolean isRequired) Sets isRequired with the conditions ofHtmlItemConditionKeyEnum,authString.Methods inherited from class jp.ecuacion.splib.web.bean.HtmlItem
getIsNotEmpty, getItemKindId, 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 itemKindId, 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 itemKindIdClass is used instead. When itemKindIdClass isnull, rootRecordName is used instead.- Overrides:
itemNameKeyin classHtmlItem- Parameters:
itemNameKey- itemNameKey- Returns:
- HtmlItem
-
required
Description copied from class:HtmlItemSets required. -
required
public HtmlItemNumber required(HtmlItem.HtmlItemConditionKeyEnum authKind, String authString, boolean isRequired) Description copied from class:HtmlItemSets isRequired with the conditions ofHtmlItemConditionKeyEnum,authString.When you set multiple conditions to it, the order matters. First condition prioritized.
-
isNotEmpty
Deprecated.Description copied from class:HtmlItemSets isNotEmpty.Set
truewhen you want to the item is required.- Overrides:
isNotEmptyin classHtmlItem- Parameters:
isNotEmpty- isNotEmpty- Returns:
- HtmlItem
-
isNotEmpty
@Deprecated public HtmlItemNumber isNotEmpty(HtmlItem.HtmlItemConditionKeyEnum authKind, String authString, boolean isNotEmpty) Deprecated.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
-
needsCommas
Returns needsCommas.- Parameters:
needsCommas- needsCommas- Returns:
- HtmlItemNumber
-
getNeedsCommas
public boolean getNeedsCommas()
-