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

com.github.apetrelli.gwtintegration.cellview.client.widget.ConditionalSelectionColumn Maven / Gradle / Ivy

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