Class: RubyCurses::PropertyChangeEvent
- Defined in:
- lib/rbcurse/core/widgets/rwidget.rb
Overview
Created and sent to all listeners whenever a property is changed
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(source, property_name, oldvalue, newvalue) ⇒ PropertyChangeEvent
constructor
A new instance of PropertyChangeEvent.
- #inspect ⇒ Object
- #set(source, property_name, oldvalue, newvalue) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(source, property_name, oldvalue, newvalue) ⇒ PropertyChangeEvent
Returns a new instance of PropertyChangeEvent.
2045 2046 2047 |
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 2045 def initialize source, property_name, oldvalue, newvalue set source, property_name, oldvalue, newvalue end |
Instance Attribute Details
#newvalue ⇒ Object
2044 2045 2046 |
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 2044 def newvalue @newvalue end |
#oldvalue ⇒ Object
2044 2045 2046 |
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 2044 def oldvalue @oldvalue end |
#property_name ⇒ Object
2044 2045 2046 |
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 2044 def property_name @property_name end |
#source ⇒ Object
2044 2045 2046 |
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 2044 def source @source end |
Instance Method Details
#inspect ⇒ Object
2055 2056 2057 |
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 2055 def inspect to_s end |
#set(source, property_name, oldvalue, newvalue) ⇒ Object
2048 2049 2050 2051 |
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 2048 def set source, property_name, oldvalue, newvalue @source, @property_name, @oldvalue, @newvalue = source, property_name, oldvalue, newvalue end |
#to_s ⇒ Object
2052 2053 2054 |
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 2052 def to_s "PROPERTY_CHANGE name: #{property_name}, oldval: #{@oldvalue}, newvalue: #{@newvalue}, source: #{@source}" end |