Class: Glimmer::SWT::CTabFolderProxy
- Inherits:
-
TabFolderProxy
- Object
- WidgetProxy
- TabFolderProxy
- Glimmer::SWT::CTabFolderProxy
- Defined in:
- lib/glimmer/swt/c_tab_folder_proxy.rb
Constant Summary
Constants inherited from TabFolderProxy
Constants inherited from WidgetProxy
WidgetProxy::DEFAULT_INITIALIZERS, WidgetProxy::JS_KEY_CODE_TO_SWT_KEY_CODE_MAP, WidgetProxy::JS_LOCATION_TO_SWT_KEY_LOCATION_MAP, WidgetProxy::SWT_CURSOR_TO_CSS_CURSOR_MAP
Instance Attribute Summary collapse
-
#closeable_children ⇒ Object
readonly
Returns the value of attribute closeable_children.
Attributes inherited from WidgetProxy
#args, #background, #children, #cursor, #disposed?, #enabled, #focus, #font, #foreground, #menu, #menu_requested, #menu_x, #menu_y, #parent, #path, #rendered
Instance Method Summary collapse
-
#initialize(parent, args, block) ⇒ CTabFolderProxy
constructor
A new instance of CTabFolderProxy.
- #post_initialize_child(child) ⇒ Object
Methods inherited from TabFolderProxy
#dom, #hide_all_tab_content, #tabs_dom_element, #tabs_id, #tabs_path
Methods inherited from WidgetProxy
#add_content_on_render, #add_css_class, #add_css_classes, #add_observer, #apply_property_type_converters, #attach, #build_dom, #can_handle_observation_request?, #clear_css_classes, #content, #content_on_render_blocks, #css_classes, #default_observation_request_to_event_mapping, #dialog_ancestor, #dispose, #dom_element, #effective_observation_request_to_event_mapping, #element, #event_handling_suspended?, #event_listener_proxies, for, #get_data, #handle_javascript_observation_request, #handle_observation_request, #has_style?, #id, #id=, #listener_dom_element, #listener_path, #listeners, #listeners_for, 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, #parents, #post_add_content, #post_dispose_child, #print, #property_type_converters, #reattach, #remove_all_listeners, #remove_css_class, #remove_css_classes, #remove_event_listener_proxies, #render, reset_max_id_numbers!, #resume_event_handling, #selector, #set_attribute, #set_data, #set_focus, #shell, #skip_content_on_render_blocks?, #style_element, #suspend_event_handling, #swt_data, #swt_widget, underscored_widget_name, widget_class, widget_exists?, widget_handling_listener, #widget_property_listener_installers
Methods included from PropertyOwner
#attribute_getter, #attribute_setter, #get_attribute, #set_attribute
Constructor Details
#initialize(parent, args, block) ⇒ CTabFolderProxy
Returns a new instance of CTabFolderProxy.
30 31 32 33 |
# File 'lib/glimmer/swt/c_tab_folder_proxy.rb', line 30 def initialize(parent, args, block) @closeable_children = !!args.detect { |arg| SWTProxy[arg] == SWTProxy[:close] } super(parent, args, block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Glimmer::SWT::WidgetProxy
Instance Attribute Details
#closeable_children ⇒ Object (readonly)
Returns the value of attribute closeable_children.
28 29 30 |
# File 'lib/glimmer/swt/c_tab_folder_proxy.rb', line 28 def closeable_children @closeable_children end |
Instance Method Details
#post_initialize_child(child) ⇒ Object
35 36 37 38 |
# File 'lib/glimmer/swt/c_tab_folder_proxy.rb', line 35 def post_initialize_child(child) child.closeable = true if @closeable_children super(child) end |