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.
Caption is not configurable. In order to set a caption, one have to use the constructors that receive a caption:
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.In any case, the caption cannot be added, removed, or modified afterwards.
In addition, if we have
setCaption
we could consider deprecatingTwinColGrid(ListDataProvider<T>, String)
andTwinColGrid(Collection<T>, String)
in favor ofTwinColGrid()
andTwinColGrid(Collection<T>)
plussetCaption
.