Package org.itsnat.impl.core.clientdoc

Examples of org.itsnat.impl.core.clientdoc.ClientDocumentStfulImpl


            parent = parent.getParentNode();
            parentId = nodeCache.getId(parent); // si cachedParent es null devuelve null
        }
        while((parentId == null)&&(parent != null));

        ClientDocumentStfulImpl clientDoc = nodeCache.getClientDocumentStful();
        String path = clientDoc.getStringPathFromNode(node,parent); // Si cachedParent es null (cachedParentId es null) devuelve un path absoluto

        return new NodeLocationWithParentImpl(node,id,path,parent,parentId,cacheIfPossible,clientDoc);
    }
View Full Code Here


    {
        // Asegura que cada cliente recibe el c�digo espec�fico sin trucos raros
        ClientDocumentStfulImpl[] allClient = itsNatDoc.getAllClientDocumentStfulsCopy();
        for(int i = 0; i < allClient.length; i++)
        {
            ClientDocumentStfulImpl clientDoc = allClient[i];
            if (clientDoc.isSendCodeEnabled())
            {
                clientDoc.addCodeToSend( getCallMethodCode(object,methodName,params,endSentence,true,clientDoc) );
            }
        }
    }
View Full Code Here

    {
        // M�todos blur(),focus(),click(),select()
        ClientDocumentStfulImpl[] allClient = itsNatDoc.getAllClientDocumentStfulsCopy();
        for(int i = 0; i < allClient.length; i++)
        {
            ClientDocumentStfulImpl clientDoc = allClient[i];
            if (clientDoc.isSendCodeEnabled())
            {
                clientDoc.addCodeToSend( getCallMethodFormControlCode(elem,methodName,true,clientDoc) );
            }
        }
    }
View Full Code Here

    public String getNodeReference(Node node)
    {
        if (node == null) return "null";
        preventiveNodeCaching(node);
        ClientDocumentStfulImpl clientDoc = getCurrentClientDocumentStful();
        // Es muy importante el cacheIfPossible = false pues antes hemos hecho
        // un esfuerzo en cachear y enviar al cliente, se trata de minimizar los
        // problemas que pueden ocurrir si el usuario no env�a el c�digo, para
        // ello la llamada JavaScript debe ser "s�lo lectura" es decir sin cambio de estado
        // para ello evitamos el cacheado del propio nodo y de padres.
        return clientDoc.getNodeReference(node,false,true);
    }
View Full Code Here

        return clientDoc.getNodeReference(node,false,true);
    }

    public String getTransportableStringLiteral(String text)
    {
        ClientDocumentStfulImpl clientDoc = getCurrentClientDocumentStful();

        return JSRenderImpl.toTransportableStringLiteral(text,clientDoc.getBrowser());
    }
View Full Code Here

        return JSRenderImpl.toTransportableStringLiteral(text,clientDoc.getBrowser());
    }

    public String getTransportableCharLiteral(char c)
    {
        ClientDocumentStfulImpl clientDoc = getCurrentClientDocumentStful();

        return JSRenderImpl.getTransportableCharLiteral(c,clientDoc.getBrowser());
    }
View Full Code Here

    public String getCallMethodCode(Object obj,String methodName,Object[] params,boolean endSentence)
    {
        preventiveNodeCaching(obj);
        preventiveNodeCaching(params);
        ClientDocumentStfulImpl clientDoc = getCurrentClientDocumentStful();
        // cacheIfPossible = false al igual que en getNodeReference
        return JSRenderMethodCallImpl.getCallMethodCode(obj,methodName,params,endSentence,false,clientDoc);
    }
View Full Code Here

    public String getSetPropertyCode(Object obj,String propertyName,Object value,boolean endSentence)
    {
        preventiveNodeCaching(obj);
        preventiveNodeCaching(value);
        ClientDocumentStfulImpl clientDoc = getCurrentClientDocumentStful();
        // cacheIfPossible = false al igual que en getNodeReference
        return JSRenderImpl.getSetPropertyCode(obj,propertyName,value,endSentence,false,clientDoc);
    }
View Full Code Here

    }

    public String getGetPropertyCode(Object obj,String propertyName,boolean endSentence)
    {
        preventiveNodeCaching(obj);
        ClientDocumentStfulImpl clientDoc = getCurrentClientDocumentStful();
        // cacheIfPossible = false al igual que en getNodeReference
        return JSRenderImpl.getGetPropertyCode(obj,propertyName,endSentence,false,clientDoc);
    }
View Full Code Here

    }

    public String toScript(Object value)
    {
        preventiveNodeCaching(value);
        ClientDocumentStfulImpl clientDoc = getCurrentClientDocumentStful();
        // cacheIfPossible = false al igual que en getNodeReference
        return JSRenderImpl.javaToJS(value,false,clientDoc);
    }
View Full Code Here

TOP

Related Classes of org.itsnat.impl.core.clientdoc.ClientDocumentStfulImpl

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.