Framework for lengthy Java Swing interacting tasks
First Claim
1. A method for sending data from a process to an event dispatch thread for output, the event dispatch thread handling events related to a user interface, the method comprising the steps of:
- providing the process, the process and the event dispatch thread executing independent of one another, the process generating a first method call during execution of the process and a final result upon completion of the execution of the process, wherein the first method call includes an object identifier, a method identifier, a first argument, and a partial result generated by the executing process;
sending, during execution of the process, the first method call to a memory;
storing the first method call in the memory, including coalescing the first method call with an existing second method call stored in the memory, the second method call further includes the object identifier, the method identifier, and a second argument, wherein coalescing the first method call and the second method call includes combining the first argument and the second argument;
retrieving the stored coalesced first method call from memory using the event dispatch thread, the retrieving being asynchronous with sending the first method call to the memory;
outputting the retrieved coalesced first method call as an event on the event dispatch thread such that the partial result is displayed to a user on a user interface, wherein outputting the coalesced first method call on the event dispatch thread includes calling a method identified by the method identifier for an object identified by the object identifier and providing the first and second arguments; and
providing an indicator on the user interface indicative of the progress of the execution of the process in generating the first method call and in providing the final result.
2 Assignments
0 Petitions
Accused Products
Abstract
Methods and apparatuses are disclosed for sending data from a process to an event dispatch thread for output, where the event dispatch thread handling events may be related to a user interface. The method may include the steps of providing the process. The process and the event dispatch thread executing independent of one another and the process generating a first method call during execution of the process and a final result upon completion of execution, where the first method call includes a partial result generated by the executing process. The method may further include sending the first method call, storing the first method, including coalescing the first method call with an existing method call, retrieving the partial result from the first method call, and outputting the retrieved first method call on the event dispatch thread such that the partial result is displayed to a user.
-
Citations
19 Claims
-
1. A method for sending data from a process to an event dispatch thread for output, the event dispatch thread handling events related to a user interface, the method comprising the steps of:
-
providing the process, the process and the event dispatch thread executing independent of one another, the process generating a first method call during execution of the process and a final result upon completion of the execution of the process, wherein the first method call includes an object identifier, a method identifier, a first argument, and a partial result generated by the executing process; sending, during execution of the process, the first method call to a memory; storing the first method call in the memory, including coalescing the first method call with an existing second method call stored in the memory, the second method call further includes the object identifier, the method identifier, and a second argument, wherein coalescing the first method call and the second method call includes combining the first argument and the second argument; retrieving the stored coalesced first method call from memory using the event dispatch thread, the retrieving being asynchronous with sending the first method call to the memory; outputting the retrieved coalesced first method call as an event on the event dispatch thread such that the partial result is displayed to a user on a user interface, wherein outputting the coalesced first method call on the event dispatch thread includes calling a method identified by the method identifier for an object identified by the object identifier and providing the first and second arguments; and providing an indicator on the user interface indicative of the progress of the execution of the process in generating the first method call and in providing the final result. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A method for sending method calls from a process to an event dispatch thread for output, the event dispatch thread handling events related to a user interface, the method comprising the steps of:
-
providing the process, the process and the event dispatch thread executing independent of one another, the process generating a first partial result and a second partial result during execution, and a final result, the first partial result having a first argument, an object identifier, and a method identifier, and the second partial result having a second argument, the object identifier, and the method identifier; sending, during execution of the process, the first partial result to a memory; sending, during execution of the process, the second partial result to the memory; coalescing the first partial result and the second partial result to produce a combined partial result, wherein coalescing the first partial result and the second partial result includes combining the first argument and the second argument; storing the combined partial result in the memory; retrieving the combined partial result from the memory using the event dispatch thread, the retrieving being asynchronous with sending the first and second partial results to the memory; outputting the combined partial result as an event on the event dispatch thread, such that the combined partial result is output to a user via a user interface, wherein outputting the combined partial result on the event dispatch thread includes calling a method identified by the method identifier for an object identified by the object identifier, and providing the first and second arguments; and providing an indicator on the user interface indicative of the progress of the execution of the process in generating the first partial result or the second partial result. - View Dependent Claims (13, 14)
-
-
15. A data processing apparatus comprising:
-
a memory storing a call sending program for sending method calls from a process to an event dispatch thread for output, the event dispatch thread handling events related to a user interface, the process and the event dispatch thread executing independent of one another, the process generating a first method call during execution of the process and a final result upon completion of the execution of the process, wherein the first method call includes an object identifier, a method identifier, a first argument, and a partial result generated by the executing process, the call sending program; i) sending, during execution of the process, the first method call to a queue, ii) storing the first method call in the queue, including coalescing the first method call with an existing second method call stored in the queue, the second method call further includes the object identifier, the method identifier, and a second argument, wherein coalescing the first method call and the second method call includes combining the first argument and the second argument; iii) retrieving the stored coalesced first method call from the queue using the event dispatch thread, the retrieving being asynchronous with sending the first method call to the queue, and iv) outputting the retrieved coalesced first method call on the event dispatch thread such that the partial result is displayed to a user on a user interface, wherein outputting the coalesced first method call on the event dispatch thread includes calling a method identified by the method identifier for an object identified by the object identifier and providing the first and second arguments; v) providing an indicator on the user interface indicative of the progress of the execution of the process in generating the first method call and in providing the final result; and a processor capable of running the call sending program. - View Dependent Claims (16, 17)
-
-
18. A computer program product comprising a tangible storage medium comprising instructions operable to cause a data processing apparatus to perform a method for sending method calls from a process to an event dispatch thread for output, the event dispatch thread handling events related to a user interface, the method comprising the steps of:
-
providing the process, the process and the event dispatch thread executing independent of one another, the process generating a first method call during execution of the process and a final result upon completion of the execution of the process, wherein the first method call includes an object identifier, a method identifier, a first argument, and a partial result generated by the executing process; sending, during execution of the process, the first method call to a memory; storing the first method call in the memory, including coalescing the first method call with an existing second method call stored in the memory, the second method call further includes the object identifier, the method identifier, and a second argument, wherein coalescing the first method call and the second method call includes combining the first argument and the second argument; retrieving the stored coalesced first method call from memory using the event dispatch thread, the retrieving being asynchronous with sending the first method call to the memory; outputting the retrieved coalesced first method call as an event on the event dispatch thread such that the partial result is displayed to a user on a user interface, wherein outputting the coalesced first method call on the event dispatch thread includes calling a method identified by the method identifier for an object identified by the object identifier and providing the first and second arguments; and providing an indicator on the user interface indicative of the progress of the execution of the process in generating the first method call and in providing the final result.
-
-
19. An apparatus comprising a tangible storage medium for sending method calls from a process to an event dispatch thread for output, the event dispatch thread handling events related to a user interface, the apparatus comprising:
-
means for providing the process, the process and the event dispatch thread executing independent of one another, the process generating a first method call during execution of the process and a final result upon completion of the execution of the process, wherein the first method call includes an object identifier, a method identifier, and a first argument, and a partial result generated by the executing process; means for sending, during execution of the process, the first method call to a memory;
means for storing the first method call in the memory, including coalescing the first method call with an existing second method call stored in the memory, the second method call further includes the object identifier, the method identifier, and a second argument, wherein coalescing the first method call and the second method call includes combining the first argument and the second argument;means for retrieving the stored coalesced first method call from memory using the event dispatch thread, the retrieving being asynchronous with sending the first method call to the memory; means for outputting the retrieved coalesced first method call as an event on the event dispatch thread such that the partial result is displayed to a user on a user interface, wherein outputting the coalesced first method call on the event dispatch thread includes calling a method identified by the method identifier for an object identified by the object identifier and providing the first and second arguments; and means for providing an indicator on the user interface indicative of the progress of the execution of the process in generating the first method call and in providing the final result.
-
Specification