Package org.itsnat.impl.core.jsren.dom.node

Examples of org.itsnat.impl.core.jsren.dom.node.JSRenderAttributeImpl


        {
            Attr attr = (Attr)mutEvent.getRelatedNode();
            Element elem = (Element)mutEvent.getTarget();

            String code = null;
            JSRenderAttributeImpl render = JSRenderAttributeImpl.getJSRenderAttribute(attr,elem,clientDoc);
            int changeType = mutEvent.getAttrChange();
            switch(changeType)
            {
                case MutationEvent.ADDITION:
                case MutationEvent.MODIFICATION:
                    code = render.setAttributeCode(attr,elem,false,clientDoc);
                    break;
                case MutationEvent.REMOVAL:
                    code = render.removeAttributeCode(attr,elem,clientDoc);
                    break;
                // No hay m�s casos
            }
            clientDoc.addCodeToSend(code);
        }
        else if (type.equals("DOMCharacterDataModified"))
        {
            CharacterData charDataNode = (CharacterData)mutEvent.getTarget();
            JSRenderCharacterDataImpl render = (JSRenderCharacterDataImpl)JSRenderNodeImpl.getJSRenderNode(charDataNode,clientDoc);
            String code = render.getCharacterDataModifiedCode(charDataNode,clientDoc);
            clientDoc.addCodeToSend(code);
        }
    }
View Full Code Here

TOP

Related Classes of org.itsnat.impl.core.jsren.dom.node.JSRenderAttributeImpl

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.