GWT CellTable with checkbox selection and on row click event

前端 未结 2 1191
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 21:41

How to call a method when some row is clicked using the checkbox selection model?

I\'m setting the checkbox selection model like this:

table.setSelection         


        
2条回答
  •  执念已碎
    2021-02-05 22:28

    Create a function that you call,

    table.setSelectionModel(selectionModel, ClassName.myMethod(0));
    
    static  DefaultSelectionEventManager myMethod(int column) {
       //call whatever functions you want
       return DefaultSelectionEventManager. createCheckboxManager(column);
    }
    

提交回复
热议问题