Examples of ItsNatStfulDocumentImpl


Examples of org.itsnat.impl.core.doc.ItsNatStfulDocumentImpl

    {
    }

    private void writeObject(ObjectOutputStream out) throws IOException
    {
        ItsNatStfulDocumentImpl itsNatDoc = null;
        if (referrer != null)
            itsNatDoc = referrer.get();

        out.writeObject(itsNatDoc);
View Full Code Here

Examples of org.itsnat.impl.core.doc.ItsNatStfulDocumentImpl

        out.defaultWriteObject();
    }

    private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
    {
        ItsNatStfulDocumentImpl itsNatDoc = (ItsNatStfulDocumentImpl)in.readObject();
        if (itsNatDoc != null)
            this.referrer = new WeakReference<ItsNatStfulDocumentImpl>(itsNatDoc);

        in.defaultReadObject();
    }
View Full Code Here

Examples of org.itsnat.impl.core.doc.ItsNatStfulDocumentImpl

    }

    public synchronized ItsNatStfulDocumentImpl popItsNatStfulDocument()
    {
        if (referrer == null) return null;
        ItsNatStfulDocumentImpl itsNatDoc = referrer.get();
        this.referrer = null;
        return itsNatDoc;
    }
View Full Code Here

Examples of org.itsnat.impl.core.doc.ItsNatStfulDocumentImpl

        this.referrer = referrer;
    }

    public synchronized ItsNatStfulDocumentImpl popItsNatStfulDocument()
    {
        ItsNatStfulDocumentImpl itsNatDoc = this.referrer;
        this.referrer = null;
        return itsNatDoc;
    }
View Full Code Here

Examples of org.itsnat.impl.core.doc.ItsNatStfulDocumentImpl

        return mapById.get(id);
    }

    public String generateUniqueId()
    {
        ItsNatStfulDocumentImpl itsNatDoc = getItsNatStfulDocument();
        return generateUniqueId(itsNatDoc);
    }
View Full Code Here

Examples of org.itsnat.impl.core.doc.ItsNatStfulDocumentImpl

        this.clientDoc = clientDoc;
    }

    public static DOMPathResolver createDOMPathResolver(ClientDocumentStfulImpl clientDoc)
    {
        ItsNatStfulDocumentImpl itsNatDoc = clientDoc.getItsNatStfulDocument();
        if (itsNatDoc instanceof ItsNatHTMLDocumentImpl) // NO debe ser nulo
            return new DOMPathResolverHTMLDoc(clientDoc);
        else
            return new DOMPathResolverOtherNSDoc(clientDoc);
    }
View Full Code Here

Examples of org.itsnat.impl.core.doc.ItsNatStfulDocumentImpl

        }
    }

    private Node getNodeFromArrayPath(String[] arrayPath,Node topParent)
    {
        ItsNatStfulDocumentImpl itsNatDoc = getItsNatStfulDocument();
        Document doc = itsNatDoc.getDocument();
        AbstractView view = ((DocumentView)doc).getDefaultView();

        if (arrayPath.length == 1)
        {
            String firstPos = arrayPath[0];
View Full Code Here

Examples of org.itsnat.impl.core.doc.ItsNatStfulDocumentImpl

    private String[] getNodePathArray(Node nodeLeaf,Node topParent)
    {
        // Si topParent es null devuelve un path absoluto, es decir hasta el documento como padre
        if (nodeLeaf == null) return null;

        ItsNatStfulDocumentImpl itsNatDoc = getItsNatStfulDocument();
        Document doc = itsNatDoc.getDocument();
        if (topParent == null) topParent = doc;

        if (nodeLeaf.equals(((DocumentView)doc).getDefaultView()))
            return new String[]{"window"};
        else if (nodeLeaf.equals(doc))
View Full Code Here

Examples of org.itsnat.impl.core.doc.ItsNatStfulDocumentImpl

    protected void setInvalidInternal()
    {
        super.setInvalidInternal();

        // Es el propietario del documento, si es inv�lido lo ser� tambi�n el documento asociado
        ItsNatStfulDocumentImpl itsNatDoc = getItsNatStfulDocument();
        itsNatDoc.setInvalid();

        ItsNatSessionImpl itsNatSession = getItsNatSessionImpl();
        itsNatSession.unregisterClientDocumentStfulOwner(this);

        if (itsNatDoc.isReferrerEnabled())
        {
            // Normalmente se llega aqu� via unload, la posible nueva p�gina
            // tuvo la oportunidad de obtener el referrer tras el onbeforeunload de la p�gina origen
            // ahora que seguramente se est� ejecutando el unload ya no.

            Referrer referrer = itsNatSession.getReferrer();
            ItsNatStfulDocumentImpl itsNatDocRef = referrer.getItsNatStfulDocument();
            if (itsNatDocRef == itsNatDoc)
                referrer.cleanItsNatStfulDocument();
        }
    }
View Full Code Here

Examples of org.itsnat.impl.core.doc.ItsNatStfulDocumentImpl

        this.clientDoc = clientDoc;
    }

    public static ClientMutationEventListenerStfulImpl createClientMutationEventListenerStful(ClientDocumentStfulImpl clientDoc)
    {
        ItsNatStfulDocumentImpl itsNatDoc = clientDoc.getItsNatStfulDocument();
        if (itsNatDoc instanceof ItsNatHTMLDocumentImpl)
            return ClientMutationEventListenerHTMLImpl.createClientMutationEventListenerHTML(clientDoc);
        else
            return new ClientMutationEventListenerStfulDefaultImpl(clientDoc);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.