Module: CDK::Focusable

Included in:
CDKOBJS
Defined in:
lib/cdk/mixins/focusable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accepts_focusObject

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_focusObject

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

#focusObject



11
12
# File 'lib/cdk/mixins/focusable.rb', line 11

def focus
end

#init_focusObject



6
7
8
9
# File 'lib/cdk/mixins/focusable.rb', line 6

def init_focus
  @has_focus = true
  @accepts_focus = false
end

#unfocusObject



14
15
# File 'lib/cdk/mixins/focusable.rb', line 14

def unfocus
end