/*
(non-Javadoc)

@see com.googlecode.openbeans.PropertyChangeListener#propertyChange(com.googlecode.openbeans.PropertyChangeEvent)
199054
public void propertyChange(PropertyChangeEvent event)
	{
		if (contains(event.getSource()) && "beanContext".equals(event.getPropertyName()) && event.getOldValue() == getBeanContextPeer())
		{
			remove(event.getSource(), false);
		}
	}
1258837
public void firePropertyChange(PropertyChangeEvent evt) {
		Object oldValue = evt.getOldValue();
		Object newValue = evt.getNewValue();
		if (ObjectUtils.nullSafeEquals(oldValue, newValue)) {
			return;
		}

		String propertyName = evt.getPropertyName();
		PropertyChangeSupport child = null;
		if (children != null) {
			if (children != null && propertyName != null) {
				child = (PropertyChangeSupport) children.get(propertyName);
			}
		}

		if (listeners != null) {
			Object[] listenerList = listeners.getListenerList();
			for (int i = 0; i <= listenerList.length - 2; i += 2) {
				if (listenerList[i] == PropertyChangeListener.class) {
					((PropertyChangeListener) listenerList[i + 1]).propertyChange(evt);
				}
			}
		}

		if (child != null) {
			child.firePropertyChange(evt);
		}
	}
211350
public void afterPropertyChange(String propertyName) {
		if(propertyName.startsWith(RtfProperty.CHARACTER)) {
		} else {
			if(propertyName.startsWith(RtfProperty.PARAGRAPH)) {
			} else {
				if(propertyName.startsWith(RtfProperty.SECTION)) {
				} else {
					if(propertyName.startsWith(RtfProperty.DOCUMENT)) {

					}
				}
			}
		}		
	}
1340573
protected final void firePrimitiveChanged(String propertyName, Object oldValue, Object newValue) {
		final BusChangeEvent event = new BusChangeEvent(
				// source of the event
				this,
				// type of the event
				BusChangeEventType.change(getClass()),
				// subobject
				this,
				// index in parent
				indexInParent(),
				propertyName,
				oldValue,
				newValue);
		firePrimitiveChanged(event);
	}
1265190
public void propertyChange(PropertyChangeEvent evt)
    {
        String strProperty = evt.getPropertyName();
        if (this.isValidProperty(strProperty))
        {
            Object objCurrentValue = this.get(strProperty);
            if (evt.getNewValue() != objCurrentValue)
            {
                m_strCurrentProperty = strProperty;   // Eliminate the chance of echos
                if (evt.getNewValue() != null)
                    this.put(strProperty, evt.getNewValue());
                else
                    this.remove(strProperty);
//x                this.firePropertyChange(strProperty, evt.getOldValue(), evt.getNewValue());     // Propogate the property change
                if (propertyChange != null)
                    propertyChange.firePropertyChange(evt);
                m_strCurrentProperty = null;
            }
        }
    }
568637
public final void removePropertyChangeListener(PropertyChangeListener l)
    {
        if (sealed) onSealedMutation();
        propertyListeners = Kit.removeListener(propertyListeners, l);
    }
102765
private void addParentPropertyChangeListener(PropertyChangeListener listener) {
        if (rootParent instanceof JFrame) {
            ((JFrame) rootParent).addPropertyChangeListener(listener);
        } else if (rootParent instanceof JDialog) {
            ((JDialog) rootParent).addPropertyChangeListener(listener);
        }

        rootPane.addPropertyChangeListener(listener);
    }
634227
public void addPropertyChangeListener(PropertyChangeListener listener) {
		if (listener instanceof PropertyChangeListenerProxy) {
			PropertyChangeListenerProxy proxy = (PropertyChangeListenerProxy) listener;
			addPropertyChangeListener(proxy.getPropertyName(), (PropertyChangeListener) proxy.getListener());
		}
		else {
			if (listeners == null) {
				listeners = new EventListenerList();
			}
			listeners.add(PropertyChangeListener.class, listener);
		}
	}
297954
@Override
    public void serviceChanged(ServiceEvent serviceEvent) {
        final String topic = getTopic(serviceEvent);

        // Bail quickly if the event is one that should be ignored
        if (topic == null) {
            return;
        }

        // Event properties
        Map<String, Object> eventProperties = new HashMap<String, Object>();

        // "event" --> the original event object
        eventProperties.put(EventConstants.EVENT, serviceEvent);

        // "service" --> result of getServiceReference
        // "service.id" --> the service's ID
        // "service.pid" --> the service's persistent ID if not null
        // "service.objectClass" --> the services object class
        ServiceReference serviceReference = serviceEvent.getServiceReference();
        if (serviceReference != null) {
            eventProperties.put(EventConstants.SERVICE, serviceReference);

            Long serviceId = (Long) serviceReference.getProperty(Constants.SERVICE_ID);
            eventProperties.put(EventConstants.SERVICE_ID, serviceId);

            Object servicePersistentId = serviceReference.getProperty(Constants.SERVICE_PID);
            if (servicePersistentId != null) {
                // String[] must be coerced into Collection<String>
                if (servicePersistentId instanceof String[]) {
                    servicePersistentId = Arrays.asList((String[]) servicePersistentId);
                }
                eventProperties.put(EventConstants.SERVICE_PID, servicePersistentId);
            }

            String[] objectClass = (String[]) serviceReference.getProperty(Constants.OBJECTCLASS);
            if (objectClass != null) {
                eventProperties.put(EventConstants.SERVICE_OBJECTCLASS, objectClass);
            }
        }

        // Construct and fire the event
        Event event = new Event(topic, eventProperties);
        eventAdmin.postEvent(event);
    }
681046
private static PropertyChangeListener createAncestorPropertyChangeListener(final JTable table) {
        return new PropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent event) {
                if (table.getParent() instanceof JViewport && table.getParent().getParent() instanceof JScrollPane) {
                    table.getParent().repaint();
                }
            }
        };
    }
472837
protected void fireValueChangeEvent(Object oldValue, Object newValue) {
        if (logger.isDebugEnabled()) {
            logger.debug("Firing value changed event. Old value='" + oldValue + "' new value='" + newValue + "'");
        }
        final PropertyChangeListener[] propertyChangeListeners = getPropertyChangeListeners(VALUE_PROPERTY);
        if (propertyChangeListeners.length > 0) {
            final Object listenerToSkip = listenerToSkipHolder.get();
            final PropertyChangeEvent propertyChangeEvent = new PropertyChangeEvent(this, VALUE_PROPERTY, oldValue,
                    newValue);
            for (PropertyChangeListener listener : propertyChangeListeners) {
                if (listener != listenerToSkip) {
                    listener.propertyChange(propertyChangeEvent);
                }
            }
        }
    }
1164242
@SneakyThrows
    @Subscribe
    public final synchronized void renew(final PropertiesChangedEvent propertiesChangedEvent) {
        dataSource = new MasterSlaveDataSource(dataSource.getDataSourceMap(), dataSource.getMasterSlaveRule(), propertiesChangedEvent.getProps());
    }
743537
@Override
    public void addProperty(Property property) {
        properties.add(property);
        property.addPropertyChangeListener(this);
        buildModel();
    }
946372
public void propertyChange( PropertyChangeEvent evt ) {
        if ("progress" == evt.getPropertyName()) {
            int progress = (Integer) evt.getNewValue();
            progressMonitor.setProgress(progress);
            // String message = String.format("Completed %d%%.\n", progress);
            // progressMonitor.setNote(message);
            if (progressMonitor.isCanceled() || task.isDone()) {
                if (progressMonitor.isCanceled()) {
                    task.cancel(true);
                }
            }
        }
        if ("progressText" == evt.getPropertyName()) {
            String progressText = (String) evt.getNewValue();
            progressMonitor.setNote(progressText);
            if (progressMonitor.isCanceled() || task.isDone()) {
                if (progressMonitor.isCanceled()) {
                    task.cancel(true);
                }
            }
        }

    }
586774
protected final void firePropertyChange(
            final String propertyName,
            final Object oldValue,
            final Object newValue) {
        propertySupport.firePropertyChange(propertyName, oldValue, newValue);
    }
433233
public static void setPropertyValue(BeanDefinitionBuilder builder, String propertyValue, String propertyName) {
        if (StringUtils.hasText(propertyValue)) {
            builder.addPropertyValue(propertyName, propertyValue);
        }
    }
1208215
public PropertyChangeListener[] getPropertyChangeListeners(String propertyName) {
		List returnList = new ArrayList();

		if (children != null) {
			PropertyChangeSupport support = (PropertyChangeSupport) children.get(propertyName);
			if (support != null) {
				returnList.addAll(Arrays.asList(support.getPropertyChangeListeners()));
			}
		}
		return (PropertyChangeListener[]) (returnList.toArray(new PropertyChangeListener[0]));
	}