Class ::xowiki::formfield::CompoundField

::xowiki::formfield::CompoundField[i] create ... \
           [ -CSSclass (default "compound-field") ] \
           [ -components (default "") ]

Defined in

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::formfield::FormField[i]
  • subclass: ::xowiki::formfield::repeatContainer[i], ::xowiki::formfield::mc_exercise[i], ::xowiki::formfield::repeattest[i], ::xowiki::formfield::mc_alternative[i], ::xowiki::formfield::regression_test_compound_numeric[i], ::xowiki::formfield::comp_correct_when[i], ::xowiki::formfield::FormGeneratorField[i], ::xowiki::formfield::date[i], ::xowiki::formfield::regression_test_compound_with_repeat[i], ::xowiki::formfield::regression_test_mycompound[i], ::xowiki::formfield::CalendarField[i], ::xowiki::formfield::text_fields[i], ::xowiki::formfield::regression_test_compound_with_repeat2[i]

Methods (to be applied on instances)

  • CSSclass (setter)

  • add_component (scripted)

  • add_statistics (scripted)

  • check=compound (scripted)

  • components (setter)

  • convert_to_external (scripted)

  • convert_to_internal (scripted)

  • create_components (scripted)

  • exists_named_sub_component (scripted)

  • generate_fieldnames (scripted)

  • get_component (scripted)

  • get_compound_value (scripted)

  • get_named_sub_component (scripted)

  • get_named_sub_component_value (scripted, public)

     <instance of xowiki::formfield::CompoundField[i]> get_named_sub_component_value \
        [ -from_repeat ] [ -default default ] args [ args... ]

    Return the value of a named subcomponent. When the named subcomponent is a repeated item, and the value of the 0th element of the repeat (the template element) is omitted from the returned value.

    Switches:
    -from_repeat (optional)
    skip template element from repeated values
    -default (optional)
    default value, when component is not found
    Parameters:
    args (required)
    space separated path of elements names in a potentially nested component structure (similar to dict)

    Testcases:
    create_test_items
  • has_instance_variable (scripted)

  • leaf_components (scripted)

  • make_correct (scripted)

  • named_sub_components (scripted)

  • object (scripted)

  • pretty_value (scripted)

  • render_input (scripted)

  • reset_on_validation_error (scripted)

  • same_value (scripted)

  • set_compound_value (scripted)

  • set_disabled (scripted)

  • set_is_repeat_template (scripted)

  • specs_unmodified (scripted)

  • validate (scripted)

  • validator (setter)

  • value (scripted)

Variables

::xowiki::formfield::CompoundField set __default_metaclass ::xotcl::Class
::xowiki::formfield::CompoundField set __default_superclass ::xotcl::Object