Class: Shoes::ListBox

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

#choose(item) ⇒ Object

Selects the option in the list box that matches the string given by item.



177
178
179
180
# File 'lib/blue_shoes/native.rb', line 177

def choose(item)
  # returns self
  throw NotImplementedErrror
end

#focusObject

Moves focus to the list box. The list box will be highlighted and, if the user hits the up and down arrow keys, other options in the list will be selected.



183
184
185
186
# File 'lib/blue_shoes/native.rb', line 183

def focus
  # returns self
  throw NotImplementedErrror
end

#itemsObject

Returns the complete list of strings that the list box presently shows as its options.



189
190
191
192
# File 'lib/blue_shoes/native.rb', line 189

def items
  # returns an array of strings
  throw NotImplementedErrror
end

#items=(arr) ⇒ Object

Replaces the list box’s options with a new list of strings.



195
196
197
198
# File 'lib/blue_shoes/native.rb', line 195

def items=(arr)
  # returns
  throw NotImplementedErrror
end

#textObject

A string containing whatever text is shown highlighted in the list box right now. If nothing is selected, nil will be the reply.



201
202
203
204
# File 'lib/blue_shoes/native.rb', line 201

def text
  # returns a string
  throw NotImplementedErrror
end