Table Item: add tool tip text function to item cell
authorjihye424.kim <jihye424.kim@samsung.com>
Mon, 5 Oct 2015 01:13:50 +0000 (10:13 +0900)
committerjihye424.kim <jihye424.kim@samsung.com>
Wed, 7 Oct 2015 00:18:55 +0000 (09:18 +0900)
Change-Id: I436edd807e1badbc519bc18f2a853610ec3e5d55
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
src/org/tizen/emulator/manager/ui/table/TableItem.java

index ed8af56..5ff6327 100644 (file)
@@ -528,6 +528,19 @@ public class TableItem extends Canvas {
                return "";
        }
 
+       public void setToolTipText (int index, String text) {
+               checkWidget();
+               if (text == null) {
+                       SWT.error(SWT.ERROR_NULL_ARGUMENT);
+               }
+
+               int count = Math.max(1, parent.getColumnCount());
+               if (index >= 0 && index < count) {
+                       ensureData(index, count);
+                       dataList[index].itemCanvas.setToolTipText(text);
+               }
+       }
+
        @Override
        public Rectangle getBounds() {
                return getBounds(0);