final HTMLPanel hoverPanel = getView().getRwHoverableListEntry();
hoverPanel.setVisible(false);
hoverPanel.add(element.getHoverable());
final FocusPanel fp = getView().getRwListEntry();
// Switch hover panel on mouse over
fp.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
hoverPanel.setVisible(true);
fp.setStyleName("rwListEntry-hover");
}
});
fp.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
hoverPanel.setVisible(false);
fp.setStyleName("rwListEntry");
}
});
}