Examples of ItsNatHTMLInputButton


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

        return null;
    }

    public ItsNatHTMLInputButton createItsNatHTMLInputButton(HTMLInputElement element,NameValue[] artifacts,boolean execCreateFilters,ItsNatStfulDocComponentManagerImpl compMgr)
    {
        ItsNatHTMLInputButton comp = null;
        boolean doFilters = hasBeforeAfterCreateItsNatComponentListener(execCreateFilters,compMgr);
        if (doFilters) comp = (ItsNatHTMLInputButton)processBeforeCreateItsNatComponentListener(element,getCompType(),null,artifacts,compMgr);
        if (comp == null)
            comp = new ItsNatHTMLInputButtonImpl(element,artifacts,compMgr);
        if (doFilters) comp = (ItsNatHTMLInputButton)processAfterCreateItsNatComponentListener(comp,compMgr);
View Full Code Here

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

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

        input.setLabelValue("Text Button");
        input.setEnabled(false); // Para testear la propagaci�n al DOM (getDisabled)
        TestUtil.checkError(inputElem.getDisabled());
        input.setEnabled(true);

        input.addEventListener("click",this);
        input.addEventListener("mousedown",this);
        input.addEventListener("mouseup",this);
        input.addEventListener("mouseover",this);
        input.addEventListener("mouseout",this);

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

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

    public void handleEvent(Event evt)
    {
        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

        input.setLabelValue("Button " + evt.getType());
    }
View Full Code Here

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

    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

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

    {
        // 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);
        form.reset();
        // Por otro lado hay un listener del form que cancela el reset, para
        // saber que la llamada se ha realizado en el cliente es precisamente
View Full Code Here

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

        ItsNatComponentManager compMgr = itsNatDoc.getItsNatComponentManager();
        compMgr.buildItsNatComponents(parentElem);

        // Normal Buttons

        ItsNatHTMLInputButton inputButton = (ItsNatHTMLInputButton)compMgr.findItsNatComponentById("inputButtonId");
        check(inputButton);
        inputButton.setLabelValue("Input Button");

        ItsNatHTMLInputImage inputImage = (ItsNatHTMLInputImage)compMgr.findItsNatComponentById("inputImageId");
        check(inputImage);

        ItsNatHTMLInputSubmit inputSubmit = (ItsNatHTMLInputSubmit)compMgr.findItsNatComponentById("inputSubmitId");
View Full Code Here

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

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

        input.addEventListener("click",this);

        ButtonModel model = input.getButtonModel();
        model.addChangeListener(this);
    }
View Full Code Here

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

    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

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

    {
        // 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();
        if (type.equals("click"))
        {
            input.focus();
        }
        else if (type.equals("focus"))
        {
            input.blur();
        }
        else if (type.equals("blur"))
        {
            HTMLTextAreaElement elemTextArea = (HTMLTextAreaElement)doc.getElementById("textAreaId");
            ItsNatHTMLTextArea textArea = (ItsNatHTMLTextArea)componentMgr.findItsNatComponent(elemTextArea);
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.