Disable with loading gif

36 views
Skip to first unread message

shue249

unread,
Aug 5, 2008, 9:13:36 PM8/5/08
to Google Web Toolkit
Hi GWT folks,

I have a panel which contains a tree and a timepedia chart. There is a
timer running a periodic rpc to the server for updates. During the
rpc, i will like to disable the entire panel to prevent any user
manipulation on the tree and the chart. I have seen several showcases
where the widget/panel is disabled and grayed out and a "Loading..."
window is shown while rpc is performed and the widget/panel will be
enabled back after rpc is done.

Does anyone knows the name to this feature and how to go about doing
this?

One example is http://www.gwt-ext.com/demo/#remotePagingGrid.

Thomas Broyer

unread,
Aug 6, 2008, 6:14:14 PM8/6/08
to Google Web Toolkit


On Aug 6, 3:13 am, shue249 <shue...@gmail.com> wrote:
> Hi GWT folks,
>
> I have a panel which contains a tree and a timepedia chart. There is a
> timer running a periodic rpc to the server for updates. During the
> rpc, i will like to disable the entire panel to prevent any user
> manipulation on the tree and the chart. I have seen several showcases
> where the widget/panel is disabled and grayed out and a "Loading..."
> window is shown while rpc is performed and the widget/panel will be
> enabled back after rpc is done.
>
> Does anyone knows the name to this feature and how to go about doing
> this?

This is basically a GlassPanel and PopupPanel (or some child of the
GlassPanel) that you show before calling your RPC method, and hide
from within your AsyncCallback.

There are many implementations of GlassPanel depending on which widget
library you use (Google-Web-Toolkit-Incubator, GWT-Ext, GXT, etc.)
>
> One example ishttp://www.gwt-ext.com/demo/#remotePagingGrid.

MN

unread,
Aug 7, 2008, 9:01:03 AM8/7/08
to Google Web Toolkit
but refthink about it: if i look at something and every xxx seconds
there is a grayout and a "loading..." this i would not like.

better: do a rpc call. and analyse the result. and then only if some
changes, then refresh the chart and grey it out for the refreshing. or
do the changes more smoothly like here: http://ams.tibco.com/GIDemo_Advanced/
Reply all
Reply to author
Forward
0 new messages