当前位置: 首页>>代码示例>>Java>>正文


Java PropertyChangeEvent.setPropagationId方法代码示例

本文整理汇总了Java中java.beans.PropertyChangeEvent.setPropagationId方法的典型用法代码示例。如果您正苦于以下问题:Java PropertyChangeEvent.setPropagationId方法的具体用法?Java PropertyChangeEvent.setPropagationId怎么用?Java PropertyChangeEvent.setPropagationId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在java.beans.PropertyChangeEvent的用法示例。


在下文中一共展示了PropertyChangeEvent.setPropagationId方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: propertyChange

import java.beans.PropertyChangeEvent; //导入方法依赖的package包/类
@Override
public void propertyChange(PropertyChangeEvent evt) {
    PropertyChangeEvent proxyEvent = new PropertyChangeEvent(JPDADVThread.this, evt.getPropertyName(), evt.getOldValue(), evt.getNewValue());
    proxyEvent.setPropagationId(evt.getPropagationId());
    for (PropertyChangeListener pchl : listeners) {
        pchl.propertyChange(proxyEvent);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:JPDADVThread.java

示例2: change

import java.beans.PropertyChangeEvent; //导入方法依赖的package包/类
private void change(Object propid) {
    if (computeMatcher()) {
        PropertyChangeEvent ev = new PropertyChangeEvent(this, FilteringPathResourceImplementation.PROP_INCLUDES, null, null);
        ev.setPropagationId(propid);
        pcs.firePropertyChange(ev);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:Classpaths.java

示例3: firePropertyChange

import java.beans.PropertyChangeEvent; //导入方法依赖的package包/类
final void firePropertyChange(String name, Object o, Object n, Object propagationId) {
    if (changeSupport == null) {
        return;
    }

    if ((o != null) && (n != null) && o.equals(n)) {
        return;
    }

    PropertyChangeEvent e = new PropertyChangeEvent(this, name, o, n);
    e.setPropagationId(propagationId);
    changeSupport.firePropertyChange(e);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:14,代码来源:FileSystem.java

示例4: propertyChange

import java.beans.PropertyChangeEvent; //导入方法依赖的package包/类
@Override
public void propertyChange(PropertyChangeEvent evt) {
    String propertyName = evt.getPropertyName();
    if (propertyName.length() <= rl || !propertyName.startsWith(r)) {
        // not a listener in this root
        return ;
    }
    PropertyChangeEvent delegateEvt = new PropertyChangeEvent(
            DelegatingProperties.this,
            evt.getPropertyName().substring(rl),
            evt.getOldValue(),
            evt.getNewValue());
    delegateEvt.setPropagationId(evt.getPropagationId());
    delegate.propertyChange(delegateEvt);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:16,代码来源:Properties.java

示例5: firePropertyChange

import java.beans.PropertyChangeEvent; //导入方法依赖的package包/类
public void firePropertyChange (final Object propId) {
    PropertyChangeEvent event = new PropertyChangeEvent (this,FilteringPathResourceImplementation.PROP_INCLUDES,null,null);
    event.setPropagationId(propId);
    this.support.firePropertyChange(event);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:6,代码来源:RepositoryUpdaterTest.java

示例6: firePropertyChange

import java.beans.PropertyChangeEvent; //导入方法依赖的package包/类
/**
    * Fires a property change event on the specified property, notifying the
    * old and new values.
    * @param what name of the property
    * @param oldV old value
    * @param newV new value
    */
   final void firePropertyChange(final String what, final Object oldV, final Object newV, final Object propagationId) {	
       final PropertyChangeEvent event = new PropertyChangeEvent (this, what, oldV, newV);
       event.setPropagationId(propagationId);
propSupport.firePropertyChange(event);
   }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:ClassPath.java


注:本文中的java.beans.PropertyChangeEvent.setPropagationId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。