Skip to content

Commit

Permalink
docs: fix javadoc warnings
Browse files Browse the repository at this point in the history
Close #182
  • Loading branch information
javier-godoy committed Nov 6, 2024
1 parent e96f6e3 commit f6ebfaa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public LegacyTwinColGrid(String caption) {
*
* @param dataProvider the data provider, not {@code null}
* @param caption the component caption
* @deprecated Use {@link #TwinColGrid()} and {@link #setDataProvider(ListDataProvider)}, {@link
* #setCaption(String)}
* @deprecated Use {@link TwinColGrid#TwinColGrid()} and
* {@link #setDataProvider(ListDataProvider)}, {@link #setCaption(String)}
*/
@Deprecated
@SuppressWarnings("unchecked")
Expand Down Expand Up @@ -147,7 +147,8 @@ public LegacyTwinColGrid(
*
* @param caption the caption to set, can be {@code null}
* @param options the options, cannot be {@code null}
* @deprecated Use {@link #TwinColGrid(Collection)} and {{@link #setCaption(String)}
* @deprecated Use {@link TwinColGrid#TwinColGrid(Collection)} and
* {{@link TwinColGrid#setCaption(String)}
*/
@Deprecated
@SuppressWarnings("unchecked")
Expand Down Expand Up @@ -338,7 +339,7 @@ public LegacyTwinColGrid<T> addSortableColumn(
* @param itemLabelGenerator the value provider
* @param comparator the in-memory comparator
* @param header the column header
* @param header the column key
* @param key the column key
* @return this instance
*/
@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private void initMoveItemsByDoubleClick() {
/**
* Sets the component caption.
*
* @param captinText the component caption.
* @param captionText the component caption.
*/
public void setCaption(String captionText) {
if (captionText != null) {
Expand Down Expand Up @@ -282,7 +282,7 @@ public String getCaption() {
* Sets orientation for TwinColGridComponent
*
* @param orientation
* @return
* @return this instance for method chaining.
*/
public TwinColGrid<T> withOrientation(Orientation orientation) {
if (this.orientation != orientation) {
Expand Down Expand Up @@ -336,7 +336,7 @@ private Component createContainerLayout() {

private String getLayoutId() {
return Optional.ofNullable(layoutId).orElseGet(()->{
return this.layoutId = "twincol-" + UUID.randomUUID();
return layoutId = "twincol-" + UUID.randomUUID();
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ public TwinColumn<T> setFooter(String labelText) {
* header of each column
* @return this instance, for method chaining
*/
public TwinColumn<T> setHeader(Supplier<Component> footerComponentSupplier) {
availableColumn.setHeader(footerComponentSupplier.get());
selectionColumn.setHeader(footerComponentSupplier.get());
public TwinColumn<T> setHeader(Supplier<Component> headerComponentSupplier) {
availableColumn.setHeader(headerComponentSupplier.get());
selectionColumn.setHeader(headerComponentSupplier.get());
return this;
}

Expand All @@ -210,7 +210,7 @@ public TwinColumn<T> setHeader(Supplier<Component> footerComponentSupplier) {
*
* @see Column#setFooter(String)
*
* @param footerComponentSuppleir a supplier that instantiates the component to be used in the
* @param footerComponentSupplier a supplier that instantiates the component to be used in the
* footer of each column
* @return this instance, for method chaining
*/
Expand Down

0 comments on commit f6ebfaa

Please sign in to comment.