Class DecoratorProviderListCellRenderer
- java.lang.Object
-
- org.nuiton.jaxx.runtime.swing.renderer.DecoratorProviderListCellRenderer
-
- All Implemented Interfaces:
ListCellRenderer
public class DecoratorProviderListCellRenderer extends Object implements ListCellRenderer
AListCellRendererwhich use decorators from theproviderto obtain the text to display.The interest of this renderer is to define a unique renderer for your application (put it in JAXXContext) and then use it simply :)
User: chemit Date: 29 oct. 2009 Time: 03:00:53
- Since:
- 2.0.0
- See Also:
DecoratorProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected ListCellRendererdelegateDelegate cell rendererprotected io.ultreia.java4all.decoration.DecoratorProviderproviderprovider of decorators
-
Constructor Summary
Constructors Constructor Description DecoratorProviderListCellRenderer()DecoratorProviderListCellRenderer(ListCellRenderer delegate)
-
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
-
provider
protected final io.ultreia.java4all.decoration.DecoratorProvider provider
provider of decorators
-
-
Constructor Detail
-
DecoratorProviderListCellRenderer
public DecoratorProviderListCellRenderer()
-
DecoratorProviderListCellRenderer
public DecoratorProviderListCellRenderer(ListCellRenderer delegate)
-
-
Method Detail
-
getListCellRendererComponent
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
- Specified by:
getListCellRendererComponentin interfaceListCellRenderer
-
-