class PPCurses::SingleColumnDataSource
¶ ↑
Based on …
Public Class Methods
new(values)
click to toggle source
# File lib/ppcurses/table_view.rb, line 176 def initialize(values) @values = values end
Public Instance Methods
number_of_rows_in_table( aTableView)
click to toggle source
Returns the number of records managed for aTableView by the data source object.
# File lib/ppcurses/table_view.rb, line 182 def number_of_rows_in_table( aTableView) @values.length end
object_value_for(aTableview, column, row_index)
click to toggle source
Called by the table view to return the data object associated with the specified row and column.
# File lib/ppcurses/table_view.rb, line 188 def object_value_for(aTableview, column, row_index) if column > 0 then return nil end @values[row_index] end