PDA

View Full Version : setCellToolTip not working for TableItem in ExtGWT 1.0.2



pillindra
13 Aug 2008, 4:16 PM
I am using setCellTooTip from TableItem and it is not showing any tooltips.

Here is the code I am using:

public class Edwin implements EntryPoint {

public void onModuleLoad() {
final SimplePanel p = new SimplePanel();
p.add(serviceList());
RootPanel.get().add(p);
}

public Widget serviceList() {
TableColumn[] columns = new TableColumn[3];
columns[0] = new TableColumn("System Services", 100);
columns[1] = new TableColumn("Bandwidth", 100);
columns[2] = new TableColumn("Users", 50);

TableColumnModel cm = new TableColumnModel(columns);
Table tbl = new Table(cm);
tbl.setSelectionMode(Style.SelectionMode.MULTI);
tbl.setBorders(false);
tbl.setHeight("200");
tbl.setWidth("250");
for (int i = 0; i < 5; i++) {
Object[] values = new Object[3];
values[0] = "Web Services";
values[1] = "113.5 MB";
values[2] = "15";
TableItem item = new TableItem(values);
item.setCellToolTip(0,"Test");
tbl.add(item);
}

ContentPanel panel = new ContentPanel();
panel.setHeaderVisible(true);
panel.setCollapsible(false);
panel.setAnimCollapse(false);
panel.setHeading("SAP Infrastructure");
panel.setLayout(new FillLayout());
panel.add(tbl);
return panel;
}

}

When I point to the table cell, no tooltip is showing.

Is there a fix already in there to show the tooltips?

Thanks,
Padma