Package jaxx.runtime.swing.renderer
Class DecoratorListCellRenderer
- java.lang.Object
-
- jaxx.runtime.swing.renderer.DecoratorListCellRenderer
-
- All Implemented Interfaces:
ListCellRenderer
- Direct Known Subclasses:
FilteredDecoratorListCellRenderer
public class DecoratorListCellRenderer extends Object implements ListCellRenderer
AListCellRendererwhich compute text with the givendecoratorand leave the hand to thedelegateto perform the visual renderer.- Since:
- 1.7.2
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Field Summary
Fields Modifier and Type Field Description protected org.nuiton.decorator.Decorator<?>decoratorDecorator to produce text to renderprotected ListCellRendererdelegateDelegate cell renderer
-
Constructor Summary
Constructors Constructor Description DecoratorListCellRenderer(ListCellRenderer delegate, org.nuiton.decorator.Decorator<?> decorator)DecoratorListCellRenderer(org.nuiton.decorator.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 ListCellRenderer delegate
Delegate cell renderer
-
decorator
protected org.nuiton.decorator.Decorator<?> decorator
Decorator to produce text to render
-
-
Constructor Detail
-
DecoratorListCellRenderer
public DecoratorListCellRenderer(org.nuiton.decorator.Decorator<?> decorator)
-
DecoratorListCellRenderer
public DecoratorListCellRenderer(ListCellRenderer delegate, org.nuiton.decorator.Decorator<?> decorator)
-
-
Method Detail
-
getListCellRendererComponent
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
- Specified by:
getListCellRendererComponentin interfaceListCellRenderer
-
-