Class: Shoes::Swt::Radio

Inherits:
CheckButton show all
Defined in:
shoes-swt/lib/shoes/swt/radio.rb

Overview

In Swt a radio button is actually just a button, so a lot of these methods are borrowed from button.rb

Constant Summary

Constants included from Common::State

Common::State::DISABLED_STATE

Constants included from Common::Style

Common::Style::DEFAULT_STYLES, Common::Style::STYLE_GROUPS

Instance Attribute Summary collapse

Attributes included from Common::Clickable

#pass_coordinates

Attributes inherited from Common::UIElement

#app, #dimensions, #gui, #parent

Instance Method Summary collapse

Methods inherited from CheckButton

#checked=, #checked?

Methods included from Common::State

#after_initialize, #enabled?, #state=, #update_from_state

Methods included from Common::Focus

#focus, #focused?

Methods included from Common::Clickable

#click, #pass_coordinates?, #register_click, #release

Methods inherited from Common::UIElement

#add_to_parent, #after_initialize, #before_initialize, #create_backend, #create_dimensions, #handle_block, #needs_rotate?, #painted?, #redraw_height, #redraw_left, #redraw_top, #redraw_width, #update_fill, #update_stroke

Methods included from Common::Style

#applicable_app_styles, #create_style_hash, included, #style, #style_init

Methods included from Common::SafelyEvaluate

#safely_evaluate

Methods included from Common::Remove

#remove

Methods included from Common::Positioning

#_position, #displace, #move

Methods included from Common::Visibility

#hidden?, #hidden_from_view?, #hide, #outside_parent_view?, #show, #toggle, #visible?

Methods included from Common::Inspect

#inspect, #to_s

Methods included from Common::Attachable

#attached_to

Constructor Details

#initialize(dsl, app) ⇒ Radio

Create a radio button

Parameters:



15
16
17
18
# File 'shoes-swt/lib/shoes/swt/radio.rb', line 15

def initialize(dsl, app)
  super(dsl, app, ::Swt::SWT::RADIO)
  self.group = dsl.group
end

Instance Attribute Details

#groupObject

Returns the value of attribute group.



9
10
11
# File 'shoes-swt/lib/shoes/swt/radio.rb', line 9

def group
  @group
end