FlowingCode / TwinColGridAddon

TwinColGrid Vaadin Add-on
https://www.flowingcode.com/en/open-source/
Apache License 2.0
7 stars 7 forks source link

Caption is not configurable #97

Closed javier-godoy closed 2 years ago

javier-godoy commented 2 years ago

Caption is not configurable. In order to set a caption, one have to use the constructors that receive a caption:

TwinColGrid(ListDataProvider<T>, String)
TwinColGrid(Collection<T>, String);

If a caption is not wanted, one can pass caption = null to those constructors, or call the other constructors that don't receive a caption.

TwinColGrid()
TwinColGrid(Collection<T>);

In any case, the caption cannot be added, removed, or modified afterwards.

In addition, if we have setCaption we could consider deprecating

TwinColGrid(ListDataProvider<T>, String) and TwinColGrid(Collection<T>, String) in favor of TwinColGrid() and TwinColGrid(Collection<T>) plus setCaption.