Class: Shoes::EditLine

Inherits:
Native
  • Object
show all
Defined in:
lib/blue_shoes/native.rb

Instance Method Summary collapse

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

#focusObject

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

#textObject

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