Class: TkComponent::Builder::TkScale
- Inherits:
-
TkItemWithVariable
- Object
- TkItem
- TkItemWithVariable
- TkComponent::Builder::TkScale
- Defined in:
- lib/tk_component/builder/tk_item.rb
Instance Attribute Summary
Attributes inherited from TkItemWithVariable
Attributes inherited from TkItem
Instance Method Summary collapse
Methods inherited from TkItemWithVariable
#apply_variable, #create_variable, #initialize
Methods included from ValueTyping
#apply_option, #f_value, #i_value, #s_value, #update_value
Methods inherited from TkItem
#apply_internal_grid, #apply_option, #apply_options, #built, create, #create_native_item, #focus, #initialize, #native_item_class, #remove, #set_event_handlers, #set_grid
Constructor Details
This class inherits a constructor from TkComponent::Builder::TkItemWithVariable
Instance Method Details
#set_event_handler(event_handler) ⇒ Object
144 145 146 147 148 149 150 151 |
# File 'lib/tk_component/builder/tk_item.rb', line 144 def set_event_handler(event_handler) case event_handler.name when :change Event.bind_command(event_handler.name, self, event_handler., event_handler.lambda) else super end end |
#variable_name ⇒ Object
137 138 139 |
# File 'lib/tk_component/builder/tk_item.rb', line 137 def variable_name :variable end |