Package org.itsnat.comp.list

Examples of org.itsnat.comp.list.ItsNatListCellRenderer


        //dataModel.addListDataListener(this); // A�adimos antes pues queremos que se llame despu�s del interno (renderizado) pues el primero que se llama es el �ltimo

        comp.setListModel(dataModel);

        ItsNatListCellRenderer renderer = new PersonListCellRenderer();
        comp.setItsNatListCellRenderer(renderer);
        comp.setItsNatListCellEditor(null);

        for(int i = 0; i < model.size(); i++)
        {
View Full Code Here


    public void setElementValueAt(int index,Object anObject,boolean isSelected,boolean cellHasFocus,Element optionElem,boolean isNew)
    {
        Element contentElem = getContentElementAt(index,optionElem);
        elementList.prepareRendering(contentElem,isNew);

        ItsNatListCellRenderer renderer = getItsNatListCellRenderer();
        if (renderer != null)
            renderer.renderListCell(getItsNatList(),index,anObject,isSelected,cellHasFocus,contentElem,isNew);
    }
View Full Code Here

        return super.insertElementAtBase(index,anObject);
    }

    public void unrenderList(int index)
    {
        ItsNatListCellRenderer renderer = getItsNatListCellRenderer();
        if (renderer == null) return;

        Element optionElem = getElementAt(index);
        if (optionElem == null) return;

        Element contentElem = getContentElementAt(index,optionElem);
        renderer.unrenderListCell(getItsNatList(),index,contentElem);
    }
View Full Code Here

     * @param toIndex high index (inclusive).
     * @see org.itsnat.core.domutil.ElementListBase#removeElementRange(int,int)
     */
    public void removeElementRange(int fromIndex,int toIndex)
    {
        ItsNatListCellRenderer renderer = getItsNatListCellRenderer();
        if (renderer != null)
        {
            for(int i = fromIndex; i <= toIndex; i++)
                unrenderList(i);
        }
View Full Code Here

        super.removeElementRangeBase(fromIndex,toIndex);
    }

    public void removeAllElements()
    {
        ItsNatListCellRenderer renderer = getItsNatListCellRenderer();
        if (renderer != null)
        {
            int len = getLength();
            for(int i = 0; i < len; i++)
                unrenderList(i);
View Full Code Here

TOP

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

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.