Class: Glimmer::Wx::ControlProxy::TextCtrlProxy

Inherits:
Glimmer::Wx::ControlProxy show all
Defined in:
lib/glimmer/wx/control_proxy/text_ctrl_proxy.rb

Overview

Proxy for Wx text ctrl objects

Follows the Proxy Design Pattern

Instance Attribute Summary

Attributes inherited from Glimmer::Wx::ControlProxy

#args, #block, #content_added, #keyword, #parent_proxy, #wx

Instance Method Summary collapse

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?, #initialize, keyword, #listeners, #listeners_for, map_descendant_keyword_constants_for, #method_missing, new_control, #notify_custom_listeners, #options, #post_add_content, #post_initialize_child, reset_descendant_keyword_constant_map, #respond_to?, wx_constant_symbol

Methods included from DataBindable

#data_bind, #data_bind_read, #data_binding_model_attribute_observer_registrations

Constructor Details

This class inherits a constructor from Glimmer::Wx::ControlProxy

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Glimmer::Wx::ControlProxy

Instance Method Details

#data_bind_write(property, model_binding) ⇒ Object



31
32
33
# File 'lib/glimmer/wx/control_proxy/text_ctrl_proxy.rb', line 31

def data_bind_write(property, model_binding)
  handle_listener('on_text') { model_binding.call(value) } if property == 'value'
end