%3 ::xowiki::formfield::FormField ::xowiki::formfield::FormField → fc_decode → fc_encode → get_from_name → get_single_spec → interprete_condition CSSclass_list_add add_statistics answer_check=AND answer_check=answer_words answer_check=btwn answer_check=contains answer_check=contains-not answer_check=eq answer_check=ge answer_check=gt answer_check=in answer_check=le answer_check=lt answer_check=match answer_is_correct asWidgetSpec behavior booleanAttributes config_from_spec convert_to_external convert_to_internal describe dict_to_fc dict_to_spec dict_value escape_message_keys field_value handle_transmit_always has_instance_variable init initialize interprete_single_spec is_disabled is_repeat_template_p leaf_components localize make_correct pretty_image pretty_value process_correct_when_modifier remove_omit render render_answer_statistics render_collapsed render_disabled_as_div render_error_msg render_form_widget render_help_text render_input render_item render_localizer render_modal render_result_statistics render_word_statistics repeat repeat_add_label resetBooleanAttributes reset_on_validation_error reset_parameter same_value set_disabled set_feedback set_is_repeat_template stats_record_count validate validation_check value_if_nothing_is_returned_from_form word_statistics ::xo::tdom::Object ::xo::tdom::Object ::xowiki::formfield::FormField->::xo::tdom::Object ::xowiki::formfield::text ::xowiki::formfield::text add_statistics initialize render_input ::xowiki::formfield::text->::xowiki::formfield::FormField ::xowiki::formfield::week ::xowiki::formfield::week initialize ::xowiki::formfield::week->::xowiki::formfield::text ::xowiki::formfield::email ::xowiki::formfield::email initialize ::xowiki::formfield::email->::xowiki::formfield::text ::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::url ::xowiki::formfield::url check=safe_url initialize pretty_value ::xowiki::formfield::url->::xowiki::formfield::text ::xowiki::formfield::redirect ::xowiki::formfield::redirect pretty_value ::xowiki::formfield::redirect->::xowiki::formfield::text ::xowiki::formfield::tel ::xowiki::formfield::tel initialize ::xowiki::formfield::tel->::xowiki::formfield::text ::xowiki::formfield::password ::xowiki::formfield::password initialize ::xowiki::formfield::password->::xowiki::formfield::text ::xowiki::formfield::color ::xowiki::formfield::color initialize ::xowiki::formfield::color->::xowiki::formfield::text ::xowiki::formfield::datetime ::xowiki::formfield::datetime initialize ::xowiki::formfield::datetime->::xowiki::formfield::text ::xowiki::formfield::h5date ::xowiki::formfield::h5date initialize ::xowiki::formfield::h5date->::xowiki::formfield::text ::xowiki::formfield::datetime-local ::xowiki::formfield::datetime-local initialize ::xowiki::formfield::datetime-local->::xowiki::formfield::text ::xowiki::formfield::h5time ::xowiki::formfield::h5time initialize ::xowiki::formfield::h5time->::xowiki::formfield::text ::xowiki::formfield::include ::xowiki::formfield::include pretty_value ::xowiki::formfield::include->::xowiki::formfield::text ::xowiki::formfield::search ::xowiki::formfield::search initialize ::xowiki::formfield::search->::xowiki::formfield::text ::xowiki::formfield::localized_text ::xowiki::formfield::localized_text build_message_key_name convert_to_internal escape_message_keys pretty_value render_input ::xowiki::formfield::localized_text->::xowiki::formfield::text ::xowiki::formfield::time ::xowiki::formfield::time initialize ::xowiki::formfield::time->::xowiki::formfield::text ::xowiki::formfield::correct_when ::xowiki::formfield::correct_when check=valid_predicate initialize ::xowiki::formfield::correct_when->::xowiki::formfield::text ::xowiki::formfield::youtube_url ::xowiki::formfield::youtube_url initialize pretty_value ::xowiki::formfield::youtube_url->::xowiki::formfield::text ::xowiki::formfield::image_url ::xowiki::formfield::image_url check=image_check entry_name initialize pretty_value ::xowiki::formfield::image_url->::xowiki::formfield::text ::xowiki::formfield::test_item_name ::xowiki::formfield::test_item_name check=name ::xowiki::formfield::test_item_name->::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::detail_link ::xowiki::formfield::detail_link pretty_value ::xowiki::formfield::detail_link->::xowiki::formfield::url ::xowiki::formfield::localized_richtext ::xowiki::formfield::localized_richtext ::xowiki::formfield::localized_richtext->::xowiki::formfield::localized_text ::xowiki::formfield::richtext ::xowiki::formfield::richtext ::xowiki::formfield::localized_richtext->::xowiki::formfield::richtext

Class ::xowiki::formfield::text

::xowiki::formfield::text[i] create ... \
           [ -maxlength maxlength ] \
           [ -size (default "80") ]

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::formfield::FormField[i]
  • subclass: ::xowiki::formfield::week[i], ::xowiki::formfield::email[i], ::xowiki::formfield::numeric[i], ::xowiki::formfield::url[i], ::xowiki::formfield::redirect[i], ::xowiki::formfield::tel[i], ::xowiki::formfield::password[i], ::xowiki::formfield::color[i], ::xowiki::formfield::datetime[i], ::xowiki::formfield::h5date[i], ::xowiki::formfield::datetime-local[i], ::xowiki::formfield::h5time[i], ::xowiki::formfield::include[i], ::xowiki::formfield::search[i], ::xowiki::formfield::localized_text[i], ::xowiki::formfield::time[i], ::xowiki::formfield::correct_when[i], ::xowiki::formfield::youtube_url[i], ::xowiki::formfield::image_url[i], ::xowiki::formfield::test_item_name[i]
::xotcl::Class create ::xowiki::formfield::text \
     -superclass ::xowiki::formfield::FormField

Methods (to be applied on instances)

  • add_statistics (scripted)

    next
    if {[dict exists $options word_statistics]} {
      :word_statistics [dict get $options word_statistics]
    }
  • initialize (scripted)

    :type text
    set :widget_type text
    foreach p [list size maxlength] {
      if {[info exists :$p]} {
        set :html($p) [:$p]
      }
    }
  • maxlength (setter)

  • render_input (scripted)

    if {[:is_disabled] && [info exists :disabled_as_div]} {
      :render_disabled_as_div text
    } else {
      next
    }
  • size (setter)