Class: Shoes::EditBox
Instance Method Summary collapse
-
#change(&blk) ⇒ Object
Each time a character is added to or removed from the edit box, its change block is called.
-
#focus ⇒ Object
Moves focus to the edit box.
-
#text ⇒ Object
Return a string of characters which have been typed into the box.
-
#text=(str) ⇒ Object
Fills the edit box with the characters of a string.
Methods inherited from Native
#displace, #height, #hide, #left, #move, #parent, #remove, #show, #style, #toggle, #top, #width
Instance Method Details
#change(&blk) ⇒ Object
Each time a character is added to or removed from the edit box, its change block is called. The block is given self, which is the edit box object which has changed.
126 127 128 129 |
# File 'lib/blue_shoes/native.rb', line 126 def change(&blk) # returns self throw NotImplementedError end |
#focus ⇒ Object
Moves focus to the edit box. The edit box will be highlighted and the user will be able to type into the edit box.
132 133 134 135 |
# File 'lib/blue_shoes/native.rb', line 132 def focus # returns self throw NotImplementedError end |
#text ⇒ Object
Return a string of characters which have been typed into the box.
138 139 140 141 |
# File 'lib/blue_shoes/native.rb', line 138 def text # returns self throw NotImplementedError end |
#text=(str) ⇒ Object
Fills the edit box with the characters of a string.
144 145 146 |
# File 'lib/blue_shoes/native.rb', line 144 def text=(str) throw NotImplementedError end |