classdef PropertyChangedEventData < event.EventData
    %EventData event data subclass.
    
    %   Copyright 2012 The MathWorks, Inc.
    
    properties (Dependent)
        AffectedObject = [];
    end
    
    properties
        AffectedProperty = '';
    end
    
    methods
        function this = PropertyChangedEventData(affectedProperty)
            this.AffectedProperty = affectedProperty;
        end
        
        function aObject = get.AffectedObject(this)
            aObject = findProperty(this.Source, this.AffectedProperty);
        end
    end

    methods (Hidden)
        function value = get(this, prop)
            value = this.(prop);
        end
    end
end

% [EOF]
