Class: EditTextWrapper

Inherits:
TextViewWrapper show all
Defined in:
lib/droiuby/wrappers/edit_text_wrapper.rb

Instance Method Summary collapse

Methods inherited from TextViewWrapper

#text_color, #text_color=, #text_size=

Methods inherited from ViewWrapper

#animate, #background=, #background_color=, #blink, #builder, #click, #data, #enabled=, #enabled?, #find, #gone=, #gone?, #height=, #hidden?, #hide!, #initialize, #invalidate, #native, #p_tree, #parent, #show!, #tag, #to_front!, #to_native, #visible=, #visible?, #width=

Methods included from Droiuby::Wrappers::Listeners

#on

Methods included from Droiuby::ViewHelper

included

Methods included from JavaMethodHelper

included

Constructor Details

This class inherits a constructor from ViewWrapper

Instance Method Details

#colorObject



17
18
19
# File 'lib/droiuby/wrappers/edit_text_wrapper.rb', line 17

def color
  @view.getTextColors.getDefaultColor
end

#color=(value) ⇒ Object



13
14
15
# File 'lib/droiuby/wrappers/edit_text_wrapper.rb', line 13

def color=(value)
  @view.setTextColor(value)
end

#textObject



9
10
11
# File 'lib/droiuby/wrappers/edit_text_wrapper.rb', line 9

def text
    @view.getText.toString
end

#text=(text) ⇒ Object



5
6
7
# File 'lib/droiuby/wrappers/edit_text_wrapper.rb', line 5

def text=(text)
    @view.setText(text)
end