
com.github.apetrelli.gwtintegration.cellview.client.widget.ConditionalSelectionColumn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwt-integration-cellview Show documentation
Show all versions of gwt-integration-cellview Show documentation
Additional code to ease development of Cell-based widgets.
The newest version!
package com.github.apetrelli.gwtintegration.cellview.client.widget;
import com.google.gwt.cell.client.Cell;
import com.google.gwt.cell.client.Cell.Context;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.view.client.SelectionModel;
public abstract class ConditionalSelectionColumn extends
SelectionColumn {
public ConditionalSelectionColumn(Cell cell, SelectionModel selectionModel) {
super(cell, selectionModel);
}
@Override
public void render(Context context, T object,
SafeHtmlBuilder sb) {
if (isRenderable(object)) {
super.render(context, object, sb);
}
}
public abstract boolean isRenderable(T object);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy