Class: Glimmer::LibUI::EditableComboboxProxy
- Inherits:
-
ControlProxy
- Object
- ControlProxy
- Glimmer::LibUI::EditableComboboxProxy
- Defined in:
- lib/glimmer/libui/editable_combobox_proxy.rb
Overview
Proxy for LibUI editable combobox objects
Follows the Proxy Design Pattern
Constant Summary
Constants inherited from ControlProxy
ControlProxy::BOOLEAN_PROPERTIES, ControlProxy::STRING_PROPERTIES
Instance Attribute Summary
Attributes inherited from ControlProxy
#args, #block, #keyword, #libui, #parent_proxy
Instance Method Summary collapse
- #items(*values) ⇒ Object (also: #set_items, #items=)
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
Constructor Details
This class inherits a constructor from Glimmer::LibUI::ControlProxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Glimmer::LibUI::ControlProxy
Instance Method Details
#items(*values) ⇒ Object Also known as: set_items, items=
30 31 32 33 34 35 36 37 38 |
# File 'lib/glimmer/libui/editable_combobox_proxy.rb', line 30 def items(*values) values = values.first if values.first.is_a?(Array) if values.empty? @values else @values = values @values.each { |value| append value } end end |