@SuppressWarnings("unchecked")
  public Map getEventFromCustomContentPanel(ClickEvent event) {
    Map properties = new HashMap();

    HTMLTable.Cell cell = listOfZoneDesigner.getCellForEvent(event);
    if (cell != null && cell.getRowIndex() != 0) {
      properties.put("cellIndex", cell.getRowIndex());
      properties.put("rowIndex", cell.getCellIndex());
      properties.put(
          "template",
          (((CustomListBox) listOfZoneDesigner.getWidget(cell.getRowIndex(), 1)).getValue()));
    }

    return properties;
  }
示例#2
0
  @Override
  public int getClickedRow(ClickEvent event) {
    int selectedRow = -1;
    HTMLTable.Cell cell = contactsTable.getCellForEvent(event);

    if (cell != null) {
      if (cell.getCellIndex() > 0) {
        selectedRow = cell.getRowIndex();
      }
    }

    return selectedRow;
  }
  public int getClickedRow(ClickEvent event) {
    int selectedRow = -1;
    HTMLTable.Cell cell = contactsTable.getCellForEvent(event);

    if (cell != null) {
      // Suppress clicks if the user is actually selecting the
      //  check box
      //
      if (cell.getCellIndex() > 0) {
        selectedRow = cell.getRowIndex();
      }
    }

    return selectedRow;
  }