Class DecoratorListCellRenderer<O>
- java.lang.Object
-
- org.nuiton.jaxx.runtime.swing.renderer.DecoratorListCellRenderer<O>
-
- All Implemented Interfaces:
ListCellRenderer<O>
- Direct Known Subclasses:
FilteredDecoratorListCellRenderer
public class DecoratorListCellRenderer<O> extends Object implements ListCellRenderer<O>
AListCellRendererwhich compute text with the givendecoratorand leave the hand to thedelegateto perform the visual renderer.- Since:
- 1.7.2
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description protected io.ultreia.java4all.decoration.DecoratordecoratorDecorator to produce text to renderprotected ListCellRenderer<O>delegateDelegate cell renderer
-
Constructor Summary
Constructors Constructor Description DecoratorListCellRenderer(io.ultreia.java4all.decoration.Decorator decorator)DecoratorListCellRenderer(ListCellRenderer<O> delegate, io.ultreia.java4all.decoration.Decorator decorator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectdecorateValue(Object value, int index)ComponentgetListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
-
-
-
Field Detail
-
delegate
protected final ListCellRenderer<O> delegate
Delegate cell renderer
-
decorator
protected final io.ultreia.java4all.decoration.Decorator decorator
Decorator to produce text to render
-
-
Constructor Detail
-
DecoratorListCellRenderer
public DecoratorListCellRenderer(io.ultreia.java4all.decoration.Decorator decorator)
-
DecoratorListCellRenderer
public DecoratorListCellRenderer(ListCellRenderer<O> delegate, 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<O>
-
-