PDA

View Full Version : [OPEN] TableItem setCellToolTip bug??



pillindra
15 Aug 2008, 2:01 PM
I am trying to use setCellTooTip from TableItem and it is not showing any tooltips. Is there a bug in using TableItem's setCellToolTip method?

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 or is this a known bug?

Thanks,
Padma

pillindra
15 Aug 2008, 2:08 PM
I am using ExtGWT 1.0.2 where the tooltips for TableItem is not working. Please let me know if this fix already in SVN or is it an issue not fixed so far? I just couldn't get these tooltips working after migrating from MyGWT 0.5.2 to ExtGWT 1.0.2. It used to work fine with MyGWT 0.5.2.

Thanks,
Padma

darrellmeyer
18 Aug 2008, 8:15 PM
Tooltips are not currently implemented in Table. We are currently working on a new tool tip design which should be available fairly soon.

pillindra
18 Aug 2008, 9:02 PM
Darell,

Thank you for your reply. Can you please let me know if there is any estimated time line on making this tooltip functionality available? We have migrated our application assuming that tooltips would work as in myGWT 0.5.2. So, I am just wondering about planning for our production release.

Thanks,

Padma