Class HtmlFieldNumber

java.lang.Object
jp.ecuacion.splib.web.bean.HtmlField
jp.ecuacion.splib.web.bean.HtmlFieldNumber

public class HtmlFieldNumber extends HtmlField
Is used for number field.
  • Field Details

    • needsCommas

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

    • HtmlFieldNumber

      public HtmlFieldNumber(String id)
      Constructs a new instance.
      Parameters:
      id - id
  • Method Details

    • displayNameId

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

      public HtmlFieldNumber isNotEmpty(boolean isNotEmpty)
      Description copied from class: HtmlField
      Sets isNotEmpty.

      Set true when you want to the item is required.

      Overrides:
      isNotEmpty in class HtmlField
      Parameters:
      isNotEmpty - isNotEmpty
      Returns:
      HtmlField
    • isNotEmpty

      public HtmlFieldNumber isNotEmpty(HtmlField.HtmlFieldConditionKeyEnum authKind, String authString, boolean isNotEmpty)
      Description copied from class: HtmlField
      Sets isNotEmpty with the conditions of HtmlFieldConditionKeyEnum, authString.

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

      Overrides:
      isNotEmpty in class HtmlField
      Parameters:
      authKind - authKind
      authString - authString
      isNotEmpty - isNotEmpty
      Returns:
      HtmlField
    • needsCommas

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

      public boolean getNeedsCommas()