Sha256: 536253d9ac57935e83ea5f390f8ff5ee90adc6b020547f93b00ef386a1f2a75a

Contents?: true

Size: 476 Bytes

Versions: 16

Compression:

Stored size: 476 Bytes

Contents

class CompoundButtonWrapper < ViewWrapper
  
  
  def on(event,&block)
    listener_ref = event.to_s.camelize
    case event.to_sym
      when :checked_change
        self.native.send(:"setOn#{listener_ref}Listener",_listener("On#{listener_ref}Listener", 'android.widget.CompoundButton', &block))
      else
        super(event, &block)
    end
  end
  
  def checked?
    self.native.isChecked
  end
  
  def checked=(value)
    self.native.setChecked(value)
  end
  
  
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
droiuby-0.3.6 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.3.5 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.3.4 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.3.3 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.3.2 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.3.1 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.3.0 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.2.9 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.2.8 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.2.7 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.2.6 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.2.5 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.2.4 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.2.3 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.2.2 lib/droiuby/wrappers/compound_button_wrapper.rb
droiuby-0.2.1 lib/droiuby/wrappers/compound_button_wrapper.rb