如何使用Jquery调用GWT绑定事件
我有一个GWT演示项目,其中包括一个3列5行的数据表。我使用gwt实现:如何使用Jquery调用GWT绑定事件,jquery,gwt,Jquery,Gwt,我有一个GWT演示项目,其中包括一个3列5行的数据表。我使用gwt实现: table.addTableListener( new TableListener(){ public void onCellClicked(SourcesTableEvents sender, int row, int cell) { demoFunc(); } }); 如何创建html按钮并使用jquery调用“onCel
table.addTableListener( new TableListener(){
public void onCellClicked(SourcesTableEvents sender, int row, int cell) {
demoFunc();
}
});
如何创建html按钮并使用jquery调用“onCellClicked”事件
看看gquery,GWT的一个jquery端口: 还没有测试过GWT1.5以外的版本 否则,您需要执行一些JSNI,在JSNI标记中封装一个javascript函数,并使用GWT或jQuery或任何您想要的方式调用javascript 见文件:
<input type="button" id="button1" value="click here"/ >
$("#button1").click(function(){
//implement here to call "onCellClicked" event.
});