Module: Glimmer::UI::CustomShell
- Includes:
- CustomWidget, SuperModule
- Defined in:
- lib/glimmer/ui/custom_shell.rb
Instance Attribute Summary
Attributes included from CustomWidget
#body_root, #options, #parent, #swt_style, #swt_widget
Instance Method Summary collapse
- #center ⇒ Object
- #close ⇒ Object
- #hide ⇒ Object
- #initialize(parent, *swt_constants, options, &content) ⇒ Object
-
#open ⇒ Object
Classes may override.
-
#show ⇒ Object
DO NOT OVERRIDE.
- #start_event_loop ⇒ Object
- #visible? ⇒ Boolean
Methods included from CustomWidget
add_custom_widget_namespaces_for, #add_observer, after_body, #async_exec, #attribute_setter, before_body, body, #can_add_observer?, #can_handle_observation_request?, #content, custom_widget_namespaces, def_option_attr_accessors, #dispose, for, #get_attribute, #handle_observation_request, #has_attribute?, #has_instance_method?, #has_style?, #method_missing, namespaces_for_class, option, options, reset_custom_widget_namespaces, #set_attribute, #sync_exec
Methods included from DataBinding::ObservableModel
#add_observer, #add_property_writer_observers, #array_object_observer_for, #ensure_array_object_observer, #has_observer?, #has_observer_for_any_property?, #notify_observers, #property_observer_hash, #property_observer_list, #remove_observer, #unregister_dependent_observers
Methods included from DataBinding::Observable
#add_observer, #inspect, #remove_observer
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Glimmer::UI::CustomWidget
Instance Method Details
#center ⇒ Object
36 37 38 |
# File 'lib/glimmer/ui/custom_shell.rb', line 36 def center body_root.center end |
#close ⇒ Object
24 25 26 |
# File 'lib/glimmer/ui/custom_shell.rb', line 24 def close body_root.close end |
#hide ⇒ Object
28 29 30 |
# File 'lib/glimmer/ui/custom_shell.rb', line 28 def hide body_root.hide end |
#initialize(parent, *swt_constants, options, &content) ⇒ Object
9 10 11 12 |
# File 'lib/glimmer/ui/custom_shell.rb', line 9 def initialize(parent, *swt_constants, , &content) super raise Error, 'Invalid custom shell body root! Must be a shell or another custom shell.' unless body_root..is_a?(org.eclipse.swt..Shell) end |
#open ⇒ Object
Classes may override
15 16 17 |
# File 'lib/glimmer/ui/custom_shell.rb', line 15 def open body_root.open end |
#show ⇒ Object
DO NOT OVERRIDE. JUST AN ALIAS FOR ‘#open`. OVERRIDE `#open` INSTEAD.
20 21 22 |
# File 'lib/glimmer/ui/custom_shell.rb', line 20 def show open end |
#start_event_loop ⇒ Object
40 41 42 |
# File 'lib/glimmer/ui/custom_shell.rb', line 40 def start_event_loop body_root.start_event_loop end |
#visible? ⇒ Boolean
32 33 34 |
# File 'lib/glimmer/ui/custom_shell.rb', line 32 def visible? body_root.visible? end |