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

org.jboss.as.console.client.widgets.tables.TextLinkCell Maven / Gradle / Ivy

Go to download

Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.

There is a newer version: 0.7.0.Final
Show newest version
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);
    }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy