Examples of ItsNatFreeLabel


Examples of org.itsnat.comp.label.ItsNatFreeLabel

    public void load() throws PropertyVetoException
    {
        org.w3c.dom.Document doc = itsNatDoc.getDocument();
        HTMLElement elem = (HTMLElement)doc.getElementById("freeLabelId");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatFreeLabel comp = (ItsNatFreeLabel)componentMgr.findItsNatComponent(elem);

        String text = "Free Label Test";
        comp.setValue(text);
    }
View Full Code Here

Examples of org.itsnat.comp.label.ItsNatFreeLabel

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

Examples of org.itsnat.comp.label.ItsNatFreeLabel

        ItsNatLabel label = (ItsNatLabel)compMgr.findItsNatComponentById("labelId");
        check(label);
        try{ label.setValue("Label"); }catch(Exception ex) { }

        ItsNatFreeLabel freeLabel = (ItsNatFreeLabel)compMgr.findItsNatComponentById("freeLabelId");
        check(freeLabel);
        try{ freeLabel.setValue("Free Label"); }catch(Exception ex) { }

        // Lists

        ItsNatHTMLSelectComboBox selectCombo = (ItsNatHTMLSelectComboBox)compMgr.findItsNatComponentById("selectComboId");
        check(selectCombo);
View Full Code Here

Examples of org.itsnat.comp.label.ItsNatFreeLabel

        return createItsNatFreeLabel(elem,artifacts,execCreateFilters,compMgr);
    }

    public ItsNatFreeLabel createItsNatFreeLabel(Element element,NameValue[] artifacts,boolean execCreateFilters,ItsNatDocComponentManagerImpl compMgr)
    {
        ItsNatFreeLabel comp = null;
        boolean doFilters = hasBeforeAfterCreateItsNatComponentListener(execCreateFilters,compMgr);
        if (doFilters) comp = (ItsNatFreeLabel)processBeforeCreateItsNatComponentListener(element,getCompType(),null,artifacts,compMgr);
        if (comp == null)
            comp = new ItsNatFreeLabelImpl(element,artifacts,compMgr);
        if (doFilters) comp = (ItsNatFreeLabel)processAfterCreateItsNatComponentListener(comp,compMgr);
View Full Code Here

Examples of org.itsnat.comp.label.ItsNatFreeLabel

    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

Examples of org.itsnat.comp.label.ItsNatFreeLabel

    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")); }
    catch(PropertyVetoException ex) { throw new RuntimeException(ex); }

    // ...

    }
View Full Code Here

Examples of org.itsnat.comp.label.ItsNatFreeLabel

        ItsNatHTMLInputTextFormatted inputTextFormat = (ItsNatHTMLInputTextFormatted)componentMgr.addItsNatComponentById("inputTextFormattedId");

        ItsNatLabel label = (ItsNatLabel)componentMgr.findItsNatComponentById("labelId");

        ItsNatFreeLabel freeLabel = (ItsNatFreeLabel)componentMgr.findItsNatComponentById("freeLabelId");

        ItsNatDocumentTemplate docTemplate = null;
        ItsNatListStructure customStruc = new CityListCustomStructure();
        docTemplate.registerArtifact("cityCustomStruc",customStruc);
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.