Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix javadoc #184

Merged
merged 2 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
<configuration>
<quiet>true</quiet>
<doclint>none</doclint>
<failOnWarnings>false</failOnWarnings>
<failOnWarnings>true</failOnWarnings>
<links>
<link>https://javadoc.io/doc/com.vaadin/vaadin-platform-javadoc/${vaadin.version}</link>
</links>
Expand Down
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
Loading