Hello All,

I am new to GWT. I need to display a CellTable in which a cell has an
HyperLink, Image and Text. When user clicks on link, a dialogbox should be
opened and should display current selection.

I dont know how to bring this in one cell and how to handle click event of
the link. I create a widget to display HyperLink, Image and Text but I
rendered as SafeHtml. Which I think is incorrect because I dont get handler
to the link.

*How I add to column is*,

        final SafeHtmlCell cell = new SafeHtmlCell();
        Column<MyProxy, SafeHtml> column = new Column<MyProxy,
SafeHtml>(cell) {

            @Override
            public SafeHtml getValue(MyProxy proxy) {
                SafeHtmlBuilder sb = new SafeHtmlBuilder();
                sb.appendHtmlConstant(new
NameCell(proxy).getElement().getInnerHTML());
                return sb.toSafeHtml();
            }
        };

*NameCell.ui.xml*

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
             xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:b="urn:import:com.github.gwtbootstrap.client.ui">
    <g:HTMLPanel>
        <div id="parent">
            <div><g:Image ui:field="status"/></div>
            <div><g:Label ui:field="candidateName"/></div>
            <div><g:Label ui:field="skills"/></div>
        </div>
    </g:HTMLPanel>
</ui:UiBinder>


Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to