Examples of ItsNatHTMLInputReset


Examples of org.itsnat.comp.button.normal.ItsNatHTMLInputReset

    public void initButton()
    {
        Document doc = itsNatDoc.getDocument();
        HTMLInputElement inputElem = (HTMLInputElement)doc.getElementById("resetButtonId");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLInputReset input = (ItsNatHTMLInputReset)componentMgr.findItsNatComponent(inputElem);
        DefaultButtonModel dataModel = new DefaultButtonModel();
        input.setButtonModel(dataModel);

        input.setEventListenerParams("click",false,CommMode.XHR_SYNC,null,null,-1); // Es necesario que sea s�ncrono pues sino no funciona la llamada preventDefault()
        input.setLabelValue("Reset Button");

        input.addEventListener("click",this);

        dataModel.addChangeListener(this);
        dataModel.addActionListener(this);
    }
View Full Code Here

Examples of org.itsnat.comp.button.normal.ItsNatHTMLInputReset

        if (itsNatEvent.getCommMode() != CommMode.XHR_SYNC)
            throw new RuntimeException("This browser doesn't support AJAX syncronous");

        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)itsNatEvent.getItsNatDocument();
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLInputReset input = (ItsNatHTMLInputReset)componentMgr.findItsNatComponent((Node)evt.getCurrentTarget());
        outText("OK " + evt.getType() + " (reset canceled) "); // Para que se vea

        input.setLabelValue("Reset Button (canceled)");

        evt.preventDefault(); // Cancelamos el env�o del formulario
    }
View Full Code Here

Examples of org.itsnat.comp.button.normal.ItsNatHTMLInputReset

        ItsNatHTMLInputSubmit inputSubmit = (ItsNatHTMLInputSubmit)compMgr.findItsNatComponentById("inputSubmitId");
        check(inputSubmit);
        inputSubmit.setLabelValue("Input Submit");

        ItsNatHTMLInputReset inputReset = (ItsNatHTMLInputReset)compMgr.findItsNatComponentById("inputResetId");
        check(inputReset);
        inputReset.setLabelValue("Input Reset");

        ItsNatHTMLButton button = (ItsNatHTMLButton)compMgr.findItsNatComponentById("buttonId");
        check(button);

        ItsNatHTMLButtonLabel buttonLabel = (ItsNatHTMLButtonLabel)compMgr.findItsNatComponentById("buttonLabelId");
View Full Code Here

Examples of org.itsnat.comp.button.normal.ItsNatHTMLInputReset

        return null;
    }

    public ItsNatHTMLInputReset createItsNatHTMLInputReset(HTMLInputElement element,NameValue[] artifacts,boolean execCreateFilters,ItsNatStfulDocComponentManagerImpl compMgr)
    {
        ItsNatHTMLInputReset comp = null;
        boolean doFilters = hasBeforeAfterCreateItsNatComponentListener(execCreateFilters,compMgr);
        if (doFilters) comp = (ItsNatHTMLInputReset)processBeforeCreateItsNatComponentListener(element,getCompType(),null,artifacts,compMgr);
        if (comp == null)
            comp = new ItsNatHTMLInputResetImpl(element,artifacts,compMgr);
        if (doFilters) comp = (ItsNatHTMLInputReset)processAfterCreateItsNatComponentListener(comp,compMgr);
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.