Class: Glimmer::Wx::ControlProxy::FrameProxy
- Inherits:
-
Glimmer::Wx::ControlProxy
- Object
- Glimmer::Wx::ControlProxy
- Glimmer::Wx::ControlProxy::FrameProxy
- Includes:
- Parent
- Defined in:
- lib/glimmer/wx/control_proxy/frame_proxy.rb
Overview
Proxy for Wx frame objects
Follows the Proxy Design Pattern
Instance Attribute Summary collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
Attributes inherited from Glimmer::Wx::ControlProxy
#args, #block, #content_added, #keyword, #parent_proxy, #wx
Instance Method Summary collapse
-
#initialize(keyword, parent, args, &block) ⇒ FrameProxy
constructor
A new instance of FrameProxy.
- #post_add_content ⇒ Object
- #title=(value) ⇒ Object
Methods included from Parent
#children, #post_initialize_child
Methods inherited from Glimmer::Wx::ControlProxy
#can_handle_listener?, constant_symbol, #content, #control_proxy, control_proxy_class, create, #custom_listener_name_aliases, #custom_listener_names, #deregister_all_custom_listeners, #deregister_custom_listeners, descendant_keyword_constant_map, exists?, #frame_proxy, #handle_custom_listener, #handle_listener, #has_custom_listener?, keyword, #listeners, #listeners_for, map_descendant_keyword_constants_for, #method_missing, new_control, #notify_custom_listeners, #options, #post_initialize_child, reset_descendant_keyword_constant_map, #respond_to?, wx_constant_symbol
Methods included from DataBindable
#data_bind, #data_bind_read, #data_bind_write, #data_binding_model_attribute_observer_registrations
Constructor Details
#initialize(keyword, parent, args, &block) ⇒ FrameProxy
Returns a new instance of FrameProxy.
35 36 37 38 |
# File 'lib/glimmer/wx/control_proxy/frame_proxy.rb', line 35 def initialize(keyword, parent, args, &block) self.app_name = .delete(:app_name) super(keyword, parent, args, &block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Glimmer::Wx::ControlProxy
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name.
33 34 35 |
# File 'lib/glimmer/wx/control_proxy/frame_proxy.rb', line 33 def app_name @app_name end |
Instance Method Details
#post_add_content ⇒ Object
45 46 47 48 |
# File 'lib/glimmer/wx/control_proxy/frame_proxy.rb', line 45 def post_add_content super show end |
#title=(value) ⇒ Object
40 41 42 43 |
# File 'lib/glimmer/wx/control_proxy/frame_proxy.rb', line 40 def title=(value) # wxWidgets does not allow setting a frame title if set already super if ([:title] || ['title']).nil? end |