本文整理汇总了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);
}