Package org.cyclos.impl.system
Class TabularExportHandlerImpl.CustomColumn
- java.lang.Object
-
- org.cyclos.impl.system.TabularExportHandlerImpl.Column
-
- org.cyclos.impl.system.TabularExportHandlerImpl.CustomColumn
-
- Enclosing class:
- TabularExportHandlerImpl
protected class TabularExportHandlerImpl.CustomColumn extends TabularExportHandlerImpl.Column
A tabular column obtained from a custom function IMPORTANT: remember than the getter will receive the entity and not a data translation proxy so if the getter will return a String it must be translated in the getter because the formatter will not translate it. (e.g voucher type title in vouchers export)
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.system.TabularExportHandlerImpl.Column
formatter, sessionData
-
-
Constructor Summary
Constructors Constructor Description CustomColumn(TabularExportHandlerImpl.ColumnType type, String name, String heading, Function<?,?> getter)CustomColumn(TabularExportHandlerImpl.ColumnType type, String name, MessageKey key, Function<?,?> getter)CustomColumn(Property<?,?> property, String heading, Function<?,?> getter)CustomColumn(Property<?,?> property, MessageKey key, Function<?,?> getter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetValue(Object row)Returns a cell value-
Methods inherited from class org.cyclos.impl.system.TabularExportHandlerImpl.Column
getHeading, getName, getType
-
-
-
-
Constructor Detail
-
CustomColumn
public CustomColumn(TabularExportHandlerImpl.ColumnType type, String name, MessageKey key, Function<?,?> getter)
-
CustomColumn
public CustomColumn(TabularExportHandlerImpl.ColumnType type, String name, String heading, Function<?,?> getter)
-
CustomColumn
public CustomColumn(Property<?,?> property, MessageKey key, Function<?,?> getter)
-
-
Method Detail
-
getValue
public Object getValue(Object row)
Description copied from class:TabularExportHandlerImpl.ColumnReturns a cell value- Specified by:
getValuein classTabularExportHandlerImpl.Column
-
-