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

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

#centerObject



36
37
38
# File 'lib/glimmer/ui/custom_shell.rb', line 36

def center
  body_root.center
end

#closeObject



24
25
26
# File 'lib/glimmer/ui/custom_shell.rb', line 24

def close
  body_root.close
end

#hideObject



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

Raises:



9
10
11
12
# File 'lib/glimmer/ui/custom_shell.rb', line 9

def initialize(parent, *swt_constants, options, &content)
  super
  raise Error, 'Invalid custom shell body root! Must be a shell or another custom shell.' unless body_root.swt_widget.is_a?(org.eclipse.swt.widgets.Shell)
end

#openObject

Classes may override



15
16
17
# File 'lib/glimmer/ui/custom_shell.rb', line 15

def open
  body_root.open
end

#showObject

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_loopObject



40
41
42
# File 'lib/glimmer/ui/custom_shell.rb', line 40

def start_event_loop
  body_root.start_event_loop
end

#visible?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/glimmer/ui/custom_shell.rb', line 32

def visible?
  body_root.visible?
end