public static class SampleCategoryComponent.SampleCategoryRenderer<C extends Serializable> extends Object implements TableCellRenderer
SampleCategory in a table cell.| Modifier and Type | Field and Description |
|---|---|
protected org.nuiton.decorator.Decorator<C> |
categoryDecorator |
protected Color |
computedWeightColor |
protected TableCellRenderer |
delegate |
protected WeightUnit |
weightUnit |
| Constructor and Description |
|---|
SampleCategoryComponent.SampleCategoryRenderer(TableCellRenderer delegate,
org.nuiton.decorator.Decorator<C> categoryDecorator,
Color computedWeightColor,
WeightUnit weightUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getPrefixText(SampleCategory<C> sampleCategory) |
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column) |
protected String |
getValueText(SampleCategory<C> sampleCategory) |
protected final TableCellRenderer delegate
protected final org.nuiton.decorator.Decorator<C extends Serializable> categoryDecorator
protected final Color computedWeightColor
protected final WeightUnit weightUnit
public SampleCategoryComponent.SampleCategoryRenderer(TableCellRenderer delegate, org.nuiton.decorator.Decorator<C> categoryDecorator, Color computedWeightColor, WeightUnit weightUnit)
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent in interface TableCellRendererprotected String getPrefixText(SampleCategory<C> sampleCategory)
protected String getValueText(SampleCategory<C> sampleCategory)
Copyright © 2012–2015 Ifremer. All rights reserved.