|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.control.ListRenderer
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.
| 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 |
protected UIItemList uiItems
protected boolean hasEntryNone
| Constructor Detail |
protected ListRenderer()
public ListRenderer(UIItemList uiItems)
hasEntryNone to true.
uiItems - list of UIItems this renderer should operate on.
public ListRenderer(UIItemList uiItems,
boolean hasEntryNone)
hasEntryNone-flag.
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 |
public abstract java.awt.Component getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
getListCellRendererComponent in interface javax.swing.ListCellRenderer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||