%3 ::xowiki::formfield::text ::xowiki::formfield::text add_statistics initialize render_input ::xowiki::formfield::FormField ::xowiki::formfield::FormField ::xowiki::formfield::text->::xowiki::formfield::FormField ::xowiki::formfield::numeric ::xowiki::formfield::numeric answer_check=eq check=numeric convert_to_external convert_to_internal convert_to_internal_value initialize pretty_value render_input ::xowiki::formfield::numeric->::xowiki::formfield::text ::xowiki::formfield::user_id ::xowiki::formfield::user_id initialize pretty_value ::xowiki::formfield::user_id->::xowiki::formfield::numeric ::xowiki::formfield::YYYY ::xowiki::formfield::YYYY check=YYYY ::xowiki::formfield::YYYY->::xowiki::formfield::numeric ::xowiki::formfield::author ::xowiki::formfield::author pretty_value ::xowiki::formfield::author->::xowiki::formfield::user_id ::xowiki::formfield::party_id ::xowiki::formfield::party_id check=party_id_check ::xowiki::formfield::party_id->::xowiki::formfield::user_id

Class ::xowiki::formfield::numeric

::xowiki::formfield::numeric[i] create ... \
           [ -connection_locale (default "1") ] \
           [ -format (default "%.2f") ] \
           [ -keep_string_rep (default "0") ] \
           [ -strict (default "0") ]

Field with numeric content. Depending on the format, the accepted value can be either an integer or a floating point number. The widget performs localization based on the setting of :locale. In case 'keep_string_rep' is not true, the widget converts the value to an internal representation to be able to evaluate numeric expressions by this. When 'keep_string_rep' is true, the original string representation is kept, and only validation is performed.
Documented Parameters:
format
format for output and determining integer property
connection_locale
when set, use the connection locale as source for internationalized input
strict
when set, use just use the locale for input checking. Otherwise, always accept as fallback what is accepted by en_US.
keep_string_rep
when true, do not convert from and to the internal representation, but preserve the original string.
Defined in packages/xowiki/tcl/form-field-procs.tcl

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::formfield::text[i]
  • subclass: ::xowiki::formfield::user_id[i], ::xowiki::formfield::YYYY[i]

Methods (to be applied on instances)

  • answer_check=eq (scripted)

  • check=numeric (scripted)

  • connection_locale (setter)

  • convert_to_external (scripted)

  • convert_to_internal (scripted)

  • convert_to_internal_value (scripted)

  • format (setter)

  • initialize (scripted)

  • keep_string_rep (setter)

  • pretty_value (scripted)

  • render_input (scripted)

  • strict (setter)

  • validator (setter)