resultPanel.add(new DivWidget(desc, _css.resultListEntryDescription()));
}
protected void addPlaceBeanToPanel(final Place place, DivPanel panel) {
DivPanel resultPanel = new DivPanel(_css.resultListEntry());
panel.add(resultPanel);
DivPanel routeRow = new DivPanel(_css.resultListEntryName());
resultPanel.add(routeRow);
String name = place.getName();
Anchor anchor = new Anchor(name);
anchor.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
_stopFinder.queryLocation(place.getLocation(), place.getAccuracy());
}
});
routeRow.add(anchor);
String description = place.getDescriptionAsString();
if (description.length() > 0)
routeRow.add(new DivWidget(description, _css.resultListEntryDescription()));
}