jaxx.runtime.swing.renderer
Class MultiDecoratorListCellRenderer
java.lang.Object
jaxx.runtime.swing.renderer.MultiDecoratorListCellRenderer
- All Implemented Interfaces:
- javax.swing.ListCellRenderer
public class MultiDecoratorListCellRenderer
- extends java.lang.Object
- implements javax.swing.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 javax.swing.ListCellRenderer |
delegate
Delegate cell renderer |
protected java.util.List<java.lang.Class<?>> |
types
accepted types |
|
Method Summary |
java.awt.Component |
getListCellRendererComponent(javax.swing.JList list,
java.lang.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 |
delegate
protected javax.swing.ListCellRenderer delegate
- Delegate cell renderer
types
protected java.util.List<java.lang.Class<?>> types
- accepted types
decorators
protected Decorator<?>[] decorators
- decorators for accepted types
MultiDecoratorListCellRenderer
public MultiDecoratorListCellRenderer(javax.swing.ListCellRenderer delegate,
JXPathDecorator<?>... decorator)
MultiDecoratorListCellRenderer
public MultiDecoratorListCellRenderer(JXPathDecorator<?>... decorator)
getListCellRendererComponent
public java.awt.Component getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
- Specified by:
getListCellRendererComponent in interface javax.swing.ListCellRenderer
Copyright © 2008-2009 CodeLutin. All Rights Reserved.