Class HtmlItemNumber

java.lang.Object
jp.ecuacion.lib.core.item.EclibItem
jp.ecuacion.splib.web.item.HtmlItem
jp.ecuacion.splib.web.item.HtmlItemNumber

public class HtmlItemNumber extends HtmlItem
Is used for number item.
  • Field Details

    • needsCommas

      protected boolean needsCommas
      Determines whether commas are used or not.
  • Constructor Details

    • HtmlItemNumber

      public HtmlItemNumber(String itemPropertyPath)
      Constructs a new instance.
      Parameters:
      itemPropertyPath - propertyPath
      See Also:
  • Method Details

    • itemNameKey

      public HtmlItemNumber itemNameKey(String itemNameKey)
      Overrides:
      itemNameKey in class HtmlItem
    • hideValue

      public HtmlItemNumber hideValue()
      Overrides:
      hideValue in class HtmlItem
    • notEmpty

      public HtmlItemNumber notEmpty()
      Description copied from class: HtmlItem
      Sets isNotEmpty == true, which means you want the item to be not empty.
      Overrides:
      notEmpty in class HtmlItem
      Returns:
      HtmlItem
    • isNotEmpty

      public HtmlItemNumber isNotEmpty(boolean isNotEmpty)
      Description copied from class: HtmlItem
      Sets isNotEmpty to isNotEmpty.
      Overrides:
      isNotEmpty in class HtmlItem
      Parameters:
      isNotEmpty - isNotEmpty
      Returns:
      HtmlItem
    • isNotEmpty

      public HtmlItemNumber isNotEmpty(HtmlItem.HtmlItemConditionKeyEnum authKind, String authString, boolean isNotEmpty)
      Description copied from class: HtmlItem
      Sets isNotEmpty to isNotEmpty with the conditions of HtmlItemConditionKeyEnum, authString.

      When you set multiple conditions to it, the order matters. First condition prioritized.

      Overrides:
      isNotEmpty in class HtmlItem
      Parameters:
      authKind - authKind
      authString - authString
      isNotEmpty - isNotEmpty
      Returns:
      HtmlItem
    • notEmptyOnSearch

      public HtmlItemNumber notEmptyOnSearch()
      Description copied from class: HtmlItem
      Sets required.
      Overrides:
      notEmptyOnSearch in class HtmlItem
      Returns:
      HtmlItem
    • isNotEmptyOnSearch

      public HtmlItemNumber isNotEmptyOnSearch(boolean isNotEmpty)
      Description copied from class: HtmlItem
      Sets required.
      Overrides:
      isNotEmptyOnSearch in class HtmlItem
      Returns:
      HtmlItem
    • isNotEmptyOnSearch

      public HtmlItemNumber isNotEmptyOnSearch(HtmlItem.HtmlItemConditionKeyEnum authKind, String authString, boolean isNotEmpty)
      Description copied from class: HtmlItem
      Sets isNotEmptyOnSearch with the conditions of HtmlItemConditionKeyEnum, authString.

      When you set multiple conditions to it, the order matters. First condition prioritized.

      Overrides:
      isNotEmptyOnSearch in class HtmlItem
      Parameters:
      authKind - authKind
      authString - authString
      isNotEmpty - isRequired
      Returns:
      HtmlItem
    • needsCommas

      public HtmlItemNumber needsCommas(boolean needsCommas)
      Returns needsCommas.
      Parameters:
      needsCommas - needsCommas
      Returns:
      HtmlItemNumber
    • getNeedsCommas

      public boolean getNeedsCommas()