All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.webforj.component.table.renderer.AbstractElementRenderer Maven / Gradle / Ivy

There is a newer version: 24.20
Show newest version
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