footerComponentSupplier) {
}
/**
- * Sets the function that is used for generating CSS class names for cells in both columns.
+ * Sets the function that is used for generating CSS part names for cells in both columns.
+ * Returning {@code null} from the generator results in no custom part name being set. Multiple
+ * part names can be returned from the generator as space-separated.
+ *
+ * If {@link Grid#setPartNameGenerator(SerializableFunction)} is used together with this method,
+ * resulting part names from both methods will be effective.
*
- * @see Column#setClassNameGenerator(SerializableFunction)
- *
- * @param classNameGenerator the class name generator to set, not {@code null}
+ * @param partNameGenerator the part name generator to set, not {@code null}
* @return this instance, for method chaining
- * @throws NullPointerException if {@code classNameGenerator} is {@code null}
+ * @throws NullPointerException if {@code partNameGenerator} is {@code null}
+ * @see Column#setPartNameGenerator(SerializableFunction)
*/
- public TwinColumn setClassNameGenerator(SerializableFunction classNameGenerator) {
- availableColumn.setClassNameGenerator(classNameGenerator);
- selectionColumn.setClassNameGenerator(classNameGenerator);
+ public TwinColumn setPartNameGenerator(SerializableFunction partNameGenerator) {
+ availableColumn.setPartNameGenerator(partNameGenerator);
+ selectionColumn.setPartNameGenerator(partNameGenerator);
return this;
}
diff --git a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/CompatibilityExtension.java b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/CompatibilityExtension.java
index 73b56fd..8e3910a 100644
--- a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/CompatibilityExtension.java
+++ b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/CompatibilityExtension.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * TwinColGrid add-on
+ * %%
+ * Copyright (C) 2017 - 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.addons.twincolgrid;
import com.vaadin.flow.component.select.Select;
diff --git a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGridListAdapterTest.java b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGridListAdapterTest.java
index 1c1c765..b044e42 100644
--- a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGridListAdapterTest.java
+++ b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGridListAdapterTest.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * TwinColGrid add-on
+ * %%
+ * Copyright (C) 2017 - 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.addons.twincolgrid;
import org.junit.Assert;
diff --git a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGridTest.java b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGridTest.java
index 48c4daf..9c2d4d0 100644
--- a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGridTest.java
+++ b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGridTest.java
@@ -1,3 +1,22 @@
+/*-
+ * #%L
+ * TwinColGrid add-on
+ * %%
+ * Copyright (C) 2017 - 2025 Flowing Code
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
package com.flowingcode.vaadin.addons.twincolgrid;
import org.junit.Assert;