Module: Shoes::Swt::Common::Clickable

Defined in:
shoes-swt/lib/shoes/swt/common/clickable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#click_listenerObject

Returns the value of attribute click_listener


7
8
9
# File 'shoes-swt/lib/shoes/swt/common/clickable.rb', line 7

def click_listener
  @click_listener
end

Instance Method Details

#click(block) ⇒ Object


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

def click(block)
  app.click_listener.add_click_listener(dsl, block)
end

#release(block) ⇒ Object


13
14
15
# File 'shoes-swt/lib/shoes/swt/common/clickable.rb', line 13

def release(block)
  app.click_listener.add_release_listener(dsl, block)
end