Class: RubyCurses::TreeModelEvent
- Defined in:
- lib/rbcurse/core/widgets/tree/treemodel.rb
Overview
When an event is fired by TableModel, contents are changed, then this object will be passed to trigger type is :INSERT :UPDATE :DELETE :HEADER_ROW columns: number or :ALL_COLUMNS
Instance Attribute Summary collapse
-
#firstrow ⇒ Object
Returns the value of attribute firstrow.
-
#lastrow ⇒ Object
Returns the value of attribute lastrow.
-
#source ⇒ Object
Returns the value of attribute source.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(firstrow, lastrow, source, type) ⇒ TreeModelEvent
constructor
A new instance of TreeModelEvent.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(firstrow, lastrow, source, type) ⇒ TreeModelEvent
Returns a new instance of TreeModelEvent.
233 234 235 236 237 238 |
# File 'lib/rbcurse/core/widgets/tree/treemodel.rb', line 233 def initialize firstrow, lastrow, source, type @firstrow = firstrow @lastrow = lastrow @source = source @type = type end |
Instance Attribute Details
#firstrow ⇒ Object
Returns the value of attribute firstrow.
232 233 234 |
# File 'lib/rbcurse/core/widgets/tree/treemodel.rb', line 232 def firstrow @firstrow end |
#lastrow ⇒ Object
Returns the value of attribute lastrow.
232 233 234 |
# File 'lib/rbcurse/core/widgets/tree/treemodel.rb', line 232 def lastrow @lastrow end |
#source ⇒ Object
Returns the value of attribute source.
232 233 234 |
# File 'lib/rbcurse/core/widgets/tree/treemodel.rb', line 232 def source @source end |
#type ⇒ Object
Returns the value of attribute type.
232 233 234 |
# File 'lib/rbcurse/core/widgets/tree/treemodel.rb', line 232 def type @type end |
Instance Method Details
#inspect ⇒ Object
242 243 244 |
# File 'lib/rbcurse/core/widgets/tree/treemodel.rb', line 242 def inspect to_s end |
#to_s ⇒ Object
239 240 241 |
# File 'lib/rbcurse/core/widgets/tree/treemodel.rb', line 239 def to_s "#{@type.to_s}, firstrow: #{@firstrow}, lastrow: #{@lastrow}, source: #{@source}" end |