views)));
}
});
}
itemContainer.addMouseOverHandler(new MouseOverHandler()
{
public void onMouseOver(final MouseOverEvent arg0)
{
selectItem(itemContainer);
}
});
name.setTargetHistoryToken(historyToken);
itemPanel.add(name);
itemContainer.add(itemPanel);
resultsPanel.add(itemContainer);
if (activeItem == null)
{
selectItem(itemContainer);
}
}
if (event.getResponse().getTotal() > event.getResponse().getPagedSet().size())
{
final FocusPanel itemContainer = new FocusPanel();
final FlowPanel itemPanel = new FlowPanel();
itemContainer.addStyleName(StaticResourceBundle.INSTANCE.coreCss().searchResultsMoreButton());
itemPanel.add(new Label("See more results"));
itemContainer.addClickHandler(new ClickHandler()
{
public void onClick(final ClickEvent event)
{
eventBus.notifyObservers(new UpdateHistoryEvent(new CreateUrlRequest(Page.SEARCH,
generateParams(searchTerm.getText()), false)));
}
});
itemContainer.addMouseOverHandler(new MouseOverHandler()
{
public void onMouseOver(final MouseOverEvent arg0)
{
selectItem(itemContainer);
}