Class: Glimmer::SWT::GroupProxy
- Inherits:
-
CompositeProxy
- Object
- WidgetProxy
- CompositeProxy
- Glimmer::SWT::GroupProxy
- Defined in:
- lib/glimmer/swt/group_proxy.rb
Overview
Adapter for org.eclipse.swt.widgets.Group
Follows Adapter Pattern
Constant Summary
Constants inherited from WidgetProxy
WidgetProxy::DEFAULT_INITIALIZERS
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from CompositeProxy
Attributes inherited from WidgetProxy
#args, #background, #children, #disposed?, #enabled, #focus, #font, #foreground, #parent, #path, #rendered
Instance Method Summary collapse
Methods inherited from CompositeProxy
Methods inherited from WidgetProxy
#add_content_on_render, #add_css_class, #add_css_classes, #add_observer, #apply_property_type_converters, #build_dom, #can_handle_observation_request?, #clear_css_classes, #content, #content_on_render_blocks, #css_classes, #default_observation_request_to_event_mapping, #dispose, #dom_element, #effective_observation_request_to_event_mapping, for, #get_data, #handle_observation_request, #has_style?, #id, #id=, #initialize, #listener_dom_element, #listener_path, max_id_number_for, max_id_numbers, #method_missing, #name, next_id_number_for, #observation_request_to_event_mapping, #observation_requests, #parent_dom_element, #parent_path, #post_add_content, #post_dispose_child, #post_initialize_child, #property_type_converters, #remove_all_listeners, #remove_css_class, #remove_css_classes, #render, reset_max_id_numbers!, #selector, #set_attribute, #set_data, #set_focus, #style_element, underscored_widget_name, widget_class, widget_exists?, #widget_property_listener_installers
Methods included from PropertyOwner
#attribute_getter, #attribute_setter, #get_attribute, #set_attribute
Constructor Details
This class inherits a constructor from Glimmer::SWT::CompositeProxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Glimmer::SWT::WidgetProxy
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
9 10 11 |
# File 'lib/glimmer/swt/group_proxy.rb', line 9 def text @text end |
Instance Method Details
#dom ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/glimmer/swt/group_proxy.rb', line 29 def dom @dom ||= html { fieldset(id: id, class: name) { legend(class: 'hide') { text } } }.to_s end |
#element ⇒ Object
21 22 23 |
# File 'lib/glimmer/swt/group_proxy.rb', line 21 def element 'fieldset' end |
#legend_dom_element ⇒ Object
25 26 27 |
# File 'lib/glimmer/swt/group_proxy.rb', line 25 def legend_dom_element dom_element.find('legend') end |