jaxx.runtime.swing.renderer
Class MultiDecoratorListCellRenderer

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

public class MultiDecoratorListCellRenderer
extends Object
implements ListCellRenderer

A ListCellRenderer which compute text with the matching decorator from decorators and leave the hand to the delegate to perform the visual renderer.

Since:
2.0.0
Author:
chemit

Field Summary
protected  Decorator<?>[] decorators
          decorators for accepted types
protected  ListCellRenderer delegate
          Delegate cell renderer
protected  List<Class<?>> types
          accepted types
 
Constructor Summary
MultiDecoratorListCellRenderer(JXPathDecorator<?>... decorator)
           
MultiDecoratorListCellRenderer(ListCellRenderer delegate, JXPathDecorator<?>... decorator)
           
 
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


types

protected List<Class<?>> types
accepted types


decorators

protected Decorator<?>[] decorators
decorators for accepted types

Constructor Detail

MultiDecoratorListCellRenderer

public MultiDecoratorListCellRenderer(ListCellRenderer delegate,
                                      JXPathDecorator<?>... decorator)

MultiDecoratorListCellRenderer

public MultiDecoratorListCellRenderer(JXPathDecorator<?>... decorator)
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.