Changeset 5074

Show
Ignore:
Timestamp:
07/09/08 13:33:55 (4 months ago)
Author:
matti.tahvonen@…
Message:

fixes #1581

Location:
trunk/src/com/itmill/toolkit
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/com/itmill/toolkit/terminal/gwt/client/ui/IProgressIndicator.java

    r4771 r5074  
    2121    private final Poller poller; 
    2222    private boolean indeterminate = false; 
     23    private boolean pollerSuspendedDueDetach; 
    2324 
    2425    public IProgressIndicator() { 
     
    6566    } 
    6667 
     68    protected void onAttach() { 
     69        super.onAttach(); 
     70        if (pollerSuspendedDueDetach) { 
     71            poller.run(); 
     72        } 
     73    } 
     74 
     75    protected void onDetach() { 
     76        super.onDetach(); 
     77        poller.cancel(); 
     78        pollerSuspendedDueDetach = true; 
     79    } 
     80 
    6781    public void setVisible(boolean visible) { 
    6882        super.setVisible(visible);