Class: Shoes::EditBox

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 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

#focusObject

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

#textObject

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