Class: Glimmer::SWT::BrowserProxy
- Inherits:
-
WidgetProxy
- Object
- WidgetProxy
- Glimmer::SWT::BrowserProxy
- Defined in:
- lib/glimmer/swt/browser_proxy.rb
Constant Summary
Constants inherited from WidgetProxy
WidgetProxy::DEFAULT_INITIALIZERS
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Attributes inherited from WidgetProxy
#args, #background, #children, #enabled, #font, #foreground, #parent, #path
Instance Method Summary collapse
Methods inherited from WidgetProxy
#add_child, #add_css_class, #add_css_classes, #add_observer, #apply_property_type_converters, #build_dom, #can_handle_observation_request?, #clear_css_classes, #content, #css_classes, #dispose, #dom_element, for, #handle_observation_request, #has_style?, #id, #id=, #initialize, #listener_dom_element, #listener_path, max_id_number_for, max_id_numbers, #name, next_id_number_for, #observation_request_to_event_mapping, #parent_dom_element, #parent_path, #property_type_converters, #remove_css_class, #remove_css_classes, #render, reset_max_id_numbers!, #selector, #set_attribute, #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::WidgetProxy
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/glimmer/swt/browser_proxy.rb', line 6 def url @url end |
Instance Method Details
#dom ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/glimmer/swt/browser_proxy.rb', line 17 def dom iframe_id = id iframe_url = url @dom ||= html { iframe(id: iframe_id, class: name, src: iframe_url, frameBorder: 0) { } }.to_s end |
#element ⇒ Object
13 14 15 |
# File 'lib/glimmer/swt/browser_proxy.rb', line 13 def element 'iframe' end |