|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGWTApplication.client.SearchResultFormatter.DisplaySearchResultsIncrementalCommand
private class SearchResultFormatter.DisplaySearchResultsIncrementalCommand
This is an incremental command which is used to display the search results so that the browser does not simply lock up whilst the results are being displayed. Although it is not possible to thread GWT applications, this works like a timer and breaks the work up such that the browser will respond to the user whilst it is building the search panel. This is important as to build the FlexTable which contains the details of the search results takes a lot of time and I'm sure that the user will not appreciate having to wait for 30 seconds until his search results are displayed.
Field Summary | |
---|---|
private int |
currentRow
This is the current row in the search result table into which we put the next search result |
private int |
numberOfResultsToAdd
This is the number of search results that we need to add to the search panel |
private int |
numberOfRowsAdded
This is the number of search results which have been added to the search panel |
private java.util.ArrayList |
searchResults
This is the list of search results which are to be displayed in the search result panel |
Constructor Summary | |
---|---|
SearchResultFormatter.DisplaySearchResultsIncrementalCommand(java.util.ArrayList searchResults)
This is the constructor |
Method Summary | |
---|---|
boolean |
execute()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int numberOfResultsToAdd
private int numberOfRowsAdded
private java.util.ArrayList searchResults
private int currentRow
Constructor Detail |
---|
SearchResultFormatter.DisplaySearchResultsIncrementalCommand(java.util.ArrayList searchResults)
Method Detail |
---|
public boolean execute()
execute
in interface com.google.gwt.user.client.IncrementalCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |