org.jboss.as.console.client.widgets.tables.TextLinkCell Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of switchyard-console-as7-core
Show all versions of switchyard-console-as7-core
Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.
package org.jboss.as.console.client.widgets.tables;
import com.google.gwt.cell.client.ActionCell;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
/**
* @author Heiko Braun
* @date 10/25/11
*/
public class TextLinkCell extends ActionCell {
private String title;
public TextLinkCell(String title, Delegate delegate) {
super(title, delegate);
this.title = title;
}
@Override
public void render(Context context, T value, SafeHtmlBuilder sb) {
SafeHtml html = new SafeHtmlBuilder()
.appendHtmlConstant("")
.appendHtmlConstant(title)
.appendHtmlConstant("")
.toSafeHtml();
sb.append(html);
}
}