Class ::xowiki::formfield::enumeration

::xowiki::formfield::enumeration[i] create ... \
           [ -category_tree category_tree ] \
           [ -descriptions (default "") ]

Defined in

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::formfield::ShuffleField[i]
  • subclass: ::xowiki::formfield::radio[i], ::xowiki::formfield::checkbox[i], ::xowiki::formfield::select[i]

Methods (to be applied on instances)

  • add_statistics (scripted)

  • answer_is_correct (scripted)

  • category_tree (setter)

  • config_from_category_tree (scripted)

  • descriptions (setter)

  • get_labels (scripted)

  • ggw (scripted)

  • initialize (scripted)

  • make_correct (scripted)

  • pretty_value (scripted)

  • render_input (scripted)

  • render_label_classes (scripted)

  • render_label_text (scripted)

  • render_result_statistics (scripted)

  • scores (scripted, public)

     <instance of xowiki::formfield::enumeration[i]> scores [ -r r ] \
        [ -f f ] [ -rk rk ] [ -fk fk ] [ -R R ] [ -W W ]
    Switches:
    -r (optional, defaults to "0")
    number of answers which are true
    -f (optional, defaults to "0")
    number of answers which are false
    -rk (optional, defaults to "0")
    number checkmarks to a true answer
    -fk (optional, defaults to "0")
    number checkmarks to a false answer
    -R (optional)
    number correct answered
    -W (optional)
    number incorrect answered

    Testcases:
    create_test_items
  • stats_record_detail (scripted)

  • value_if_nothing_is_returned_from_form (scripted)