2017-02-13 76 views

回答

2

有直接做的,沒有包裝的一種方式:

table.addCellPreviewHandler(new Handler<MyObject>() { 

     @Override 
     public void onCellPreview(CellPreviewEvent<MyObject> event) { 

      if ("click".equals(event.getNativeEvent().getType())) { 

       // do something with a click, using event.getColumn(), 
       // event.getIndex() and event.getValue() as necessary 

      } 
     } 
    }); 
相關問題