Scheduled command didn't work as expected (It still throws exception
when hiding in deffered command). So i put deffered command in
deffered command, and it works! Here is program i created:

private final ScheduledCommand hideCommand2 = new ScheduledCommand() {

                @Override
                public void execute() {
                        setVisible(false);
                }
        };

        private final ScheduledCommand hideCommand = new ScheduledCommand() {

                @Override
                public void execute() {
                        Scheduler.get().scheduleDeferred(hideCommand2);//WORK

                        //doesn't work setVisible(false);
                }
        };

        private final SelectionChangeEvent.Handler selectionHandler = new
Handler() {
                @Override
                public void onSelectionChange(SelectionChangeEvent event) {
                        Customer c = selectionModel.getSelectedObject();
                        if (c == null) {
                                return;
                        }
                        customerEditor.setCustomer(c);
                        Scheduler.get().scheduleDeferred(hideCommand);
                }
        };


On Jun 17, 11:04 am, Thomas Broyer <[email protected]> wrote:
> How about slightly delaying the moment when you hide the list?
> Scheduler.get().scheduleDeferred(...) ?

-- 
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.

Reply via email to