Class: Umbra::EventHandler::PropertyChangeEvent
- Inherits:
-
Object
- Object
- Umbra::EventHandler::PropertyChangeEvent
- Defined in:
- lib/umbra/eventhandler.rb
Overview
Created and sent to all listeners whenever a property is changed
Instance Attribute Summary collapse
-
#newvalue ⇒ Object
{{{.
-
#oldvalue ⇒ Object
{{{.
-
#property_name ⇒ Object
{{{.
-
#source ⇒ Object
{{{.
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.
124 125 126 |
# File 'lib/umbra/eventhandler.rb', line 124 def initialize source, property_name, oldvalue, newvalue set source, property_name, oldvalue, newvalue end |
Instance Attribute Details
#newvalue ⇒ Object
{{{
123 124 125 |
# File 'lib/umbra/eventhandler.rb', line 123 def newvalue @newvalue end |
#oldvalue ⇒ Object
{{{
123 124 125 |
# File 'lib/umbra/eventhandler.rb', line 123 def oldvalue @oldvalue end |
#property_name ⇒ Object
{{{
123 124 125 |
# File 'lib/umbra/eventhandler.rb', line 123 def property_name @property_name end |
#source ⇒ Object
{{{
123 124 125 |
# File 'lib/umbra/eventhandler.rb', line 123 def source @source end |
Instance Method Details
#inspect ⇒ Object
134 135 136 |
# File 'lib/umbra/eventhandler.rb', line 134 def inspect to_s end |
#set(source, property_name, oldvalue, newvalue) ⇒ Object
127 128 129 130 |
# File 'lib/umbra/eventhandler.rb', line 127 def set source, property_name, oldvalue, newvalue @source, @property_name, @oldvalue, @newvalue = source, property_name, oldvalue, newvalue end |
#to_s ⇒ Object
131 132 133 |
# File 'lib/umbra/eventhandler.rb', line 131 def to_s "PROPERTY_CHANGE name: #{property_name}, oldval: #{@oldvalue}, newvalue: #{@newvalue}, source: #{@source}" end |