return bar;
}
public void addLink(String text, ClickHandler handler) {
InlineLink html = new InlineLink(text);
//html.setHTML("<a href='javascript:void(0)' tabindex='0'>"+text+"</a>");
html.addClickHandler(handler);
html.addStyleName("link-bar");
SafeHtmlBuilder builder = new SafeHtmlBuilder();
if(numLinks==0)
{
if(!navOnFirstPage)
{
html.addStyleName("link-bar-first");
builder.appendHtmlConstant("<i class='icon-chevron-left'></i>");
builder.appendHtmlConstant(" ");
}
}
builder.appendHtmlConstant("<a href='javascript:void(0)' tabindex='0'>"+text+"</a>");
html.setHTML(builder.toSafeHtml());
links.add(html);
bar.add(html);
numLinks++;