public class MultiDecoratorListCellRenderer extends Object implements ListCellRenderer
ListCellRenderer which compute text with the matching decorator
from decorators and leave the hand to the delegate to
perform the visual renderer.| Modifier and Type | Field and Description |
|---|---|
protected org.nuiton.decorator.Decorator<?>[] |
decorators
decorators for accepted types
|
protected ListCellRenderer |
delegate
Delegate cell renderer
|
protected List<Class<?>> |
types
accepted types
|
| Constructor and Description |
|---|
MultiDecoratorListCellRenderer(org.nuiton.decorator.JXPathDecorator<?>... decorator) |
MultiDecoratorListCellRenderer(ListCellRenderer delegate,
org.nuiton.decorator.JXPathDecorator<?>... decorator) |
| Modifier and Type | Method and Description |
|---|---|
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus) |
protected final ListCellRenderer delegate
protected org.nuiton.decorator.Decorator<?>[] decorators
public MultiDecoratorListCellRenderer(ListCellRenderer delegate, org.nuiton.decorator.JXPathDecorator<?>... decorator)
public MultiDecoratorListCellRenderer(org.nuiton.decorator.JXPathDecorator<?>... decorator)
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
getListCellRendererComponent in interface ListCellRendererCopyright © 2008–2019 Ultreia.io. All rights reserved.