Package org.itsnat.comp

Examples of org.itsnat.comp.ItsNatComponentManager.findItsNatComponent()


    public void load()
    {
        org.w3c.dom.Document doc = itsNatDoc.getDocument();
        HTMLInputElement inputElem = (HTMLInputElement)doc.getElementById("resetFromServerId");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLInputButton input = (ItsNatHTMLInputButton)componentMgr.findItsNatComponent(inputElem);

        // Es necesario que el evento click sea s�ncrono pues se hace un reset en el retorno
        // que es anulado "sincronamente" (preventDefault) por el evento submit en otro lugar
        input.setEventListenerParams("click", true,CommMode.XHR_SYNC, null, null, -1);
        input.addEventListener("click",this);
View Full Code Here


    {
        // Evento "click"
        ItsNatDOMStdEvent itsNatEvent = (ItsNatDOMStdEvent)evt;
        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)itsNatEvent.getItsNatDocument();
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLInputButton input = (ItsNatHTMLInputButton)componentMgr.findItsNatComponent((Node)evt.getCurrentTarget());
        outText("OK " + evt.getType() + " "); // Para que se vea

        HTMLFormElement formElem = input.getHTMLInputElement().getForm();

        ItsNatHTMLForm form = (ItsNatHTMLForm)componentMgr.findItsNatComponent(formElem);
View Full Code Here

    public void load()
    {
        Document doc = itsNatDoc.getDocument();
        HTMLButtonElement elem = (HTMLButtonElement)doc.getElementById("testEventListenerChainId");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        this.button = (ItsNatHTMLButton)componentMgr.findItsNatComponent(elem);

        EventListener list1 = new EventListenerSerial()
        {
            public void handleEvent(final Event evt)
            {
View Full Code Here

    public void load()
    {
        org.w3c.dom.Document doc = itsNatDoc.getDocument();
        HTMLInputElement inputElem = (HTMLInputElement)doc.getElementById("testBlurFocusSelectId");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLInputButton input = (ItsNatHTMLInputButton)componentMgr.findItsNatComponent(inputElem);

        input.addEventListener("click",this);
        input.addEventListener("focus",this);
        input.addEventListener("blur",this);
    }
View Full Code Here

    {
        // Evento "click"
        ItsNatDOMStdEvent itsNatEvent = (ItsNatDOMStdEvent)evt;
        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)itsNatEvent.getItsNatDocument();
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLInputButton input = (ItsNatHTMLInputButton)componentMgr.findItsNatComponent((Node)evt.getCurrentTarget());
        HTMLDocument doc = (HTMLDocument)itsNatDoc.getDocument();

        outText("OK " + evt.getType() + " "); // Para que se vea

        String type = evt.getType();
View Full Code Here

            input.blur();
        }
        else if (type.equals("blur"))
        {
            HTMLTextAreaElement elemTextArea = (HTMLTextAreaElement)doc.getElementById("textAreaId");
            ItsNatHTMLTextArea textArea = (ItsNatHTMLTextArea)componentMgr.findItsNatComponent(elemTextArea);
            textArea.focus(); // No hace falta para seleccionar es para probar los dos m�todos seguidos
            textArea.select();
        }
    }
View Full Code Here

    public void addItems(Element listParent,ItsNatDocument itsNatDoc)
    {
        // Testeamos que los componentes y el auto-build tambi�n funcionan en XML
        ItsNatComponentManager compMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatFreeListMultSel list = (ItsNatFreeListMultSel)compMgr.findItsNatComponent(listParent);
        DefaultListModel listModel = (DefaultListModel)list.getListModel();
        listModel.addElement("One");
        listModel.addElement("Two");
        listModel.addElement("Three");
    }
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.