jaxx.runtime.swing.renderer
Class DecoratorListCellRenderer

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

public class DecoratorListCellRenderer
extends Object
implements ListCellRenderer

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

Since:
1.7.2
Author:
tchemit

Field Summary
protected  org.nuiton.util.decorator.Decorator<?> decorator
          Decorator to produce text to render
protected  ListCellRenderer delegate
          Delegate cell renderer
 
Constructor Summary
DecoratorListCellRenderer(org.nuiton.util.decorator.Decorator<?> decorator)
           
DecoratorListCellRenderer(ListCellRenderer delegate, org.nuiton.util.decorator.Decorator<?> 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


decorator

protected org.nuiton.util.decorator.Decorator<?> decorator
Decorator to produce text to render

Constructor Detail

DecoratorListCellRenderer

public DecoratorListCellRenderer(org.nuiton.util.decorator.Decorator<?> decorator)

DecoratorListCellRenderer

public DecoratorListCellRenderer(ListCellRenderer delegate,
                                 org.nuiton.util.decorator.Decorator<?> 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-2012 CodeLutin. All Rights Reserved.