%3 ::xowiki::formfield::CompoundField ::xowiki::formfield::CompoundField add_component add_statistics check=compound convert_to_external convert_to_internal create_components exists_named_sub_component generate_fieldnames get_component get_compound_value get_named_sub_component get_named_sub_component_value has_instance_variable leaf_components make_correct named_sub_components object pretty_value render_input reset_on_validation_error same_value set_compound_value set_disabled set_is_repeat_template specs_unmodified validate value ::xowiki::formfield::FormField ::xowiki::formfield::FormField ::xowiki::formfield::CompoundField->::xowiki::formfield::FormField ::xowiki::formfield::CalendarField ::xowiki::formfield::CalendarField update_calendar ::xowiki::formfield::CalendarField->::xowiki::formfield::CompoundField ::xowiki::formfield::event ::xowiki::formfield::event convert_to_internal get_compound_value initialize pretty_value ::xowiki::formfield::event->::xowiki::formfield::CalendarField ::xowiki::formfield::time_span ::xowiki::formfield::time_span initialize ::xowiki::formfield::time_span->::xowiki::formfield::CalendarField

Class ::xowiki::formfield::CalendarField

::xowiki::formfield::CalendarField[i] create ... \
           [ -calendar calendar ] \
           [ -multiday:boolean (default "false") ] \
           [ -time_label (default "#xowiki.event-time#") ]

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::formfield::CompoundField[i]
  • subclass: ::xowiki::formfield::event[i], ::xowiki::formfield::time_span[i]
::xotcl::Class create ::xowiki::formfield::CalendarField \
     -superclass ::xowiki::formfield::CompoundField

Methods (to be applied on instances)

  • calendar (setter)

  • multiday (setter)

  • time_label (setter)

  • update_calendar (scripted)

    #
    # If we have already a valid cal_item_id (checked previously)
    # update the entry. Otherwise create a new calendar item and
    # update the instance variables.
    #
    if {$cal_item_id ne ""} {
      #:log "===== [list calendar::item::edit -start_date $start -end_date $end -cal_item_id $cal_item_id ...]"
      calendar::item::edit -cal_item_id $cal_item_id -start_date $start  -end_date $end -name $name -description $description
    } else {
      #:log "===== [list calendar::item::new -start_date $start -end_date $end -calendar_id $calendar_id ...]"
      set cal_item_id [calendar::item::new -start_date $start -end_date $end  -name $name -description $description -calendar_id $calendar_id]
      [:get_component cal_item_id] value $cal_item_id
      #
      # The following line is required when used in transaction to
      # update the instance attributes
      #
      ${:object} set_property [namespace tail [:info class]] [:get_compound_value]
    }