| 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2011, 2014 Kalray, Ericsson. |
| 3 | * |
| 4 | * All rights reserved. This program and the accompanying materials are |
| 5 | * made available under the terms of the Eclipse Public License v1.0 which |
| 6 | * accompanies this distribution, and is available at |
| 7 | * http://www.eclipse.org/legal/epl-v10.html |
| 8 | * |
| 9 | * Contributors: |
| 10 | * Xavier Raynaud - Initial API and implementation |
| 11 | ******************************************************************************/ |
| 12 | package org.eclipse.tracecompass.tmf.ui.widgets.virtualtable; |
| 13 | |
| 14 | /** |
| 15 | * An interface to get tooltips. |
| 16 | * @author Xavier Raynaud |
| 17 | * @version 1.0 |
| 18 | */ |
| 19 | public interface TooltipProvider { |
| 20 | |
| 21 | /** |
| 22 | * get a Tooltip for a given column in a table row. (a cell if you will) |
| 23 | * @param column the column |
| 24 | * @param data the object being selected. (quite often a "TableItem") |
| 25 | * @return the string of text to display in the tooltip. |
| 26 | */ |
| 27 | String getTooltip(int column, Object data); |
| 28 | |
| 29 | } |