Class DynamicRowSheet

java.lang.Object
bld.generator.report.excel.DynamicRowSheet
All Implemented Interfaces:
RowSheet

public abstract class DynamicRowSheet extends Object implements RowSheet
The Class DynamicRowSheet.
DynamicRowSheet is used by classes of type SheetDynamicData, it manages dynamic columns through the "mapValue" field.
mapValue and mapExtraColumnAnnotation(is a field of SheetDynamicData) have the same keys.
Below an example of table generated by merging SheetDynamicData and DynamicRowSheet classes.
column name by field 1 column name by field 2 column name by mapExtraColumnAnnotation 1 column name by mapExtraColumnAnnotation ...N column name by field 3 column name by field ...N
row 1 value by field 1 value by field 2 value by mapValue 1 value by mapValue ...N value by field 3 value by field ...N
row 2 value by field 1 value by field 2 value by mapValue 1 value by mapValue ...N value by field 3 value by field ...N
row N value by field 1 value by field 2 value by mapValue 1 value by mapValue ...N value by field 3 value by field ...N
  • Field Details

  • Constructor Details

    • DynamicRowSheet

      public DynamicRowSheet()
      Instantiates a new dynamic row sheet.
  • Method Details

    • getMapValue

      public Map<String,Object> getMapValue()
      Gets the map value.
      Returns:
      the map value
    • addValue

      public void addValue(String key, Object value)
      Adds the value.
      Parameters:
      key - the key
      value - the value
    • addValues

      public void addValues(Map<String,Object> map)
      Adds the values.
      Parameters:
      map - the map
    • clearMap

      public void clearMap()
      Clear map.