Package org.adfemg.datacontrol.xml.events

Examples of org.adfemg.datacontrol.xml.events.AttrChangeEvent


     */
    @Override
    public Object put(final String key, final Object value) {
        if (attributes.containsKey(key)) {
            // fire PrePut handlers (if any)
            final AttrChangeEvent attrChangeEvent = new AttrChangeEvent(get(key), value, key, this);
            handlers.invokePrePut(attrChangeEvent);

            // perform actual XML manipulation (or invoke InsteadPutHandler if present)
            Object oldVal = putInternal(key, value);

View Full Code Here


        Attribute attribute = attributes.get(key);
        Object oldVal = get(key);

        // fire InsteadPutHandler (if present) or perform normal processing
        if (handlers.hasHandler(InsteadPutHandler.class, key)) {
            final AttrChangeEvent attrChangeEvent = new AttrChangeEvent(oldVal, value, key, this);
            handlers.invokeInsteadPut(attrChangeEvent, key);
        } else {
            String newXmlVal = getTypeMapper().toXml(value, attribute.getXmlType());
            Node node = resolveAttribute(attribute);
            attribute.reset(); // reset so next fetch will re-resolve
View Full Code Here

TOP

Related Classes of org.adfemg.datacontrol.xml.events.AttrChangeEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.