本文整理匯總了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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}