Examples of ItsNatStfulDocumentImpl


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

        // Esto soluciona el que el no se lance el blur en MSIE (6 y 7) al pulsar fuera en algunas circunstancias
        // tal y como ocurre en el ejemplo ExtJS (al pulsar otra fila) y en general cuando se sale del editor in place
        // muy r�pido para editar otro (ocurre incluso en FireFox 3)

        // En este contexto no puede ser otra cosa que un documento AJAX
        ItsNatStfulDocumentImpl itsNatDoc = (ItsNatStfulDocumentImpl)getItsNatDocument();
        ClientDocumentStfulImpl[] clientList = itsNatDoc.getAllClientDocumentStfulsCopy();

        for(int i = 0; i < clientList.length; i++)
        {
            ClientDocumentStfulImpl clientDoc = clientList[i];
            ItsNatCellEditorClientImpl editClient = ItsNatCellEditorClientImpl.getItsNatHTMLCellEditorClient(clientDoc.getBrowser(),compEditor);
            editClient.registerEventListeners(this,clientDoc);
        }

        /*
         * �ltimo recurso cuando por alguna raz�n no se env�a el blur
         */
        itsNatDoc.addEventListener(0,globalEventListener);
    }
View Full Code Here

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

        ItsNatComponent compEditor = getCellEditorComponent();
        compEditor.removeEventListener("blur",this);

        // En este contexto no puede ser otra cosa que un documento AJAX
        ItsNatStfulDocumentImpl itsNatDoc = (ItsNatStfulDocumentImpl)getItsNatDocument();
        ClientDocumentStfulImpl[] clientList = itsNatDoc.getAllClientDocumentStfulsCopy();

        for(int i = 0; i < clientList.length; i++)
        {
            ClientDocumentStfulImpl clientDoc = clientList[i];
            ItsNatCellEditorClientImpl editClient = ItsNatCellEditorClientImpl.getItsNatHTMLCellEditorClient(clientDoc.getBrowser(),compEditor);
            editClient.unregisterEventListeners(this, clientDoc);
        }

        itsNatDoc.removeEventListener(globalEventListener); // No pasa nada por eliminarse mientras se est�n procesando los globales, el framework est� preparado
    }
View Full Code Here

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

    }


    public void blur()
    {
        ItsNatStfulDocumentImpl itsNatDoc = (ItsNatStfulDocumentImpl)getItsNatDocumentImpl();
        JSRenderMethodCallImpl.addCallMethodHTMLFormControlCode(getHTMLElement(),"blur",itsNatDoc);
    }
View Full Code Here

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

        JSRenderMethodCallImpl.addCallMethodHTMLFormControlCode(getHTMLElement(),"blur",itsNatDoc);
    }

    public void focus()
    {
        ItsNatStfulDocumentImpl itsNatDoc = (ItsNatStfulDocumentImpl)getItsNatDocumentImpl();
        JSRenderMethodCallImpl.addCallMethodHTMLFormControlCode(getHTMLElement(),"focus",itsNatDoc);
    }
View Full Code Here

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

        JSRenderMethodCallImpl.addCallMethodHTMLFormControlCode(getHTMLElement(),"focus",itsNatDoc);
    }

    public void select()
    {
        ItsNatStfulDocumentImpl itsNatDoc = (ItsNatStfulDocumentImpl)getItsNatDocumentImpl();
        JSRenderMethodCallImpl.addCallMethodHTMLFormControlCode(getHTMLElement(),"select",itsNatDoc);
    }
View Full Code Here

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

    public void registerEventListeners(ItsNatCellEditorImpl compParent,ClientDocumentStfulImpl clientDoc)
    {
        ItsNatComponent compEditor = compParent.getCellEditorComponent();

        Browser browser = clientDoc.getBrowser();
        ItsNatStfulDocumentImpl itsNatDoc = (ItsNatStfulDocumentImpl)clientDoc.getItsNatDocument();
        Document doc = itsNatDoc.getDocument();
        Element nodeEditor = (Element)compEditor.getNode(); // S�lo admitimos elementos por ahora

        clientDoc.addCodeToSend("var nodeEditor = " + clientDoc.getNodeReference(nodeEditor,true,true) + ";\n");

        StringBuilder codeListener = new StringBuilder();
View Full Code Here

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

    }

    public void unregisterEventListeners(ItsNatCellEditorImpl parent,ClientDocumentStfulImpl clientDoc)
    {
        Browser browser = clientDoc.getBrowser();
        ItsNatStfulDocumentImpl itsNatDoc = (ItsNatStfulDocumentImpl)clientDoc.getItsNatDocument();
        Document doc = itsNatDoc.getDocument();

        clientDoc.removeEventListener((EventTarget)doc,"click", parent, true);

        if (browser instanceof BrowserWebKitIOS)
            clientDoc.removeEventListener((EventTarget)doc,"touchend", parent, true);
View Full Code Here

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

    public abstract String getExpectedType();

    public void blur()
    {
        ItsNatStfulDocumentImpl itsNatDoc = (ItsNatStfulDocumentImpl)getItsNatDocumentImpl();
        JSRenderMethodCallImpl.addCallMethodHTMLFormControlCode(getElement(),"blur",itsNatDoc);
    }
View Full Code Here

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

        JSRenderMethodCallImpl.addCallMethodHTMLFormControlCode(getElement(),"blur",itsNatDoc);
    }

    public void focus()
    {
        ItsNatStfulDocumentImpl itsNatDoc = (ItsNatStfulDocumentImpl)getItsNatDocumentImpl();
        JSRenderMethodCallImpl.addCallMethodHTMLFormControlCode(getElement(),"focus",itsNatDoc);
    }
View Full Code Here

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

        JSRenderMethodCallImpl.addCallMethodHTMLFormControlCode(getElement(),"focus",itsNatDoc);
    }

    public void click()
    {
        ItsNatStfulDocumentImpl itsNatDoc = (ItsNatStfulDocumentImpl)getItsNatDocumentImpl();
        JSRenderMethodCallImpl.addCallMethodHTMLFormControlCode(getHTMLElement(),"click",itsNatDoc);
    }
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.