Class: ShenmeGUI::Control::Table

Inherits:
Base
  • Object
show all
Defined in:
lib/shenmegui/controls.rb

Instance Attribute Summary

Attributes inherited from Base

#children, #events, #id, #parent, #properties

Instance Method Summary collapse

Methods inherited from Base

default, default_properties, #focus, #initialize, property, #render, shortcut, #sync, #sync_events, #update_properties

Constructor Details

This class inherits a constructor from ShenmeGUI::Control::Base

Instance Method Details

#<<(row) ⇒ Object



211
212
213
# File 'lib/shenmegui/controls.rb', line 211

def << row
  data << row
end

#before_syncObject



200
201
202
203
204
205
206
207
208
209
# File 'lib/shenmegui/controls.rb', line 200

def before_sync
  row_names_enum = @properties[:row_names_enum]
  if row_names_enum
    @properties[:row_names] = []
    row_names_enum.rewind
    @properties[:data].size.times do
      @properties[:row_names] << row_names_enum.next
    end
  end
end