com.tensegrity.gui.swing.control
Class ListRenderer

java.lang.Object
  extended bycom.tensegrity.gui.swing.control.ListRenderer
All Implemented Interfaces:
javax.swing.ListCellRenderer
Direct Known Subclasses:
FontListRenderer

public abstract class ListRenderer
extends java.lang.Object
implements javax.swing.ListCellRenderer

ListRenderer acts as base class for all types of ListCellRenderer implementations. Such a Renderer can be initialized with a list of UIItems and therefore benefits from the overall UIManager concept.

Version:
0.001, 07.01.2003, 15:55:13
Author:
Gilles Iachelini

Field Summary
protected  boolean hasEntryNone
          Indicates if this renderer has an entry for a null/none-element
protected  UIItemList uiItems
          Internal item list.
 
Constructor Summary
protected ListRenderer()
          Empty default constructor.
  ListRenderer(UIItemList uiItems)
          Creates a ListRenderer with a initial itemlist and sets hasEntryNone to true.
  ListRenderer(UIItemList uiItems, boolean hasEntryNone)
          Creates a ListRenderer with a initial itemlist and hasEntryNone-flag.
 
Method Summary
abstract  java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean cellHasFocus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uiItems

protected UIItemList uiItems
Internal item list.


hasEntryNone

protected boolean hasEntryNone
Indicates if this renderer has an entry for a null/none-element

Constructor Detail

ListRenderer

protected ListRenderer()
Empty default constructor.


ListRenderer

public ListRenderer(UIItemList uiItems)
Creates a ListRenderer with a initial itemlist and sets hasEntryNone to true.

Parameters:
uiItems - list of UIItems this renderer should operate on.

ListRenderer

public ListRenderer(UIItemList uiItems,
                    boolean hasEntryNone)
Creates a ListRenderer with a initial itemlist and hasEntryNone-flag.

Parameters:
uiItems - list of UIItems this renderer should operate on.
hasEntryNone - a flag to indicate whether this renderer has a empty- or none-element.
Method Detail

getListCellRendererComponent

public abstract java.awt.Component getListCellRendererComponent(javax.swing.JList list,
                                                                java.lang.Object value,
                                                                int index,
                                                                boolean isSelected,
                                                                boolean cellHasFocus)
Specified by:
getListCellRendererComponent in interface javax.swing.ListCellRenderer


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.