Examples of ItsNatHTMLTextArea


Examples of org.itsnat.comp.text.ItsNatHTMLTextArea

        return null;
    }

    public ItsNatHTMLTextArea createItsNatHTMLTextArea(HTMLTextAreaElement element,NameValue[] artifacts,boolean execCreateFilters,ItsNatStfulDocComponentManagerImpl compMgr)
    {
        ItsNatHTMLTextArea comp = null;
        boolean doFilters = hasBeforeAfterCreateItsNatComponentListener(execCreateFilters,compMgr);
        if (doFilters) comp = (ItsNatHTMLTextArea)processBeforeCreateItsNatComponentListener(element,getCompType(),null,artifacts,compMgr);
        if (comp == null)
            comp = new ItsNatHTMLTextAreaImpl(element,artifacts,compMgr);
        if (doFilters) comp = (ItsNatHTMLTextArea)processAfterCreateItsNatComponentListener(comp,compMgr);
View Full Code Here

Examples of org.itsnat.comp.text.ItsNatHTMLTextArea

        return (ItsNatHTMLTextArea)compEditor;
    }

    public Object getCellEditorValue()
    {
        ItsNatHTMLTextArea compEditor = getItsNatHTMLTextArea();
        return compEditor.getText();
    }
View Full Code Here

Examples of org.itsnat.comp.text.ItsNatHTMLTextArea

    }

    public void preSetValue(Object value)
    {
        String text = value.toString();
        ItsNatHTMLTextArea compEditor = getItsNatHTMLTextArea();
        HTMLTextAreaElement elem = compEditor.getHTMLTextAreaElement();

        int maxNumCols = 1;
        int rows = 0;
        int cols = 0;
        for(int i = 0; i < text.length(); i++)
View Full Code Here

Examples of org.itsnat.comp.text.ItsNatHTMLTextArea

    }

    public void setValue(Object value)
    {
        String text = value.toString();
        ItsNatHTMLTextArea compEditor = getItsNatHTMLTextArea();
        compEditor.setText(text);
    }
View Full Code Here

Examples of org.itsnat.comp.text.ItsNatHTMLTextArea

            ItsNatHTMLInputTextFormatted textInputFormatted = compMgr.createItsNatHTMLInputTextFormatted(null,null);
            shared(3,comp,textInputFormatted);

            comp = (ItsNatHTMLLabel)compMgr.createItsNatComponentById("labelId5");
            comp.setValue("Any \n Text");
            ItsNatHTMLTextArea textArea = compMgr.createItsNatHTMLTextArea(null,null);
            shared(4,comp,textArea);
        }
        catch(PropertyVetoException ex)
        {
            throw new RuntimeException(ex);
View Full Code Here

Examples of org.itsnat.comp.text.ItsNatHTMLTextArea

        final HTMLInputElement inputText = (HTMLInputElement)inputList.item(0);
        final ItsNatHTMLInputText inputTextComp = (ItsNatHTMLInputText)compMgr.createItsNatComponent(inputText);
        inputTextComp.setText("Hello");

        final HTMLTextAreaElement textArea = (HTMLTextAreaElement)elem.getElementsByTagName("textarea").item(0);
        final ItsNatHTMLTextArea textAreaComp = (ItsNatHTMLTextArea)compMgr.createItsNatComponent(textArea);
        textAreaComp.setText("Hello");

        final HTMLInputElement inputCheck = (HTMLInputElement)inputList.item(1);
        final ItsNatHTMLInputCheckBox inputCheckComp = (ItsNatHTMLInputCheckBox)compMgr.createItsNatComponent(inputCheck);
        inputCheckComp.setSelected(false);

        final HTMLInputElement inputRadio1 = (HTMLInputElement)inputList.item(2);
        final ItsNatHTMLInputRadio inputRadioComp1 = (ItsNatHTMLInputRadio)compMgr.createItsNatComponent(inputRadio1);
        inputRadioComp1.setSelected(false);

        final HTMLInputElement inputRadio2 = (HTMLInputElement)inputList.item(3);
        final ItsNatHTMLInputRadio inputRadioComp2 = (ItsNatHTMLInputRadio)compMgr.createItsNatComponent(inputRadio2);
        inputRadioComp2.setSelected(false);

        EventListener listenerExit = new EventListenerSerial()
        {
            public void handleEvent(Event evt)
            {
                selectComp.dispose();
                inputTextComp.dispose();
                textAreaComp.dispose();
                inputCheckComp.dispose();
                inputRadioComp1.dispose();
                inputRadioComp2.dispose();

                ((EventTarget)linkCheckServ).removeEventListener("click",listenerNothing,false);
View Full Code Here

Examples of org.itsnat.comp.text.ItsNatHTMLTextArea

        ItsNatHTMLInputTextFormatted inputTextFormat = (ItsNatHTMLInputTextFormatted)compMgr.findItsNatComponentById("inputTextFormattedId");
        check(inputTextFormat);
        try{ inputTextFormat.setValue("Input Text Formatted"); }catch(Exception ex) { }

        // Text Area
        ItsNatHTMLTextArea textArea = (ItsNatHTMLTextArea)compMgr.findItsNatComponentById("textAreaId");
        check(textArea);
        textArea.setText("Text Area");

        // Labels

        ItsNatLabel label = (ItsNatLabel)compMgr.findItsNatComponentById("labelId");
        check(label);
View Full Code Here

Examples of org.itsnat.comp.text.ItsNatHTMLTextArea

            ItsNatHTMLInputTextFormatted textInputFormatted = compMgr.createItsNatHTMLInputTextFormatted(null,null);
            shared(3,comp,textInputFormatted);

            comp = (ItsNatFreeLabel)compMgr.createItsNatComponentById("labelId5","freeLabel",null);
            comp.setValue("Any \n Text");
            ItsNatHTMLTextArea textArea = compMgr.createItsNatHTMLTextArea(null,null);
            shared(4,comp,textArea);
        }
        catch(PropertyVetoException ex)
        {
            throw new RuntimeException(ex);
View Full Code Here

Examples of org.itsnat.comp.text.ItsNatHTMLTextArea

    public void initTextArea(ItsNatServletRequest request)
    {
        org.w3c.dom.Document doc = itsNatDoc.getDocument();
        HTMLTextAreaElement elem = (HTMLTextAreaElement)doc.getElementById("textAreaId");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLTextArea comp = (ItsNatHTMLTextArea)componentMgr.findItsNatComponent(elem);
        PlainDocument dataModel = new PlainDocument();
        comp.setDocument(dataModel);

        comp.setText("Initial Text");

        comp.addEventListener("change",this);
        if (!BrowserUtil2.isS60WebKit(request)) // Symbian detecta como teclas los movimientos del cursor, al final no se env�a el change
            comp.addEventListener("keydown",this);
        comp.addEventListener("keyup",this);
        comp.addEventListener("keypress",this);
       
        dataModel.addDocumentListener(this);
    }
View Full Code Here

Examples of org.itsnat.comp.text.ItsNatHTMLTextArea

    {
        // Evento "change" o "keyup" o "keydown"
        ItsNatDOMStdEvent itsNatEvent = (ItsNatDOMStdEvent)evt;
        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)itsNatEvent.getItsNatDocument();
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLTextArea comp = (ItsNatHTMLTextArea)componentMgr.findItsNatComponent((Node)evt.getCurrentTarget());

        if (evt.getType().equals("change"))
            comp.setText(comp.getText() + "-ok-" ); // Para testear que hemos recibido el valor del cliente y que podemos cambiarlo desde el servidor. Al llegar al navegador no provoca a su vez un nuevo evento change pues el evento est� asociado a la p�rdida de foco (lo cual no ocurre en la actualizaci�n via JavaScript)

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

        String type = evt.getType();
        if (type.equals("keyup") || type.equals("keydown"))
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.