Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.util 6.8.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.openide.util
Interface AsyncGUIJob

    public interface AsyncGUIJob

Service provider interface (SPI) for executing of time consuming task which results are visible in UI. Typical usage is post-initialization of UI components or various long lasting operations like network accessing invoked directly or indirectly by user from UI. Note that it's often desirable to provide cancel support, at least for longer lasting jobs. See `Cancellable` support. Keep in mind that methods `construct()` and `Cancellable.cancel()` can be called concurrently and require proper synchronization as such.

Since:
  3.36

Method Summary
`void` | `construct()` Worker method, can be called in any thread but event dispatch thread.
`void` | `finished()` Method to update UI using given data constructed in `construct()` method.

Method Detail

### construct

    void construct()

  Worker method, can be called in any thread but event dispatch thread. Implement your time consuming work here. Always called and completed before `finished()` method.

### finished

    void finished()

  Method to update UI using given data constructed in `construct()` method. Always called in event dispatch thread, after `construct()` method completed its execution.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.util 6.8.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.