當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。