All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.qc.ircm.platelayout.RowHeaderClickEvent Maven / Gradle / Ivy

There is a newer version: 0.9
Show newest version
/*
 * Copyright (c) 2016 Institut de recherches cliniques de Montreal (IRCM)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see .
 */

package ca.qc.ircm.platelayout;

import com.vaadin.shared.MouseEventDetails;
import com.vaadin.ui.Component;
import com.vaadin.ui.Component.Event;

/**
 * Row header click event.
 */
public class RowHeaderClickEvent extends Event {
  private static final long serialVersionUID = -7127891611808715599L;
  private final int row;
  private final MouseEventDetails details;

  /**
   * Creates row header click event.
   *
   * @param source
   *          source component
   * @param row
   *          row
   */
  public RowHeaderClickEvent(Component source, int row) {
    super(source);
    this.row = row;
    this.details = null;
  }

  /**
   * Creates row header click event.
   *
   * @param source
   *          source component
   * @param row
   *          row
   * @param details
   *          mouse details
   */
  public RowHeaderClickEvent(Component source, int row, MouseEventDetails details) {
    super(source);
    this.row = row;
    this.details = details;
  }

  public int getRow() {
    return row;
  }

  public MouseEventDetails getDetails() {
    return details;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy