jaxx.runtime.swing.renderer
Class DecoratorListCellRenderer
java.lang.Object
jaxx.runtime.swing.renderer.DecoratorListCellRenderer
- All Implemented Interfaces:
- ListCellRenderer
public class DecoratorListCellRenderer
- extends Object
- implements ListCellRenderer
A ListCellRenderer which compute text with the given decorator
and leave the hand to the delegate to perform the visual renderer.
- Since:
- 1.7.2
- Author:
- tchemit
|
Field Summary |
protected org.nuiton.util.decorator.Decorator<?> |
decorator
Decorator to produce text to render |
protected ListCellRenderer |
delegate
Delegate cell renderer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegate
protected ListCellRenderer delegate
- Delegate cell renderer
decorator
protected org.nuiton.util.decorator.Decorator<?> decorator
- Decorator to produce text to render
DecoratorListCellRenderer
public DecoratorListCellRenderer(org.nuiton.util.decorator.Decorator<?> decorator)
DecoratorListCellRenderer
public DecoratorListCellRenderer(ListCellRenderer delegate,
org.nuiton.util.decorator.Decorator<?> decorator)
getListCellRendererComponent
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
- Specified by:
getListCellRendererComponent in interface ListCellRenderer
Copyright © 2008-2012 CodeLutin. All Rights Reserved.