Class: EditTextWrapper

Inherits:
TextViewWrapper show all
Defined in:
lib/droiuby/wrappers/edit_text.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



19
20
21
# File 'lib/droiuby/wrappers/edit_text.rb', line 19

def color
  @view.getTextColors.getDefaultColor
end

#color=(value) ⇒ Object



15
16
17
# File 'lib/droiuby/wrappers/edit_text.rb', line 15

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

#textObject



11
12
13
# File 'lib/droiuby/wrappers/edit_text.rb', line 11

def text
    @view.getText.toString
end

#text=(text) ⇒ Object



7
8
9
# File 'lib/droiuby/wrappers/edit_text.rb', line 7

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