Search in sources :

Example 6 with HandlerManager

use of com.google.gwt.event.shared.HandlerManager in project lienzo-core by ahome-it.

the class AttributesChangedManager method addAttributesChangedHandler.

public final HandlerRegistration addAttributesChangedHandler(final Attribute attribute, final AttributesChangedHandler handler) {
    if ((null == attribute) || (null == handler)) {
        return null;
    }
    if (null != m_ser) {
        if (null == m_ctr) {
            m_ctr = new NFastStringHistogram();
        }
        if (null == m_map) {
            m_map = new NFastStringMap<>();
        }
        final String name = attribute.getProperty();
        m_ctr.inc(name);
        HandlerManager entry = m_map.get(name);
        if (null == entry) {
            m_map.put(name, entry = new HandlerManager(m_ser));
        }
        return new HandlerRegistrationProxy(name, entry.addHandler(AttributesChangedEvent.getType(), handler));
    }
    return null;
}
Also used : HandlerManager(com.google.gwt.event.shared.HandlerManager) NFastStringHistogram(com.ait.tooling.nativetools.client.collection.NFastStringHistogram)

Aggregations

HandlerManager (com.google.gwt.event.shared.HandlerManager)6 NFastStringHistogram (com.ait.tooling.nativetools.client.collection.NFastStringHistogram)1 Type (com.google.gwt.event.dom.client.DomEvent.Type)1 HandlerRegistration (com.google.gwt.event.shared.HandlerRegistration)1 RemoteEventService (de.novanic.eventservice.client.event.RemoteEventService)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Map (java.util.Map)1 Filter (org.activityinfo.legacy.shared.command.Filter)1 ActivityFilterPanel (org.activityinfo.ui.client.page.entry.ActivityFilterPanel)1