Class: Canis::PropertyChangeEvent
- Defined in:
- lib/canis/core/widgets/rwidget.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.
2231 2232 2233 |
# File 'lib/canis/core/widgets/rwidget.rb', line 2231 def initialize source, property_name, oldvalue, newvalue set source, property_name, oldvalue, newvalue end |
Instance Attribute Details
#newvalue ⇒ Object
{{{
2230 2231 2232 |
# File 'lib/canis/core/widgets/rwidget.rb', line 2230 def newvalue @newvalue end |
#oldvalue ⇒ Object
{{{
2230 2231 2232 |
# File 'lib/canis/core/widgets/rwidget.rb', line 2230 def oldvalue @oldvalue end |
#property_name ⇒ Object
{{{
2230 2231 2232 |
# File 'lib/canis/core/widgets/rwidget.rb', line 2230 def property_name @property_name end |
#source ⇒ Object
{{{
2230 2231 2232 |
# File 'lib/canis/core/widgets/rwidget.rb', line 2230 def source @source end |
Instance Method Details
#inspect ⇒ Object
2241 2242 2243 |
# File 'lib/canis/core/widgets/rwidget.rb', line 2241 def inspect to_s end |
#set(source, property_name, oldvalue, newvalue) ⇒ Object
2234 2235 2236 2237 |
# File 'lib/canis/core/widgets/rwidget.rb', line 2234 def set source, property_name, oldvalue, newvalue @source, @property_name, @oldvalue, @newvalue = source, property_name, oldvalue, newvalue end |
#to_s ⇒ Object
2238 2239 2240 |
# File 'lib/canis/core/widgets/rwidget.rb', line 2238 def to_s "PROPERTY_CHANGE name: #{property_name}, oldval: #{@oldvalue}, newvalue: #{@newvalue}, source: #{@source}" end |