/** * Method used by pages and components to send notifications about property changes. * * @param component * the component containing the property * @param propertyName * the name of the property which changed * @param newValue * the new value for the property * @since 3.0 */ public static void fireObservedChange(IComponent component, String propertyName, Object newValue) { ChangeObserver observer = component.getPage().getChangeObserver(); if (observer == null) return; ObservedChangeEvent event = new ObservedChangeEvent(component, propertyName, newValue); observer.observeChange(event); } }
/** * Method used by pages and components to send notifications about property changes. * * @param component * the component containing the property * @param propertyName * the name of the property which changed * @param newValue * the new value for the property * @since 3.0 */ public static void fireObservedChange(IComponent component, String propertyName, Object newValue) { ChangeObserver observer = component.getPage().getChangeObserver(); if (observer == null) return; ObservedChangeEvent event = new ObservedChangeEvent(component, propertyName, newValue); observer.observeChange(event); } }