jaxx.runtime.swing.renderer
Class DecoratorProviderListCellRenderer

java.lang.Object
  extended by jaxx.runtime.swing.renderer.DecoratorProviderListCellRenderer
All Implemented Interfaces:
ListCellRenderer

public class DecoratorProviderListCellRenderer
extends Object
implements ListCellRenderer

A ListCellRenderer which use decorators from the provider to 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
protected  ListCellRenderer delegate
          Delegate cell renderer
protected  DecoratorProvider provider
          provider of decorators
 
Constructor Summary
DecoratorProviderListCellRenderer(DecoratorProvider provider)
           
DecoratorProviderListCellRenderer(ListCellRenderer delegate, DecoratorProvider provider)
           
 
Method Summary
 Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected ListCellRenderer delegate
Delegate cell renderer


provider

protected DecoratorProvider provider
provider of decorators

Constructor Detail

DecoratorProviderListCellRenderer

public DecoratorProviderListCellRenderer(DecoratorProvider provider)

DecoratorProviderListCellRenderer

public DecoratorProviderListCellRenderer(ListCellRenderer delegate,
                                         DecoratorProvider provider)
Method Detail

getListCellRendererComponent

public Component getListCellRendererComponent(JList list,
                                              Object value,
                                              int index,
                                              boolean isSelected,
                                              boolean cellHasFocus)
Specified by:
getListCellRendererComponent in interface ListCellRenderer


Copyright © 2008-2010 CodeLutin. All Rights Reserved.