|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectolg.csv.bean.impl.CellProcessor<B>
B - the entity typepublic final class CellProcessor<B>
This class allows to format a column cell from entity properties values.
| Field Summary | |
|---|---|
private String |
name
column header name. |
private PropertyFormatter |
propertyFormatter
formatter to rendering the entity properties as value of a cell. |
private int |
rang
column number. |
| Constructor Summary | |
|---|---|
CellProcessor(String rang,
String name,
PropertyFormatter propertyFormatter)
|
|
| Method Summary | |
|---|---|
int |
compareTo(CellProcessor<B> columnFormatter)
Comparison is based on the rang field. |
boolean |
equals(Object obj)
|
Cell |
getHeader()
Provides a header cell. |
String |
getName()
Get the column header name. |
PropertyFormatter |
getPropertyFormatter()
Returns the formatter dedicated to rendering the entity properties as value of column cell. |
int |
getRang()
Returns the column num. |
int |
hashCode()
|
void |
setName(String name)
Set the column header name. |
void |
setPropertyFormatter(PropertyFormatter propertyFormatter)
Sets the formatter dedicated to format entity properties as cell value. |
void |
setRang(int rang)
Sets the column num. |
Cell |
transform(B e)
Product a cell from a bean. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int rang
private String name
private PropertyFormatter propertyFormatter
| Constructor Detail |
|---|
public CellProcessor(String rang,
String name,
PropertyFormatter propertyFormatter)
rang - column numbername - column header namepropertyFormatter - the formatter to rendering the entity properties as value of
column cell| Method Detail |
|---|
public int getRang()
public String getName()
public PropertyFormatter getPropertyFormatter()
public void setRang(int rang)
rang - the column num.public void setName(String name)
name - the header.public void setPropertyFormatter(PropertyFormatter propertyFormatter)
propertyFormatter - the formatter.public int compareTo(CellProcessor<B> columnFormatter)
compareTo in interface Comparable<CellProcessor<B>>public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic Cell transform(B e)
transform in interface ICellProcessor<B>e - the bean.
public Cell getHeader()
getHeader in interface ICellProcessor<B>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||