Package org.itsnat.comp.list

Examples of org.itsnat.comp.list.ItsNatListUI


        DefaultComboBoxModel tabsModel = (DefaultComboBoxModel)tabsCombo.getComboBoxModel();
        tabsModel.addElement(new NameValue("Example ",new Integer(FeatureTreeNode.EXAMPLE_PANEL)));
        tabsModel.addElement(new NameValue("Source Code ",new Integer(FeatureTreeNode.CODE_PANEL)));
        tabsModel.addElement(new NameValue("Explanation ",new Integer(FeatureTreeNode.DOC_PANEL)));

        ItsNatListUI tabsComboUI = tabsCombo.getItsNatListUI();

        this.exampleTab = tabsComboUI.getElementAt(0);
        this.codeTab = tabsComboUI.getElementAt(1);
        this.docTab = tabsComboUI.getElementAt(2);

        this.exampleTabLink = (HTMLAnchorElement)ItsNatTreeWalker.getFirstChildElement(exampleTab);
        this.codeTabLink = (HTMLAnchorElement)ItsNatTreeWalker.getFirstChildElement(codeTab);
        this.docTabLink = (HTMLAnchorElement)ItsNatTreeWalker.getFirstChildElement(docTab);
View Full Code Here


        this.modeAuto = modeAuto;
    }

    protected void fixTabsComboBox(ItsNatFreeComboBox tabsCombo)
    {
        ItsNatListUI tabsComboUI = tabsCombo.getItsNatListUI();
        Text node;
        node = (Text)tabsComboUI.getElementAt(0).getFirstChild();
        addLinkAsParent(node);
        node = (Text)tabsComboUI.getElementAt(1).getFirstChild();
        addLinkAsParent(node);
        node = (Text)tabsComboUI.getElementAt(2).getFirstChild();
        addLinkAsParent(node);
    }
View Full Code Here

        compUI.removeElementRange(fromIndex,toIndex);
    }

    public Element[] getContentElementList()
    {
        ItsNatListUI compUI = getItsNatListUI();
        int size = compUI.getLength();
        Element[] elemList = new Element[size];
        for(int i = 0; i < size; i++)
            elemList[i] = compUI.getContentElementAt(i);
        return elemList;
    }
View Full Code Here

        removeInternalEventListenerJoystickMode(domListeners,index);
    }

    public void removeInternalEventListenerJoystickMode(ArrayList<ItsNatCompDOMListenersJoystick> domListeners,int index)
    {
        ItsNatListUI compUI = getItsNatListUI();
        Element contentElem = compUI.getContentElementAt(index);

        ItsNatCompDOMListenersJoystickSharedImpl.removeEventListenerJoystick(domListeners, contentElem);
    }
View Full Code Here

        String type = evt.getType();
        if (type.equals("click") || type.equals("mouseup"))
        {
            Node nodeClicked = (Node)evt.getTarget(); // Puede ser un nodo interior del elemento pulsado

            ItsNatListUI compUI = getItsNatListUI();
            ItsNatListCellUI option = compUI.getItsNatListCellUIFromNode(nodeClicked);
            if (option != null) // por si acaso
                processMouseClick((MouseEvent)evt,option);
        }

        super.processDOMEvent(evt);
View Full Code Here

        }
    }

    protected void openEditor(int index)
    {
        ItsNatListUI compUI = getItsNatFreeListMultSel().getItsNatListUI();
        ItsNatListCellUI cellInfo = compUI.getItsNatListCellUIAt(index);
        openEditor(cellInfo);
    }
View Full Code Here

    protected void openEditor(Event evt)
    {
        Node nodeClicked = (Node)evt.getTarget(); // Puede ser un nodo interior del elemento pulsado

        ItsNatListUI compUI = getItsNatFreeListMultSel().getItsNatListUI();
        ItsNatListCellUI cellInfo = compUI.getItsNatListCellUIFromNode(nodeClicked);
        openEditor(cellInfo);
    }
View Full Code Here

    }

    public void decorate(int first,int last)
    {
        ListSelectionModel selModel = listComp.getListSelectionModel();
        ItsNatListUI compUI = listComp.getItsNatListUI();
        for(int i = first; i <= last; i++)
        {
            Element elem = compUI.getElementAt(i);
            boolean selected = selModel.isSelectedIndex(i);
            if (selected)
                elem.setAttribute("fill","#ff0000");
            else
                elem.setAttribute("fill","#0000ff");
View Full Code Here

    }

    public void syncSelectionInServer(int first,int last)
    {
        ListSelectionModel selModel = listComp.getListSelectionModel();
        ItsNatListUI compUI = listComp.getItsNatListUI();
        for(int i = first; i <= last; i++)
        {
            Element elem = compUI.getElementAt(i);
            boolean selected = selModel.isSelectedIndex(i);
            if (selected)
                elem.setAttribute("selected","true");
            else
                elem.removeAttribute("selected");
View Full Code Here

    }

    public void decorate(int first,int last)
    {
        ListSelectionModel selModel = circleList.getListSelectionModel();
        ItsNatListUI compUI = circleList.getItsNatListUI();
        for(int i = first; i <= last; i++)
        {
            Element elem = compUI.getElementAt(i);
            boolean selected = selModel.isSelectedIndex(i);
            if (selected)
                elem.setAttribute("fill","#ff0000");
            else
                elem.setAttribute("fill","#0000ff");
View Full Code Here

TOP

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

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.