/** * Registers a property change handler for the specified property id. * * @param propertyId the property id * @param handler the property change handler */ public final void setPropertyChangeHandler( final String propertyId, final IWidgetPropertyChangeHandler handler) { WidgetPropertyChangeListener listener = propertyListenerMap.get(propertyId); if (listener != null) { listener.addHandler(handler); } }
/** * Remove all the property change handlers on the specified property. * * @param propID the property id */ public final void removeAllPropertyChangeHandlers(final String propID) { WidgetPropertyChangeListener listener = propertyListenerMap.get(propID); if (listener != null) { listener.removeAllHandlers(); } }