Package org.itsnat.comp

Examples of org.itsnat.comp.ItsNatHTMLComponentManager.createItsNatComponentById()


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

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

        try
        {
            ItsNatHTMLLabel comp;
View Full Code Here


        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");
View Full Code Here

            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);
View Full Code Here

            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);
View Full Code Here

            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");
View Full Code Here

            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)
View Full Code Here

    public static void LABELS()
    {
        ItsNatHTMLDocument itsNatDoc = null;
        ItsNatHTMLComponentManager componentMgr = itsNatDoc.getItsNatHTMLComponentManager();

        ItsNatHTMLLabel label = (ItsNatHTMLLabel)componentMgr.createItsNatComponentById("labelId");
        try { label.setValue(new Integer(3))} // Initial value
        catch(PropertyVetoException ex) { throw new RuntimeException(ex); }

        ItsNatHTMLSelectComboBox editorComp = componentMgr.createItsNatHTMLSelectComboBox(null,null);
        DefaultComboBoxModel model = (DefaultComboBoxModel)editorComp.getComboBoxModel();
View Full Code Here

    public static void LABELS_CUSTOM_EDITOR()
    {
        ItsNatHTMLDocument itsNatDoc = null;
        ItsNatHTMLComponentManager componentMgr = itsNatDoc.getItsNatHTMLComponentManager();

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

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

    public static void LABELS_CUSTOM_RENDERER()
    {
    ItsNatHTMLDocument itsNatDoc = null;
    ItsNatHTMLComponentManager componentMgr = itsNatDoc.getItsNatHTMLComponentManager();

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

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

    try { comp.setValue(new Person("Jose M.","Arranz")); }
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.