Saturday, March 19, 2016

Updating CellTable row style

Hi,

I am trying to update a row style for on mouse hover.

mappings.addCellPreviewHandler(new Handler<MappingInstructionVO>() {

     
@Override
     
public void onCellPreview(CellPreviewEvent<MappingInstructionVO> event) {
       
if (BrowserEvents.MOUSEOVER.equals(event.getNativeEvent().getType())) {
           mappings
.getRowElement(event.getValue().getExecutionOrder()).getStyle().setBorderColor("Red");
     
}
});




Any idea why 

mappings.getRowElement(event.getValue().getExecutionOrder()).getStyle().setBorderColor("Red");

has no effect?


Thanks

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment