Examples of ItsNatHTMLComponentManager


Examples of org.itsnat.comp.ItsNatHTMLComponentManager

    }

    public void startExamplePanel()
    {
        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)getItsNatDocument();
        ItsNatHTMLComponentManager compMgr = itsNatDoc.getItsNatHTMLComponentManager();

        this.useSingleClickComp = (ItsNatHTMLInputCheckBox)compMgr.createItsNatComponentById("useSingleClickId");
        useSingleClickComp.addEventListener("click",this);

        this.comp = (ItsNatFreeLabel)compMgr.createItsNatComponentById("labelId","freeLabel",null);

        ItsNatLabelRenderer renderer = new PersonCustomLabelRenderer();
        comp.setItsNatLabelRenderer(renderer);

        try { comp.setValue(new Person("Jose M.","Arranz")); }
View Full Code Here

Examples of org.itsnat.comp.ItsNatHTMLComponentManager

        // Java ni la del navegador aumentan continuamente.

        ItsNatDOMStdEvent itsNatEvent = (ItsNatDOMStdEvent)evt;
        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)itsNatEvent.getItsNatDocument();
        HTMLDocument doc = itsNatDoc.getHTMLDocument();
        ItsNatHTMLComponentManager componentMgr = itsNatDoc.getItsNatHTMLComponentManager();

        Element elem = doc.getElementById("componentGCTestId2");
        Element child = doc.createElement("b");
        elem.appendChild(child);

        for(int i = 0; i < 1000; i++)
        {
            // El componente por defecto se asocia s� mismo como listener al evento "click"
            ItsNatFreeButtonNormal comp = componentMgr.createItsNatFreeButtonNormal(child,null);
            weakMap.put(comp,null);
        }

        elem.removeChild(child);
View Full Code Here

Examples of org.itsnat.comp.ItsNatHTMLComponentManager

    }

    public void startExamplePanel()
    {
        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)getItsNatDocument();
        ItsNatHTMLComponentManager compMgr = itsNatDoc.getItsNatHTMLComponentManager();

        this.useSingleClickComp = (ItsNatHTMLInputCheckBox)compMgr.createItsNatComponentById("useSingleClickId");
        useSingleClickComp.addEventListener("click",this);

        try
        {
            ItsNatFreeLabel comp;

            comp = (ItsNatFreeLabel)compMgr.createItsNatComponentById("labelId1","freeLabel",null);
            comp.setValue("Any Text");
            ItsNatHTMLInputText textInput = compMgr.createItsNatHTMLInputText(null,null);
            shared(0,comp,textInput);

            comp = (ItsNatFreeLabel)compMgr.createItsNatComponentById("labelId2","freeLabel",null);
            comp.setValue(Boolean.TRUE);
            ItsNatHTMLInputCheckBox checkBox = compMgr.createItsNatHTMLInputCheckBox(null,null);
            shared(1,comp,checkBox);

            comp = (ItsNatFreeLabel)compMgr.createItsNatComponentById("labelId3","freeLabel",null);
            comp.setValue(new Integer(3));
            ItsNatHTMLSelectComboBox comboBox = compMgr.createItsNatHTMLSelectComboBox(null,null);
            DefaultComboBoxModel model = (DefaultComboBoxModel)comboBox.getComboBoxModel();
            for(int i=0; i < 5; i++) model.addElement(new Integer(i));
            shared(2,comp,comboBox);

            comp = (ItsNatFreeLabel)compMgr.createItsNatComponentById("labelId4","freeLabel",null);
            comp.setValue(new Date());
            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.ItsNatHTMLComponentManager

    }

    public void shared(int i,ItsNatFreeLabel comp,ItsNatComponent editorComp)
    {
        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)getItsNatDocument();
        ItsNatHTMLComponentManager compMgr = itsNatDoc.getItsNatHTMLComponentManager();
        ItsNatLabelEditor editor = compMgr.createDefaultItsNatLabelEditor(editorComp);
        comp.setItsNatLabelEditor(editor);
        comp.addEventListener("click",this);
        comp.addPropertyChangeListener("value",this);
        compList[i] = comp;
    }
View Full Code Here

Examples of org.itsnat.comp.ItsNatHTMLComponentManager

        catch(PropertyVetoException ex)
        {
            throw new RuntimeException(ex);
        }

        ItsNatHTMLComponentManager componentMgr = itsNatDoc.getItsNatHTMLComponentManager();
        this.useSingleClickComp = (ItsNatHTMLInputCheckBox)componentMgr.findItsNatComponentById("testItemEditorSingleClickId");
        useSingleClickComp.addEventListener("click",this);
    }
View Full Code Here

Examples of org.itsnat.comp.ItsNatHTMLComponentManager

    public ItsNatLabel getItsNatLabel(String id)
    {
        Document doc = itsNatDoc.getDocument();
        HTMLElement labelElem = (HTMLElement)doc.getElementById(id);
        ItsNatHTMLComponentManager componentMgr = itsNatDoc.getItsNatHTMLComponentManager();
        return (ItsNatLabel)componentMgr.findItsNatComponent(labelElem);
    }
View Full Code Here

Examples of org.itsnat.comp.ItsNatHTMLComponentManager

        labelShared(6,label,textInputFormatted);
    }

    public void labelShared(int i,ItsNatLabel label,ItsNatHTMLElementComponent compEditor)
    {
        ItsNatHTMLComponentManager componentMgr = itsNatDoc.getItsNatHTMLComponentManager();
        ItsNatLabelEditor editor = componentMgr.createDefaultItsNatLabelEditor(compEditor);
        label.setItsNatLabelEditor(editor);
        label.addEventListener("dblclick",this);
        label.addPropertyChangeListener("value",this);

        labels[i - 1] = label;
View Full Code Here

Examples of org.itsnat.comp.ItsNatHTMLComponentManager

    }

    public void startExamplePanel()
    {
        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)getItsNatDocument();
        ItsNatHTMLComponentManager compMgr = itsNatDoc.getItsNatHTMLComponentManager();

        this.useSingleClickComp = (ItsNatHTMLInputCheckBox)compMgr.createItsNatComponentById("useSingleClickId");
        useSingleClickComp.addEventListener("click",this);

        this.comp = (ItsNatFreeLabel)compMgr.createItsNatComponentById("labelId","freeLabel",null);
        try { comp.setValue(new Person("Jose M.","Arranz")); }
        catch(PropertyVetoException ex) { throw new RuntimeException(ex); }

        ItsNatLabelEditor editor = new PersonCustomLabelEditor(comp);
        comp.setItsNatLabelEditor(editor);
View Full Code Here

Examples of org.itsnat.comp.ItsNatHTMLComponentManager

    }

    public void startExamplePanel()
    {
        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)getItsNatDocument();
        ItsNatHTMLComponentManager compMgr = itsNatDoc.getItsNatHTMLComponentManager();

        this.useSingleClickComp = (ItsNatHTMLInputCheckBox)compMgr.createItsNatComponentById("useSingleClickId");
        useSingleClickComp.addEventListener("click",this);

        try
        {
            ItsNatHTMLLabel comp;

            comp = (ItsNatHTMLLabel)compMgr.createItsNatComponentById("labelId1");
            comp.setValue("Any Text");
            ItsNatHTMLInputText textInput = compMgr.createItsNatHTMLInputText(null,null);
            shared(0,comp,textInput);

            comp = (ItsNatHTMLLabel)compMgr.createItsNatComponentById("labelId2");
            comp.setValue(Boolean.TRUE);
            ItsNatHTMLInputCheckBox checkBox = compMgr.createItsNatHTMLInputCheckBox(null,null);
            checkBox.getElement().setAttribute("style","width:20px;height:20px;");
            shared(1,comp,checkBox);

            comp = (ItsNatHTMLLabel)compMgr.createItsNatComponentById("labelId3");
            comp.setValue(new Integer(3));
            ItsNatHTMLSelectComboBox comboBox = compMgr.createItsNatHTMLSelectComboBox(null,null);
            DefaultComboBoxModel model = (DefaultComboBoxModel)comboBox.getComboBoxModel();
            for(int i=0; i < 5; i++) model.addElement(new Integer(i));
            shared(2,comp,comboBox);

            comp = (ItsNatHTMLLabel)compMgr.createItsNatComponentById("labelId4");
            comp.setValue(new Date());
            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.ItsNatHTMLComponentManager

    }

    public void shared(int i, ItsNatHTMLLabel comp,ItsNatComponent editorComp)
    {
        ItsNatHTMLDocument itsNatDoc = (ItsNatHTMLDocument)getItsNatDocument();
        ItsNatHTMLComponentManager compMgr = itsNatDoc.getItsNatHTMLComponentManager();
        ItsNatLabelEditor editor = compMgr.createDefaultItsNatLabelEditor(editorComp);
        comp.setItsNatLabelEditor(editor);
        comp.addEventListener("click",this);
        comp.addPropertyChangeListener("value",this);
        compList[i] = comp;
    }
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.