Package org.itsnat.comp.list

Examples of org.itsnat.comp.list.ItsNatFreeComboBox


        initTabPermalink(featShowDoc.getExampleTabPermalinkElement(),hasExample(),"ex");
        initTabPermalink(featShowDoc.getCodeTabPermalinkElement(),hasSourceCode(),"code");
        initTabPermalink(featShowDoc.getDocTabPermalinkElement(),hasExplanation(),"doc");

        ItsNatFreeComboBox tabsCombo = featShowDoc.getTabsComboBox();
        tabsCombo.addItemListener(selPanelListener);
        tabsCombo.setSelectedIndex(-1); // Ensures none is selected

        int panel;
        if (getItsNatDocument().isLoading())
        {
            // This way we directly show the target panel,
View Full Code Here


    public void exitFeature()
    {
        endCurrentPanel();

        ItsNatFreeComboBox tabsCombo = featShowDoc.getTabsComboBox();
        tabsCombo.removeItemListener(selPanelListener);
        tabsCombo.setSelectedIndex(-1);
    }
View Full Code Here

            link.setHref("javascript:void(0);");
    }

    public void selectPanel(int panel)
    {
        ItsNatFreeComboBox tabsCombo = featShowDoc.getTabsComboBox();
        tabsCombo.setSelectedIndex(panel);
    }
View Full Code Here

        return "freeComboBox";
    }

    public ItsNatFreeComboBox createItsNatFreeComboBox(Element element,ItsNatListStructure structure,NameValue[] artifacts,boolean execCreateFilters,ItsNatDocComponentManagerImpl compMgr)
    {
        ItsNatFreeComboBox comp = null;
        boolean doFilters = hasBeforeAfterCreateItsNatComponentListener(execCreateFilters,compMgr);
        if (doFilters) comp = (ItsNatFreeComboBox)processBeforeCreateItsNatComponentListener(element,getCompType(),getUseStructureParamArray(structure),artifacts,compMgr);
        if (comp == null)
            comp = new ItsNatFreeComboBoxImpl(element,structure,artifacts,compMgr);
        if (doFilters) comp = (ItsNatFreeComboBox)processAfterCreateItsNatComponentListener(comp,compMgr);
View Full Code Here

        ItsNatHTMLSelectMult selectList = (ItsNatHTMLSelectMult)compMgr.findItsNatComponentById("selectListId");
        check(selectList);
        ((DefaultListModel)selectList.getListModel()).addElement("Option 1");
        ((DefaultListModel)selectList.getListModel()).addElement("Option 2");

        ItsNatFreeComboBox freeCombo = (ItsNatFreeComboBox)compMgr.findItsNatComponentById("freeComboBoxId");
        check(freeCombo);
        ((MutableComboBoxModel)freeCombo.getComboBoxModel()).addElement("Option 1");
        ((MutableComboBoxModel)freeCombo.getComboBoxModel()).addElement("Option 2");

        ItsNatFreeListMultSel freeList = (ItsNatFreeListMultSel)compMgr.findItsNatComponentById("freeListId");
        check(freeList);
        ((DefaultListModel)freeList.getListModel()).addElement("Option 1");
        ((DefaultListModel)freeList.getListModel()).addElement("Option 2");
View Full Code Here

    public static void LISTS_COMBO_BOXES_2()
    {
        ItsNatDocument itsNatDoc = null;
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();

        ItsNatFreeComboBox comboComp = (ItsNatFreeComboBox)componentMgr.createItsNatComponentById("compId","freeComboBox",null);

        DefaultComboBoxModel dataModel = (DefaultComboBoxModel)comboComp.getComboBoxModel();

        // ...
        comboComp.addItemListener(new ComboBoxSelectionDecorator(comboComp));

        dataModel.setSelectedItem("Segovia");

        EventListener evtListener = null;
         // ...
        comboComp.addEventListener("click",evtListener);
    }
View Full Code Here

    ItsNatDocument itsNatDoc = null;
    ItsNatComponentManager compMgr = itsNatDoc.getItsNatComponentManager();
    Document doc = itsNatDoc.getDocument();

    Element compElem = doc.getElementById("compId");
    ItsNatFreeComboBox comboComp = compMgr.createItsNatFreeComboBox(compElem, null, null);

    DefaultComboBoxModel dataModel = (DefaultComboBoxModel)comboComp.getComboBoxModel();
    dataModel.addElement("Madrid");
    dataModel.addElement("Sevilla");
    dataModel.addElement("Segovia");
    dataModel.addElement("Barcelona");
View Full Code Here

TOP

Related Classes of org.itsnat.comp.list.ItsNatFreeComboBox

Copyright © 2018 www.massapicom. 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.