CellTree: Changing the default "no data" message for empty nodes

385 views
Skip to first unread message

aarnott

unread,
Mar 8, 2011, 3:27:36 PM3/8/11
to Google Web Toolkit
Is there a way with the CellTree to change the default "no data"
message when a tree node is empty?

Maybe I'm taking the wrong approach, but I am using an RPC to load the
children of a particular node once it is opened and when the loading
is happening, the node shows the "no data" message. I'd prefer to
change the message to something like "Loading..." :-). Otherwise, I
can always add a child cell that has the loading message and then
remove it when the real children are loaded, but that seems clunky.

--Andrew

Patrick Tucker

unread,
Oct 2, 2012, 6:24:11 PM10/2/12
to google-we...@googlegroups.com
It appears that there is not.
 
Pretty disappointing, I was hoping to use CellTree in my new project... thought in my case I do not want the message at all, which is also not possible.

Marco

unread,
Oct 3, 2012, 11:52:55 AM10/3/12
to google-we...@googlegroups.com

Thomas Broyer

unread,
Oct 3, 2012, 12:49:53 PM10/3/12
to google-we...@googlegroups.com


On Wednesday, October 3, 2012 5:52:55 PM UTC+2, Marco wrote:
There is already an open issue:

http://code.google.com/p/google-web-toolkit/issues/detail?id=6868

Which is actually fixed (will ship in 2.5.0-rc2) 

bhargavi sarang

unread,
May 28, 2014, 9:30:42 AM5/28/14
to google-we...@googlegroups.com
Hi Thomas
 I am using 2.5.1 GWT version. I would like to modify the Empty message in cell tree. If it has been fixed can you please let me know what the fix and how do I modify the hard-coded message. Any help will be greatly appreciated.

Thomas Broyer

unread,
May 28, 2014, 11:22:00 AM5/28/14
to google-we...@googlegroups.com


On Wednesday, May 28, 2014 3:30:42 PM UTC+2, bhargavi sarang wrote:
Hi Thomas
 I am using 2.5.1 GWT version. I would like to modify the Empty message in cell tree. If it has been fixed can you please let me know what the fix and how do I modify the hard-coded message. Any help will be greatly appreciated.

There's a CellTree.CellTreeMessages interface with the constants. It's standard GWT I18N so you can provide translations the usual ways. You can also extend (or even implement) the interface and pass an instance to the CellTree constructor.

bhargavi sarang

unread,
May 29, 2014, 1:59:01 AM5/29/14
to google-we...@googlegroups.com
Thanks Thomas for the reply...
Reply all
Reply to author
Forward
0 new messages