Class: Shoes::EditLine
Instance Method Summary collapse
-
#change(&blk) ⇒ Object
Each time a character is added to or removed from the edit line, its change block is called.
-
#focus ⇒ Object
Moves focus to the edit line.
-
#text ⇒ Object
Return a string of characters which have been typed into the line.
-
#text=(str) ⇒ Object
Fills the edit line 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 line, its change block is called. The block is given self, which is the edit line object which has changed.
152 153 154 155 |
# File 'lib/blue_shoes/native.rb', line 152 def change(&blk) # returns self throw NotImplementedError end |
#focus ⇒ Object
Moves focus to the edit line. The edit line will be highlighted and the user will be able to type into the edit line.
158 159 160 161 |
# File 'lib/blue_shoes/native.rb', line 158 def focus # returns self throw NotImplementedError end |
#text ⇒ Object
Return a string of characters which have been typed into the line.
164 165 166 167 |
# File 'lib/blue_shoes/native.rb', line 164 def text # returns self throw NotImplementedError end |
#text=(str) ⇒ Object
Fills the edit line with the characters of a string.
170 171 172 |
# File 'lib/blue_shoes/native.rb', line 170 def text=(str) throw NotImplementedError end |