@Override public void onClick(MouseEvent event) { rpc.onClick( U.toPoint(event.getLatLng()), MouseEventDetailsBuilder.buildMouseEventDetails( event.getNativeEvent(), getLeafletMapConnector().getWidget().getElement())); }
@Override public void onClick(ClickEvent event) { if (!isEnabled()) { return; } getState().checked = getWidget().getValue(); // Add mouse details MouseEventDetails details = MouseEventDetailsBuilder.buildMouseEventDetails( event.getNativeEvent(), getWidget().getElement()); getRpcProxy(CheckBoxServerRpc.class).setChecked(getState().checked, details); }
private void fireItemClick(CellReference<?> cell, NativeEvent mouseEvent) { String rowKey = getRowKey((JsonObject) cell.getRow()); String columnId = getColumnId(cell.getColumn()); getRpcProxy(GridServerRpc.class) .itemClick(rowKey, columnId, MouseEventDetailsBuilder.buildMouseEventDetails(mouseEvent)); }