Class HtmlItemNumber

java.lang.Object
jp.ecuacion.splib.web.bean.HtmlItem
jp.ecuacion.splib.web.bean.HtmlItemNumber

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

    • needsCommas

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

    • HtmlItemNumber

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

    • itemKindIdFieldForName

      public HtmlItemNumber itemKindIdFieldForName(String itemKindIdFieldForName)
      Description copied from class: HtmlItem
      Sets itemKindIdFieldForName and returns this for method chain.
      Overrides:
      itemKindIdFieldForName in class HtmlItem
      Parameters:
      itemKindIdFieldForName - itemKindIdFieldForName
      Returns:
      HtmlItem
    • isNotEmpty

      public HtmlItemNumber isNotEmpty(boolean isNotEmpty)
      Description copied from class: HtmlItem
      Sets isNotEmpty.

      Set true when you want to the item is required.

      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 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
    • needsCommas

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

      public boolean getNeedsCommas()