예제 #1
0
 @Override
 public void onClick(MouseEvent event) {
   rpc.onClick(
       U.toPoint(event.getLatLng()),
       MouseEventDetailsBuilder.buildMouseEventDetails(
           event.getNativeEvent(), getLeafletMapConnector().getWidget().getElement()));
 }
예제 #2
0
  @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);
  }
예제 #3
0
 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));
 }