Class MultiDecoratorListCellRenderer
- java.lang.Object
-
- org.nuiton.jaxx.runtime.swing.renderer.MultiDecoratorListCellRenderer
-
- All Implemented Interfaces:
ListCellRenderer
public class MultiDecoratorListCellRenderer extends Object implements ListCellRenderer
AListCellRendererwhich compute text with the matching decorator fromdecoratorsand leave the hand to thedelegateto perform the visual renderer.- Since:
- 2.0.0
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description protected io.ultreia.java4all.decoration.Decorator[]decoratorsdecorators for accepted typesprotected ListCellRendererdelegateDelegate cell rendererprotected List<Class<?>>typesaccepted types
-
Constructor Summary
Constructors Constructor Description MultiDecoratorListCellRenderer(io.ultreia.java4all.decoration.Decorator... decorator)MultiDecoratorListCellRenderer(ListCellRenderer delegate, io.ultreia.java4all.decoration.Decorator... decorator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentgetListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
-
-
-
Field Detail
-
delegate
protected final ListCellRenderer delegate
Delegate cell renderer
-
decorators
protected io.ultreia.java4all.decoration.Decorator[] decorators
decorators for accepted types
-
-
Constructor Detail
-
MultiDecoratorListCellRenderer
public MultiDecoratorListCellRenderer(ListCellRenderer delegate, io.ultreia.java4all.decoration.Decorator... decorator)
-
MultiDecoratorListCellRenderer
public MultiDecoratorListCellRenderer(io.ultreia.java4all.decoration.Decorator... decorator)
-
-
Method Detail
-
getListCellRendererComponent
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
- Specified by:
getListCellRendererComponentin interfaceListCellRenderer
-
-