Class: Glimmer::LibUI::ControlProxy::Column::CheckboxTextColumnProxy
- Inherits:
-
Glimmer::LibUI::ControlProxy
- Object
- Glimmer::LibUI::ControlProxy
- Glimmer::LibUI::ControlProxy::Column::CheckboxTextColumnProxy
- Defined in:
- lib/glimmer/libui/control_proxy/column/checkbox_text_column_proxy.rb
Overview
Proxy for LibUI checkbox text column objects
Follows the Proxy Design Pattern
Constant Summary
Constants inherited from Glimmer::LibUI::ControlProxy
BOOLEAN_PROPERTIES, KEYWORD_ALIASES, STRING_PROPERTIES, TransformProxy
Instance Attribute Summary
Attributes inherited from Glimmer::LibUI::ControlProxy
#args, #block, #content_added, #custom_control, #keyword, #libui, #options, #parent_custom_control, #parent_proxy, #slot
Class Method Summary collapse
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 Glimmer::LibUI::ControlProxy::Column
#can_handle_listener?, #column_index, #column_listeners, #column_listeners_for, #configure_sort_indicator, #data_bind_write, #handle_listener, #index, #initialize, #name, #other_columns, #sort_indicator, #sort_indicator=, #toggle_sort_indicator
Methods inherited from Glimmer::LibUI::ControlProxy
#append_properties, #append_property, #bind_content, #can_handle_listener?, constant_symbol, #content, control_proxies, control_proxy_class, create, #custom_listener_name_aliases, #custom_listener_names, #default_destroy, #deregister_all_custom_listeners, #deregister_custom_listeners, descendant_keyword_constant_map, #destroy, #destroy_child, #enabled, exists?, #handle_custom_listener, #handle_listener, #has_custom_listener?, image_proxies, #initialize, keyword, #libui_api_keyword, #listeners, #listeners_for, main_window_proxy, map_descendant_keyword_constants_for, menu_proxies, #method_missing, new_control, #notify_custom_listeners, #post_add_content, #post_initialize_child, reset_descendant_keyword_constant_map, #respond_to?, #respond_to_libui?, #send_to_libui, #visible, #window_proxy
Methods included from DataBindable
#data_bind, #data_bind_read, #data_bind_write, #data_binding_model_attribute_observer_registrations
Methods included from Parent
#children, #post_initialize_child
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Glimmer::LibUI::ControlProxy
Class Method Details
.default_value ⇒ Object
36 37 38 |
# File 'lib/glimmer/libui/control_proxy/column/checkbox_text_column_proxy.rb', line 36 def default_value [false, ''] end |
Instance Method Details
#editable_checkbox(value = nil) ⇒ Object Also known as: editable_checkbox=, set_editable_checkbox, editable_checkbox?
45 46 47 48 49 50 51 52 |
# File 'lib/glimmer/libui/control_proxy/column/checkbox_text_column_proxy.rb', line 45 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?
57 58 59 60 61 62 63 64 |
# File 'lib/glimmer/libui/control_proxy/column/checkbox_text_column_proxy.rb', line 57 def editable_text(value = nil) if value.nil? @editable_text = false if @editable_text.nil? @editable_text else @editable_text = !!value end end |