Module: CDK::Focusable
- Included in:
- CDKOBJS
- Defined in:
- lib/cdk/mixins/focusable.rb
Instance Attribute Summary collapse
-
#accepts_focus ⇒ Object
Returns the value of attribute accepts_focus.
-
#has_focus ⇒ Object
Returns the value of attribute has_focus.
Instance Method Summary collapse
Instance Attribute Details
#accepts_focus ⇒ Object
Returns the value of attribute accepts_focus.
4 5 6 |
# File 'lib/cdk/mixins/focusable.rb', line 4 def accepts_focus @accepts_focus end |
#has_focus ⇒ Object
Returns the value of attribute has_focus.
3 4 5 |
# File 'lib/cdk/mixins/focusable.rb', line 3 def has_focus @has_focus end |
Instance Method Details
#focus ⇒ Object
11 12 |
# File 'lib/cdk/mixins/focusable.rb', line 11 def focus end |
#init_focus ⇒ Object
6 7 8 9 |
# File 'lib/cdk/mixins/focusable.rb', line 6 def init_focus @has_focus = true @accepts_focus = false end |
#unfocus ⇒ Object
14 15 |
# File 'lib/cdk/mixins/focusable.rb', line 14 def unfocus end |