Hello,
Thanks for the reply. A little more explanation would really help.:)
Is this what I am supposed to do?
myTextBox.addBlurHandler(new BlurHandler()
{
public void onBlur(BlurEvent blurEvent)
{
DeferredCommand.addCommand(new Command() {
public void execute() {
GWT.log("Text box blurred...");
myTable.setVisible(false);
}
});
}
});
Code for loading this table is currently as follows:
//make the RPC call.
ussa.querySuggestions(queriedText, parameters, new
AsyncCallback<List<AutoCompleteQuerySuggestion>>()
{
public void onFailure(Throwable t)
{
//DO something.
}
public void onSuccess(List<AutoCompleteQuerySuggestion>
serverResults)
{
int suggestionsNumber = serverResults.size();
if (suggestionsNumber > 0)
{
myTable.removeAllRows();
for (int i = 0; i < suggestionsNumber; i++)
{
String suggestion =
serverResults.get(i).getSuggestion();
//load each MyHtml into the myTable rows.
myHtml = new MyHtml(getSuggestBox(),
suggestion);
myHtml.addClickHandler(new ClickHandler()
{
public void onClick(ClickEvent clickEvent)
{
GWT.log("Widget clicked...");
}
});
myTable.setWidget(i, 0, myHtml);
}
if (!(myTable.isVisible()))
{
myTable.setVisible(true);
}
}
requestInProgress = false;
}
});
Do I have to do something more to get the clicks before the blur?
Please help...
thanks,
Subhro.
--
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.