final ExtElement e = new ExtElement(hp.getElement());
e.setOpacity(0.1f, false);
FocusPanel actionPanel = new FocusPanel(hp);
MouseListenerAdapter mouseListenerAdapter = new MouseListenerAdapter() {
@Override
public void onMouseEnter(Widget sender) {
e.setOpacity(1, false);
}
@Override
public void onMouseLeave(Widget sender) {
e.setOpacity(0.1f, false);
}
};
actionPanel.addMouseListener(mouseListenerAdapter);
layout.setWidget(currentLayoutRow, 2, actionPanel);
layout.getFlexCellFormatter().setHorizontalAlignment(currentLayoutRow, 2, HasHorizontalAlignment.ALIGN_CENTER);
layout.getFlexCellFormatter().setVerticalAlignment(currentLayoutRow, 2, HasVerticalAlignment.ALIGN_MIDDLE);
}