Package com.metadot.book.connectr.client.helper

Examples of com.metadot.book.connectr.client.helper.ClickPoint


  @Override
  public ClickPoint getClickedPoint(ClickEvent event) {
    final Image img;
    int selectedRow = -1;
    ClickPoint point = null;
    HTMLTable.Cell cell = friendsTable.getCellForEvent(event);

    if (cell != null) {
      // Suppress clicks if not on the property button
      if (cell.getCellIndex() > 0) {
        selectedRow = cell.getRowIndex();
        img = (Image) friendsTable.getWidget(selectedRow, 1);
        int left = img.getAbsoluteLeft();
        int top = img.getAbsoluteTop();
        point = new ClickPoint(top, left);
      }
    }

    return point;
  }
View Full Code Here


        public void onClick(ClickEvent event) {
          int selectedPropertyButtonRow = display.getClickedRow(event);
          GWT.log("Friend list clicked");
          if (selectedPropertyButtonRow >= 0) {
            GWT.log("Friend list property button clicked: " + selectedPropertyButtonRow);
            ClickPoint point = display.getClickedPoint(event);
            FriendSummaryDTO friend = friendSummaries.get(selectedPropertyButtonRow);
            eventBus.fireEvent(new ShowFriendPopupEvent(friend, point));
          } else {
            GWT.log("Friend list check box clicked");
            selectedRows = display.getSelectedRows();
View Full Code Here

TOP

Related Classes of com.metadot.book.connectr.client.helper.ClickPoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.