Class MultiDecoratorTableCelleRenderer
- java.lang.Object
-
- org.nuiton.jaxx.runtime.swing.renderer.MultiDecoratorTableCelleRenderer
-
- All Implemented Interfaces:
TableCellRenderer
public class MultiDecoratorTableCelleRenderer extends Object implements TableCellRenderer
ATableCellRendererwhich compute text with the matching decorator fromdecoratorsbased on the type of value and leave the hand to thedelegateto perform the visual renderer.- Since:
- 2.0.0
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description protected org.nuiton.decorator.Decorator<?>[]decoratorsdecorators for accepted typesprotected TableCellRendererdelegateDelegate cell rendererprotected List<Class<?>>typesaccepted types
-
Constructor Summary
Constructors Constructor Description MultiDecoratorTableCelleRenderer(TableCellRenderer delegate, org.nuiton.decorator.JXPathDecorator<?>... decorator)MultiDecoratorTableCelleRenderer(org.nuiton.decorator.JXPathDecorator<?>... decorator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentgetTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasfocus, int row, int column)
-
-
-
Field Detail
-
delegate
protected final TableCellRenderer delegate
Delegate cell renderer
-
decorators
protected org.nuiton.decorator.Decorator<?>[] decorators
decorators for accepted types
-
-
Constructor Detail
-
MultiDecoratorTableCelleRenderer
public MultiDecoratorTableCelleRenderer(org.nuiton.decorator.JXPathDecorator<?>... decorator)
-
MultiDecoratorTableCelleRenderer
public MultiDecoratorTableCelleRenderer(TableCellRenderer delegate, org.nuiton.decorator.JXPathDecorator<?>... decorator)
-
-
Method Detail
-
getTableCellRendererComponent
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasfocus, int row, int column)
- Specified by:
getTableCellRendererComponentin interfaceTableCellRenderer
-
-