Class: SWS::ListElement
- Inherits:
-
FormElement
- Object
- Component
- FormElement
- SWS::ListElement
- Defined in:
- lib/sws/component.rb
Overview
Base class for RadioButtonList and MultipleSelectionList
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Component
#action_components, #definition_component, #encoding, #html_attrs, #method_to_call, #name, #parameters, #parent, #request, #request_number, #slots, #subcomponents, #tokens
Instance Method Summary collapse
- #append_to_response(response) ⇒ Object
-
#item ⇒ Object
Returns value of “item” slot.
-
#list ⇒ Object
Returns value of “list” slot.
Methods inherited from FormElement
Methods inherited from Component
#api_filename, #app, #awake, #container?, #content?, create, #create_component_tree, #definition_filename, #initialize, #page, #perform_action, #process_bindings, #process_parameters, #process_request, #remove_subcomponents, #session, #set_request_subcomponents, #sleep, #slot_bound?, #subcomponent_for_name, synchronize_slot, #synchronize_slot?, #synchronize_slots, #template_filename, #tokenize_binding, #update_binding, #url_string
Constructor Details
This class inherits a constructor from SWS::Component
Instance Method Details
#append_to_response(response) ⇒ Object
589 590 591 |
# File 'lib/sws/component.rb', line 589 def append_to_response ( response ) response << generate_html() end |
#item ⇒ Object
Returns value of “item” slot
584 585 586 |
# File 'lib/sws/component.rb', line 584 def item () return @slots["item"].value() end |
#list ⇒ Object
Returns value of “list” slot
578 579 580 |
# File 'lib/sws/component.rb', line 578 def list () return @slots["list"].value() end |