jaxx.runtime.swing.renderer
Class MultiDecoratorListCellRenderer
java.lang.Object
jaxx.runtime.swing.renderer.MultiDecoratorListCellRenderer
- All Implemented Interfaces:
- ListCellRenderer
public class MultiDecoratorListCellRenderer
- extends Object
- implements ListCellRenderer
A ListCellRenderer which compute text with the matching decorator
from decorators and leave the hand to the delegate to
perform the visual renderer.
- Since:
- 2.0.0
- Author:
- tchemit
| 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
types
protected List<Class<?>> types
- accepted types
decorators
protected org.nuiton.util.decorator.Decorator<?>[] decorators
- decorators for accepted types
MultiDecoratorListCellRenderer
public MultiDecoratorListCellRenderer(ListCellRenderer delegate,
org.nuiton.util.decorator.JXPathDecorator<?>... decorator)
MultiDecoratorListCellRenderer
public MultiDecoratorListCellRenderer(org.nuiton.util.decorator.JXPathDecorator<?>... 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.