AXIComponent.java 文件源码

java
阅读 15 收藏 0 点赞 0 评论 0

项目:incubator-netbeans 作者:
/**
 * The proxy component receives an event notification.
 */
public void propertyChange(PropertyChangeEvent evt) {
    AXIComponent source = (AXIComponent)evt.getSource();
    String property = evt.getPropertyName();
    if(!isInModel()) {
        //Ideally it shouldn't come here. Remove this as listener
        //and make shared as null, so that it'll be GCed.
        source.removeListener(this);
        //setSharedComponent(null);
        return;
    }
    //if(evt.getOldValue() == null && evt.getNewValue() != null) {
    if(PROP_CHILD_ADDED.equals(property)) {            
        onChildAdded(evt);
        return;
    }
    //if(evt.getOldValue() != null && evt.getNewValue() == null) {
    if(PROP_CHILD_REMOVED.equals(property)) {
        onChildDeleted(evt);
        return;
    }

    firePropertyChangeEvent(evt.getPropertyName(),
            evt.getOldValue(), evt.getNewValue());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号