Package org.itsnat.impl.core.domimpl.deleg

Examples of org.itsnat.impl.core.domimpl.deleg.DelegateNodeImpl


            return delegate.dispatchEventRemote(evt);
    }

    public void addEventListener(String type, EventListener listener, boolean useCapture)
    {
        DelegateNodeImpl delegate = getDelegateNode();
        if (delegate.isAddRemoveEventListenerInternal())
            addEventListenerInternal(type,listener,useCapture);
        else
            delegate.addEventListenerRemote(type,listener,useCapture);
    }
View Full Code Here


        // alguna librer�a JavaScript de utilidad que hiciera alg�n uso de la zona
    }

    public void reconnectChildNodesToClient(Node node)
    {
        DelegateNodeImpl delegNode = ((ItsNatNodeInternal)node).getDelegateNode();
        if (!delegNode.isDisconnectedChildNodesFromClient())
            return; // No cambia nada, no hacemos nada (el modo por defecto)

        ItsNatStfulDocumentImpl itsNatDoc = getItsNatStfulDocument();
        if (itsNatDoc.isLoadingPhaseAndFastLoadMode())
        {
            // Nos hemos rajado y reconectado de nuevo en tiempo de carga y fastLoad = true
            // deshacemos la tarea "pendiente" de renderizar el fragmento removido
            ResponseNormalLoadStfulDocImpl loadResponse = getResponseNormalLoadStfulDoc();
            if (loadResponse.hasDisconnectedNodesFastLoadMode())
            {
                Map<Node,Object> disconnectedNodesFastLoadMode = loadResponse.getDisconnectedNodesFastLoadMode();
                disconnectedNodesFastLoadMode.remove(node); // En el caso de contenido nulo no llegamos a registrarlo por lo que es posible que no lo encuentre (es normal)
            }
        }

        ClientDocumentImpl[] allClients = getAllClientDocumentsCopy();
        for(int i = 0; i < allClients.length; i++)
        {
            ClientDocumentStfulImpl clientDoc = (ClientDocumentStfulImpl)allClients[i];
            ClientMutationEventListenerStfulImpl mutListener = clientDoc.getClientMutationEventListenerStful();
            mutListener.removeAllChild(node); // Se eliminan en el cliente
        }

        // Se supone que el nodo est� vac�o en el servidor pues no dejamos insertar hasta que haya reconexi�n
        delegNode.setDisconnectedChildNodesFromClient(false);
    }
View Full Code Here

            delegate.addEventListenerRemote(type,listener,useCapture);
    }

    public void removeEventListener(String type, EventListener listener, boolean useCapture)
    {
        DelegateNodeImpl delegate = getDelegateNode();
        if (delegate.isAddRemoveEventListenerInternal())
            removeEventListenerInternal(type,listener,useCapture);
        else
            delegate.removeEventListenerRemote(type,listener,useCapture);
    }
View Full Code Here

    // ItsNatUserData

    public boolean containsUserValueName(String name)
    {
        DelegateNodeImpl delegate = getDelegateNode();
        return delegate.containsUserValueName(name);
    }
View Full Code Here

        return delegate.containsUserValueName(name);
    }

    public Object getUserValue(String name)
    {
        DelegateNodeImpl delegate = getDelegateNode();
        return delegate.getUserValue(name);
    }
View Full Code Here

        return delegate.getUserValue(name);
    }

    public Object setUserValue(String name, Object value)
    {
        DelegateNodeImpl delegate = getDelegateNode();
        return delegate.setUserValue(name,value);
    }
View Full Code Here

        return delegate.setUserValue(name,value);
    }

    public Object removeUserValue(String name)
    {
        DelegateNodeImpl delegate = getDelegateNode();
        return delegate.removeUserValue(name);
    }
View Full Code Here

        return delegate.removeUserValue(name);
    }

    public String[] getUserValueNames()
    {
        DelegateNodeImpl delegate = getDelegateNode();
        return delegate.getUserValueNames();
    }
View Full Code Here

        super.removeEventListener(type,listener,useCapture);
    }

    public boolean isInternalMode()
    {
        DelegateNodeImpl delegate = getDelegateNode();
        return delegate.isInternalMode();
    }
View Full Code Here

        return delegate.isInternalMode();
    }

    public void setInternalMode(boolean mode)
    {
        DelegateNodeImpl delegate = getDelegateNode();
        delegate.setInternalMode(mode);
    }
View Full Code Here

TOP

Related Classes of org.itsnat.impl.core.domimpl.deleg.DelegateNodeImpl

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.