Class: TkComponent::Builder::TkScale

Inherits:
TkItemWithVariable show all
Defined in:
lib/tk_component/builder/tk_item.rb

Instance Attribute Summary

Attributes inherited from TkItemWithVariable

#tk_variable

Attributes inherited from TkItem

#native_item

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.options, event_handler.lambda)
  else
    super
  end
end

#variable_nameObject



137
138
139
# File 'lib/tk_component/builder/tk_item.rb', line 137

def variable_name
  :variable
end