Re: SuggestBox in a CellTable

2019-04-16 Thread Nanditha Nandu
Hi Craig,

I'm trying to place the SuggestBox widget inside CellTable.
Created the custom class "SuggestBoxTextInputCell" which extends the 
TextInputCell.


And changed the browserEvent as following:

*public* *void* onBrowserEvent(Context context, Element parent, String value
,

NativeEvent event, ValueUpdater valueUpdater) {

*super*.onBrowserEvent(context, parent, value, event, valueUpdater);

// Ignore events that don't target the input.

InputElement input = getInputElement(parent);

String eventType = event.getType();

*if* (BrowserEvents.*FOCUS*.equals(eventType)) {

TextBox textBox = *new* MyTextBox(input);

suggestBox = *new* MySuggestBox(suggestBox.getSuggestOracle(), textBox);

suggestBox.onAttach();

} 

Element *target* = event.getEventTarget().cast();

}


But I want to pass my own suggestionText. 

Hence the created a constructor:

*public* SuggestBoxTextInputCell(MultiWordSuggestOracle suggestions) {

*this*(suggestions, *new* TextBox());

}

*public* SuggestBoxTextInputCell(MultiWordSuggestOracle suggestions,

ValueBoxBase box) {

//this(suggestions, box);

}

After this I'm stuck.

And want to call SuggestBoxTextInputCell(Suggestions) in CellTable.

On Tuesday, April 16, 2019 at 6:06:10 AM UTC+5:30, Craig Mitchell wrote:

> It would help knowing what the problem is, as we don't know what your 
> custom SuggestBox is.
>
> Maybe look into 
> http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCustomDataGrid
>  and 
> look how EditTextCell works, and then make a EditSuggestBox.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuggestBox in a CellTable

2019-04-15 Thread Craig Mitchell
It would help knowing what the problem is, as we don't know what your 
custom SuggestBox is.

Maybe look into 
http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCustomDataGrid 
and 
look how EditTextCell works, and then make a EditSuggestBox.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuggestBox in a CellTable

2019-04-14 Thread Nanditha Nandu
Any one has any solution on this? Please help. Thanks.





On Wednesday, April 10, 2019 at 10:07:18 PM UTC+5:30, Nanditha Nandu wrote:

> How to call this custom SuggestBox.. In the cellTable with passing default 
> suggestions. 
>
> Please help. 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuggestBox in a CellTable

2019-04-10 Thread Nanditha Nandu
How to call this custom SuggestBox.. In the cellTable with passing default 
suggestions.

Please help. 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuggestBox in a CellTable

2012-12-16 Thread Craig Day
Can't remember, it was over a year ago. I will see if I can dig out the
code and have a look.

Craig

On Friday, December 14, 2012, wrote:

 Hello Craig!

 Been struggling awhile to accomplish this functionality and managed to do
 it following this post!
 Thanks for the suggestion!

 Did you manage to find out something else about this meanwhile?

 Best regards,
 Ionut

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/Bxm-5ooVFIkJ.
 To post to this group, send email to 
 google-web-toolkit@googlegroups.comjavascript:_e({}, 'cvml', 
 'google-web-toolkit@googlegroups.com');
 .
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com javascript:_e({},
 'cvml', 'google-web-toolkit%2bunsubscr...@googlegroups.com');.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SuggestBox in a CellTable

2012-12-14 Thread ionut . penciuc
Hello Craig!

Been struggling awhile to accomplish this functionality and managed to do 
it following this post!
Thanks for the suggestion!

Did you manage to find out something else about this meanwhile?

Best regards,
Ionut

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Bxm-5ooVFIkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SuggestBox in a CellTable

2012-12-14 Thread Craig Day
Can't remember, it was over a year ago. I will see if I can dig out the
code and have a look.

Craig

On Friday, December 14, 2012, wrote:

 Hello Craig!

 Been struggling awhile to accomplish this functionality and managed to do
 it following this post!
 Thanks for the suggestion!

 Did you manage to find out something else about this meanwhile?

 Best regards,
 Ionut

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/Bxm-5ooVFIkJ.
 To post to this group, send email to 
 google-web-toolkit@googlegroups.comjavascript:_e({}, 'cvml', 
 'google-web-toolkit@googlegroups.com');
 .
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com javascript:_e({},
 'cvml', 'google-web-toolkit%2bunsubscr...@googlegroups.com');.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.