Class: RubyCurses::PropertyChangeEvent
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.
1615 1616 1617 |
# File 'lib/rbcurse/rwidget.rb', line 1615 def initialize source, property_name, oldvalue, newvalue set source, property_name, oldvalue, newvalue end |
Instance Attribute Details
#newvalue ⇒ Object
1614 1615 1616 |
# File 'lib/rbcurse/rwidget.rb', line 1614 def newvalue @newvalue end |
#oldvalue ⇒ Object
1614 1615 1616 |
# File 'lib/rbcurse/rwidget.rb', line 1614 def oldvalue @oldvalue end |
#property_name ⇒ Object
1614 1615 1616 |
# File 'lib/rbcurse/rwidget.rb', line 1614 def property_name @property_name end |
Instance Method Details
#set(source, property_name, oldvalue, newvalue) ⇒ Object
1618 1619 1620 1621 |
# File 'lib/rbcurse/rwidget.rb', line 1618 def set source, property_name, oldvalue, newvalue @source, @property_name, @oldvalue, @newvalue = source, property_name, oldvalue, newvalue end |
#to_s ⇒ Object
1622 1623 1624 |
# File 'lib/rbcurse/rwidget.rb', line 1622 def to_s "PROPERTY_CHANGE name: #{property_name}, oldval: #{@oldvalue}, newvalue: #{@newvalue}, source: #{@source}" end |