Class: RubyCurses::TableModelEvent
- Inherits:
-
Object
- Object
- RubyCurses::TableModelEvent
- Defined in:
- lib/rbcurse/rtable.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
-
#column ⇒ Object
Returns the value of attribute column.
-
#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, column, source, type) ⇒ TableModelEvent
constructor
A new instance of TableModelEvent.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(firstrow, lastrow, column, source, type) ⇒ TableModelEvent
Returns a new instance of TableModelEvent.
1592 1593 1594 1595 1596 1597 1598 |
# File 'lib/rbcurse/rtable.rb', line 1592 def initialize firstrow, lastrow, column, source, type @firstrow = firstrow @lastrow = lastrow @column = column @source = source @type = type end |
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
1591 1592 1593 |
# File 'lib/rbcurse/rtable.rb', line 1591 def column @column end |
#firstrow ⇒ Object
Returns the value of attribute firstrow.
1591 1592 1593 |
# File 'lib/rbcurse/rtable.rb', line 1591 def firstrow @firstrow end |
#lastrow ⇒ Object
Returns the value of attribute lastrow.
1591 1592 1593 |
# File 'lib/rbcurse/rtable.rb', line 1591 def lastrow @lastrow end |
#source ⇒ Object
Returns the value of attribute source.
1591 1592 1593 |
# File 'lib/rbcurse/rtable.rb', line 1591 def source @source end |
#type ⇒ Object
Returns the value of attribute type.
1591 1592 1593 |
# File 'lib/rbcurse/rtable.rb', line 1591 def type @type end |
Instance Method Details
#inspect ⇒ Object
1602 1603 1604 |
# File 'lib/rbcurse/rtable.rb', line 1602 def inspect to_s end |
#to_s ⇒ Object
1599 1600 1601 |
# File 'lib/rbcurse/rtable.rb', line 1599 def to_s "#{@type.to_s}, firstrow: #{@firstrow}, lastrow: #{@lastrow}, column: #{@column}, source: #{@source}" end |