![JAR search and dependency download from the Maven repository](/logo.png)
com.webforj.component.table.renderer.AbstractElementRenderer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webforj-table Show documentation
Show all versions of webforj-table Show documentation
Table component for webforJ
package com.webforj.component.table.renderer;
import com.webforj.component.table.event.renderer.RendererClickEvent;
import com.webforj.dispatcher.EventListener;
/**
* The base class for all renderers which render a tag with content.
*
* @param the type of the row data
*
* @see AbstractVoidElementRenderer
*
* @author Hyyan Abo Fakher
* @since 24.00
*/
public abstract class AbstractElementRenderer extends AbstractVoidElementRenderer {
/**
* Creates a new tag renderer.
*
* @param content the content of the tag
* @param listener the click listener
*/
protected AbstractElementRenderer(String content, EventListener> listener) {
setContent(content);
if (listener != null) {
addClickListener(listener);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy