Class: Glimmer::LibUI::CheckboxTextColumnProxy
- Inherits:
-
ControlProxy
- Object
- ControlProxy
- Glimmer::LibUI::CheckboxTextColumnProxy
- Includes:
- Column, DualColumn, EditableColumn
- Defined in:
- lib/glimmer/libui/checkbox_text_column_proxy.rb
Overview
Proxy for LibUI checkbox text column objects
Follows the Proxy Design Pattern
Constant Summary
Constants inherited from ControlProxy
Glimmer::LibUI::ControlProxy::BOOLEAN_PROPERTIES, Glimmer::LibUI::ControlProxy::STRING_PROPERTIES
Instance Attribute Summary
Attributes inherited from ControlProxy
#args, #block, #keyword, #libui, #parent_proxy
Instance Method Summary collapse
- #editable_checkbox(value = nil) ⇒ Object (also: #editable_checkbox=, #set_editable_checkbox, #editable_checkbox?)
- #editable_text(value = nil) ⇒ Object (also: #editable_text=, #set_editable_text, #editable_text?)
Methods included from EditableColumn
Methods included from DualColumn
#column_index, #second_column_index
Methods included from Column
#column_index, #index, #initialize, #name
Methods inherited from ControlProxy
#append_properties, #append_property, boolean_to_integer, #can_handle_listener?, #content, control_proxies, create, #default_destroy, #destroy, #destroy_child, #enabled, exists?, #handle_listener, image_proxies, #initialize, integer_to_boolean, #libui_api_keyword, main_window_proxy, menu_proxies, #method_missing, new_control, #post_add_content, #post_initialize_child, #respond_to?, #respond_to_libui?, #send_to_libui, #visible, widget_proxy_class, #window_proxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Glimmer::LibUI::ControlProxy
Instance Method Details
#editable_checkbox(value = nil) ⇒ Object Also known as: editable_checkbox=, set_editable_checkbox, editable_checkbox?
37 38 39 40 41 42 43 44 |
# File 'lib/glimmer/libui/checkbox_text_column_proxy.rb', line 37 def editable_checkbox(value = nil) if value.nil? @editable_checkbox = false if @editable_checkbox.nil? @editable_checkbox else @editable_checkbox = !!value end end |
#editable_text(value = nil) ⇒ Object Also known as: editable_text=, set_editable_text, editable_text?
49 50 51 52 53 54 55 56 |
# File 'lib/glimmer/libui/checkbox_text_column_proxy.rb', line 49 def editable_text(value = nil) if value.nil? @editable_text = false if @editable_text.nil? @editable_text else @editable_text = !!value end end |