Try ClickableTextCell instead of TextInputCell. Pass
ClickableTextCell as argument to Header class. Override
onBrowserEvent() method.
S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine
// sample code.
Header<String> header = new Header<String>(new ClickableTextCell())
{
@Override
public String getValue()
{
return "Your_header";
}
@Override
public void onBrowserEvent(Context context, Element parent,
NativeEvent event)
{
//add your popup
PopupPanel popup = new PopupPanel();
popup.setAnimationEnabled(true);
popup.setAutoHideEnabled(true);
popup.setSize("20ex", "15ex");
popup.show();
}
};
//add header in cellTable.
CellTable cellTable = new CellTable();
cellTable.addColumn(your_column, header , new TextHeader("f
On Oct 19, 3:29 pm, David Fernando <[email protected]> wrote:
> Add popup on cellTable header. When I click on the header not
> recognize the event. I render TextInputCell in the header of CellTable.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.