SuggestBox SuggestionDisplay Item ToolTip or mouseover handler

2021-03-31 Thread linus...@gmail.com
Hi All, I would like to be able to show a tooltip (or some sort of popup) when the user hovers over a suggestion item in the list of suggestions for a SuggestBox. So far I've extended and/or reimplemented SuggestBox, SuggestBox.DefaultSuggestionDisplay, and DecoratedPopupPanel, so I can

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 , N

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

Re: How to get the SuggestBox value

2019-04-14 Thread Nanditha Nandu
oduleLoad() > { > > MultiWordSuggestOracle oracle = new MultiWordSuggestOracle(); > String[] words = {"Alpha", "Apple", "Anaconda", "Beta", "Beautiful", > "Best", "Better"}; > for (String word: words

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

Re: How to get the SuggestBox value

2019-04-12 Thread Rogelio Flores
uot;Better"}; for (String word: words) { oracle.add(word); } SuggestBox suggestBox = new SuggestBox(oracle); suggestBox.setSize("300px", "40px"); suggestBox.addSelectionHandler((SelectionEvent suggestion) -> { GWT.log(&quo

Re: How to get the SuggestBox value

2019-04-12 Thread Filipe Sousa
suggestionBox.getValue()? On Thursday, April 11, 2019 at 12:02:57 PM UTC+1, Nanditha Nandu wrote: > > final SuggestBox suggestionBox = new SuggestBox(suggestions); > > where suggestions is the custom suggest words passed using > MultiWordSuggestOracle > > Im trying to g

Re: How to get the SuggestBox value

2019-04-12 Thread Nanditha Nandu
Did anyone have the solution to this ? On Thursday, April 11, 2019 at 4:32:57 PM UTC+5:30, Nanditha Nandu wrote: > final SuggestBox suggestionBox = new SuggestBox(suggestions); > > where suggestions is the custom suggest words passed using > MultiWordSuggestOracle > >

How to get the SuggestBox value

2019-04-11 Thread Nanditha Nandu
final SuggestBox suggestionBox = new SuggestBox(suggestions); where suggestions is the custom suggest words passed using MultiWordSuggestOracle Im trying to get the value selected from the suggestions in the SuggestBox using below line: String text = suggestionBox.getTextBox().getValue

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

Re: SuggestBox in DataGrid?

2017-01-20 Thread Rogelio Flores
If I needed a SuggestBox-like widget in a cell, I would implement my own CellWidget. This would require that you basically re-implement the whole widget using the custom-cell approach. Not trivial like simply adding the already made SuggestBox, but it will perform nicely like cell-based widgets

Re: SuggestBox in DataGrid?

2017-01-20 Thread Frank
Maybe it is all possible but not easy. That is the main reason we developed in an inhouse grid. Not enough capabilities for the datagrid, or to difficult to achieve certain things. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe

Re: SuggestBox in DataGrid?

2017-01-20 Thread Rocco De Angelis
with in the onBrowserEvent method. But you have to be very careful onAttach and onDetach must be called correctly if you attache an widget into the dom. Am Freitag, 20. Januar 2017 13:10:56 UTC+1 schrieb H Maner: > > Hello everyone, > > Has anyone been able to successfully use

SuggestBox in DataGrid?

2017-01-20 Thread H Maner
Hello everyone, Has anyone been able to successfully use a SuggestBox in a DataGrid? If so, how did you do it? GWT 2.6.1, soon upgrading to 2.8 (thank you!). Thank you, Hal Maner -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To u

Re: Autocompletion with RPC under the MVP model : how to instanciate Suggestbox(suggestOracle) without refering any service into the view ?

2016-09-09 Thread Eddy
;> >> What I had tried is to write a get method from the view/display >> interface, which return the suggestBox object and which I had called from >> the presenter on the onBind or revealDisplay : >> => I could redefine as the same the requestSuggestions() into the &g

Re: Autocompletion with RPC under the MVP model : how to instanciate Suggestbox(suggestOracle) without refering any service into the view ?

2016-09-09 Thread Thomas Broyer
On Friday, September 9, 2016 at 9:31:27 AM UTC+2, Eddy wrote: > > Thank you for your first help Thomas ! > > What I had tried is to write a get method from the view/display interface, > which return the suggestBox object and which I had called from the > prese

Re: Autocompletion with RPC under the MVP model : how to instanciate Suggestbox(suggestOracle) without refering any service into the view ?

2016-09-09 Thread Eddy
Thank you for your first help Thomas ! What I had tried is to write a get method from the view/display interface, which return the suggestBox object and which I had called from the presenter on the onBind or revealDisplay : => I could redefine as the same the requestSuggesti

Autocompletion with RPC under the MVP model : how to instanciate Suggestbox(suggestOracle) without refering any service into the view ?

2016-09-08 Thread Thomas Broyer
You could route the requestSuggestions to your presenter instead if directly to your service (the presenter simply behaving as a proxy/façade to the service). Or you could use a "proxy" Oracle where you can later set the "delegate" (coming from the presenter) -- You received this message

Autocompletion with RPC under the MVP model : how to instanciate Suggestbox(suggestOracle) without refering any service into the view ?

2016-09-07 Thread Eddy
Hi everybody, I am french so escuses me for the mistakes and that is my first post into this group :-) As said into the subject I had made a suggestBox which retrieve the suggestions from the server side (within an sql query) and it works successfully. But, the following part of my code

Re: Pressing the enter key in the SuggestBox popup fire onKeyUp event! How to disable this?

2015-08-07 Thread mohammed rizwan
As @Stole mentioned, use isSuggestionListShowing() of the SuggestBox in KeyDownHandler instead of KeyUpHandler and move your existing from KeyUp to KeyDowm. Because onSelection will trigger before onKeyUp but after onKeyDown mySuggestBoxObject.addKeyDownHandler(new

Re: SuggestBox: how to change suggestions sort order?

2015-01-21 Thread Pradeep G
modifier . It would be great if someone could point me in the right direction. Thanks. Pradeep On Thursday, January 28, 2010 at 9:28:28 AM UTC-7, forewar wrote: Hello! I have the following problem: I have created SuggestBox element and filled it`s MultiWordSuggestOracle. But when I use

Re: SuggestBox: how to change suggestions sort order?

2015-01-21 Thread Jens
Were you able to find a solution to this at all? I have been trying to figure this out all week, but I am still stuck. When I try to extend SuggestOracle and implement my own Oracle, I am having problems with some of the methods being private and classes (PrefixTree) with default access

SuggestBox, Oracle and uibinder

2014-12-08 Thread 'Adolfo Rodriguez' via Google Web Toolkit
Hi, I have been dealing with a problem which seems to me not having a clean solution. I have declared a SuggestBox in uibinder: g:SuggestBox ui:field=suggestBox height=32px width=550px/g:SuggestBox Then, I can populate the already provided SuggestBox on the View

Re: SuggestBox, Oracle and uibinder

2014-12-08 Thread Jens
Use @UiField(provided = true) SuggestBox box; and then instantiate the SuggestBox before you call initWidget() in your constructor. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving

Re: SuggestBox, Oracle and uibinder

2014-12-08 Thread 'Adolfo Rodriguez' via Google Web Toolkit
yes, thanks Jens, (provided = true) made the difference in the solution 2 above. It works now :-) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: SuggestBox and the underlying TextBox

2014-11-28 Thread Thomas Broyer
suggestions (like Google Suggest, or your webmail searching your contacts list when typing in the To: or Cc: fields) but is otherwise free-form. Using the SuggestBox for a type-ahead listbox is misusing it; IMO you'd better look for another widget (and yes, there's no such widget in GWT proper

Re: SuggestBox and the underlying TextBox

2014-11-28 Thread ckuetbach
Thanks for the anwser, I will take a look at the arcbee-project. I think I found another trick to make the Suggestbox do what I want (There is no need for timer or delays): https://github.com/msh9/codinginthetrenches.com/blob/master/content/2012/catching-value-change-events-from-the-gwt

SuggestBox and the underlying TextBox

2014-11-27 Thread ckuetbach
Hello, I have some trouble with the SuggestBox. There are at least two Hadler at the SuggestBox: - ValueChangeHandler - SelectionHandler If I enter a Text into the SuggestBox and unfocus it, I get the ValueChangeEvent, with the current Value (I need to validate the Input at this moment

SuggestBox initial selection in Firefox

2014-08-23 Thread Kyle Baley
We're using the SuggestBox in a few places and one thing is messing up our users. If you have the mouse placed over the area where the suggest box is going to appear, the entry that is under the mouse cursor automatically gets highlighted after the suggest box actually does appear

Re: How to make SuggestBox display scroll properly?

2014-07-16 Thread Julien Dramaix
On Monday, July 14, 2014 1:40:06 PM UTC-4, chris-x...@db.com wrote: I'm working with a SuggestBox that produces a very large number of suggestions on the first one or two chanracters. I don't want an ugly list that disappears off the bottom of the screen, so I've made the selection display scroll

Re: How to make SuggestBox display scroll properly?

2014-07-15 Thread Andy
#L196-L213 from our gwt-traction library http://tractionsoftware.github.io/gwt-traction/. -Andy On Monday, July 14, 2014 1:40:06 PM UTC-4, chris-x...@db.com wrote: I'm working with a SuggestBox that produces a very large number of suggestions on the first one or two chanracters. I don't want

Re: How to make SuggestBox display scroll properly?

2014-07-15 Thread Andy
/client/ui/TractionDialogBox.java#L196-L213 from our gwt-traction library http://tractionsoftware.github.io/gwt-traction/. -Andy On Monday, July 14, 2014 1:40:06 PM UTC-4, chris-x...@db.com wrote: I'm working with a SuggestBox that produces a very large number of suggestions

How to make SuggestBox display scroll properly?

2014-07-14 Thread chris-x . walker
I'm working with a SuggestBox that produces a very large number of suggestions on the first one or two chanracters. I don't want an ugly list that disappears off the bottom of the screen, so I've made the selection display scroll by adding height and overflow to the CSS for .gwt

Re: How to make SuggestBox display scroll properly?

2014-07-14 Thread Juan Pablo Gardella
Maybe file a ticket + patch with the change to SuggestBox in order to make extensible. 2014-07-14 14:40 GMT-03:00 chris-x.wal...@db.com: I'm working with a SuggestBox that produces a very large number of suggestions on the first one or two chanracters. I don't want an ugly list

Re: Suggestbox suggestions not displayed when navigating using arrow keys

2014-06-15 Thread jordi . bergenthal
Here is a solution without having to change the codebase: private static class ScrollableDefaultSuggestionDisplay extends SuggestBox. DefaultSuggestionDisplay { private Widget suggestionMenu; @Override protected Widget decorateSuggestionList(Widget suggestionList

Re: SuggestBox and HasBlurHandlers

2013-11-08 Thread Patrick Tucker
You can listen to SelectionEvents, which fire when the user selects an item in the popup. If you want the user to be able to type in a value and not select an item I would also listen to ValueChangeEvents. -- You received this message because you are subscribed to the Google Groups Google

Re: SuggestBox and HasBlurHandlers

2013-11-04 Thread Norm Deane
Yes we're seeing situations where it doesn't fire a ValueChangedEvent. If you type some characters, arrow down into the search results, then tab out of the field it selects that suggestion, sets the textbox value, but doesn't fire a ValueChangedEvent. On Sunday, November 3, 2013 9:42:40 AM

Re: SuggestBox and HasBlurHandlers

2013-11-04 Thread Norm Deane
We're doing that. One solution that almost worked was to listen for both the onBlur from the textbox and the onClose from our SuggestionDisplay's PopupPanel. In the onBlur for the textbox we would look to see if the SuggestionDisplay's PopupPanel was still visible. If so we knew they could be

Re: SuggestBox and HasBlurHandlers

2013-11-03 Thread Patrick Tucker
Wouldn't a ValueChangeHandler be more appropriate for firing validation? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: SuggestBox and HasBlurHandlers

2013-11-03 Thread jaga
How about extending the popup interface SuggestDisplay? You can then handle the callbacks which get fired when the popup is hidden. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails

Re: SuggestBox and HasBlurHandlers

2013-11-02 Thread Patrick Tucker
What are you actually trying to do? Maybe we can suggest an alternative to the FocusHandler. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: SuggestBox and HasBlurHandlers

2013-11-02 Thread Norm Deane
We're using a SuggestBox as an in-place editor and need to know when they're blurred from the SuggestBox so we can fire validation and other logic. If we only listen for the blur on the TextBox we can end up firing this logic while they're in the SuggestionDisplay which is premature. Thanks

Re: SuggestBox and HasBlurHandlers

2013-11-02 Thread Norm Deane
We're using a SuggestBox as an in-place editor and need to know when they're blurred from the SuggestBox so we can fire validation and other logic. If we only listen for the blur on the TextBox we can end up firing this logic while they're in the SuggestionDisplay which is premature. Thanks

Re: SuggestBox and HasBlurHandlers

2013-11-01 Thread Norm Deane
Adding a FocusHandler to the TextBox isn't quite what I need. The TextBox will blur when the user arrows down into the suggestion display. When this occurs they really haven't left the SuggestBox yet as they're still navigating through the suggestions. I'd be more interested in a blur event

Re: SuggestBox - return single word suggest

2013-10-25 Thread Jostein
to do it. I have implemented a suggest box as this: MultiWordSuggestOracle oracle = new MultiWordSuggestOracle(); SuggestBox box = new SuggestBox(oracle); The suggestBox is populated with street addresses. Each address contains several word, but I want the suggestbox only show items starting

Re: SuggestBox - return single word suggest

2013-10-25 Thread Jens
You just have to create a class that implements SuggestOracle and then provide it to the SuggestBox through one of its constructors. The SuggestOracle requires a single method to be implemented. That method gives you access to the request the user has made (query, result limits) and the method

SuggestBox - return single word suggest

2013-10-23 Thread Jostein
Hi, I guess this is quite simple, but I cannot find out how to do it. I have implemented a suggest box as this: MultiWordSuggestOracle oracle = new MultiWordSuggestOracle(); SuggestBox box = new SuggestBox(oracle); The suggestBox is populated with street addresses. Each address contains

Re: SuggestBox - return single word suggest

2013-10-23 Thread Jens
You probably have to write your own SuggestBox oracle if multi word matching is not what you want. A custom StreetNameOracle could also ask your server to match the query string right in the database if you want to. -- J. -- You received this message because you are subscribed to the Google

GWT SuggestBox PopupPanel with word wrap

2013-10-17 Thread Johann
i´ve build an gwt suggestbox and anything is working fine. I want to add a second result value to the displayString(). I saw in the sourcecode that the popuppanel contain a html table with td class=item item-selected id=gwt-uid-23 role=menuitem colspan=2 style=white-space: nowrap;Thomas

Re: SuggestBox with keydownhandler event - Question

2013-08-27 Thread Thomas Broyer
On Monday, August 26, 2013 8:57:47 PM UTC+2, fedex wrote: Hi everyone, For my application, I am adding a suggestbox on the front interface so when user types in any letter corresponding list (we won't add the list to the interface. It will be shown as the user types in and changes

SuggestBox with keydownhandler event - Question

2013-08-26 Thread fedex
Hi everyone, For my application, I am adding a suggestbox on the front interface so when user types in any letter corresponding list (we won't add the list to the interface. It will be shown as the user types in and changes correspondingly when the letters changes as we generally see in online

Re: SuggestBox with keydownhandler event - Question

2013-08-26 Thread Jens
You need to implement your own oracle that does the server request on its own. Extend SuggestOracle and implement SuggestOracle.requestSuggestions(). Use your RPC call to retrieve the values and build a Response that you can pass to the provided callback. Currently your oracle is empty when

Re: Use SuggestBox suggestions in another widget

2013-07-02 Thread Kartik Suba
, but can't figure anything out. Here is what I would like: The interface would be a suggest box, and a vertical panel, or grid of some sort with data. Initially all of the options are shown, as links, in the vertical panel/grid. When the user starts to type in the SuggestBox, not only

Re: Use SuggestBox suggestions in another widget

2013-07-02 Thread rahul neekhra
. Initially all of the options are shown, as links, in the vertical panel/grid. When the user starts to type in the SuggestBox, not only does the normal SuggestBox functioanlity occur, but also the panel/ grid of all data updates as well to only have entries that match the users input

Re: Use SuggestBox suggestions in another widget

2013-07-02 Thread Johannes Barop
Hi, the best code to refer is the source code of SuggestBox itself. Having a look at this constructor you'll notice an interface SuggestionDisplay. The default implementation uses a MenuBar to display a list of text items. You can easily implement any custom rendering by implementing

Re: How to disable text clear when i hit Esc in SuggestBox

2013-07-01 Thread Dayananda B V
please let me know how can i fix the below issue. On Friday, June 28, 2013 6:37:15 PM UTC+5:30, Dayananda B V wrote: Hi All, When i hit Esc key in suggest box what ever the text i typed is clearing. I don't want to suggestbox to clear the text, i want hide the popup menu. appricate

Re: How to disable text clear when i hit Esc in SuggestBox

2013-07-01 Thread Jens
I am using GWT 2.5.1 and when I hit ESC in a SuggestBox nothing happens at all. Thats what I would expect as SuggestBox does not handle ESC explicitly (see SuggestBox.addEventsToTextBox()). You can also try it yourself using: http://gwt.googleusercontent.com/samples/Showcase/Showcase.html

Re: How to disable text clear when i hit Esc in SuggestBox

2013-07-01 Thread Dayananda B V
Hi Jens, thanks for replay, what i want is when i type a text suggestbox and when I hit escape key, whatever the text I entered is clearing. i don't want to clear the text. On Monday, July 1, 2013 1:43:32 PM UTC+5:30, Jens wrote: I am using GWT 2.5.1 and when I hit ESC in a SuggestBox

Re: How to disable text clear when i hit Esc in SuggestBox

2013-07-01 Thread David
a text suggestbox and when I hit escape key, whatever the text I entered is clearing. i don't want to clear the text. On Monday, July 1, 2013 1:43:32 PM UTC+5:30, Jens wrote: I am using GWT 2.5.1 and when I hit ESC in a SuggestBox nothing happens at all. Thats what I would expect

Re: How to disable text clear when i hit Esc in SuggestBox

2013-07-01 Thread Dayananda B V
guess you could do a preventDefault on the ESC key event. David On Mon, Jul 1, 2013 at 11:39 AM, Dayananda B V dayan...@gmail.comjavascript: wrote: Hi Jens, thanks for replay, what i want is when i type a text suggestbox and when I hit escape key, whatever the text I entered is clearing

Re: How to disable text clear when i hit Esc in SuggestBox

2013-07-01 Thread Dayananda B V
to edit). I guess you could do a preventDefault on the ESC key event. David On Mon, Jul 1, 2013 at 11:39 AM, Dayananda B V dayan...@gmail.comjavascript: wrote: Hi Jens, thanks for replay, what i want is when i type a text suggestbox and when I hit escape key, whatever the text I entered

Re: How to disable text clear when i hit Esc in SuggestBox

2013-07-01 Thread Dayananda B V
Hi David, as you told i have used preventDefault and it working fine, can you plase let me know the below code is fine/ or is there any better way *final* SuggestBox suggestBox = *new* SuggestBox(suggest) { *public* *void* onBrowserEvent(Event event) { *super*.onBrowserEvent(event

Re: How to disable text clear when i hit Esc in SuggestBox

2013-07-01 Thread Jens
You could also use a key handler: @UiHandler(suggestBox) void onKeyUp(KeyUpEvent event) { if(event.getNativeKeyCode() == KeyCodes.KEY_ESCAPE) { event.preventDefault(); //IE clears text on ESC. We don't want that. } } If you want that behavior throughout your app (which would be a good

Re: How to disable text clear when i hit Esc in SuggestBox

2013-07-01 Thread Dayananda B V
thanks jens, appriciate your help. On Monday, July 1, 2013 4:43:56 PM UTC+5:30, Jens wrote: You could also use a key handler: @UiHandler(suggestBox) void onKeyUp(KeyUpEvent event) { if(event.getNativeKeyCode() == KeyCodes.KEY_ESCAPE) { event.preventDefault(); //IE clears text on ESC

Re: Use SuggestBox suggestions in another widget

2013-07-01 Thread rahul neekhra
panel/grid. When the user starts to type in the SuggestBox, not only does the normal SuggestBox functioanlity occur, but also the panel/ grid of all data updates as well to only have entries that match the users input. Is this possible? Thanks, Josh -- You received this message

How to disable text clear when i hit Esc in SuggestBox

2013-06-28 Thread Dayananda B V
Hi All, When i hit Esc key in suggest box what ever the text i typed is clearing. I don't want to suggestbox to clear the text, i want hide the popup menu. appricate your help. Thanks Dayananda B V -- You received this message because you are subscribed to the Google Groups Google Web

subclass SuggestBox and use it in Designer?

2013-06-19 Thread Magnus
Hi, in my chess application I would like to use a SuggestBox to specify a player from the list of registered users. This widget should be used at several places within the application, so I would like to subclass it. class UserSuggestBox extends SuggestBox ... Then, when building a GUI

Re: Regarding SuggestBox with MultiWordSuggestOracle - selecting value

2013-06-11 Thread Dayananda B V
company code(IBM.US) in SuggestBox inseated of International Business Machine. How can i do that? Is it i have to add selectionevent on SuggestBox and change the text? appricate your help. Thanks Daya -- You received this message because you are subscribed to the Google Groups

Regarding SuggestBox with MultiWordSuggestOracle - selecting value

2013-06-10 Thread Dayananda B V
Hi all, Suggestpopup box which show list of items here i want to show say for example company discription (International Business Machine), when i select company discription i want to show company code(IBM.US) in SuggestBox inseated of International Business Machine. How can i do

Re: Regarding SuggestBox with MultiWordSuggestOracle - selecting value

2013-06-10 Thread Thomas Broyer
) in SuggestBox inseated of International Business Machine. How can i do that? Is it i have to add selectionevent on SuggestBox and change the text? MultiWordSuggestOracle is designed to have only replacement text, and the display text is the replacement text with the matched parts in bold text

[gwt-contrib] Re: SuggestBox causes native events to fire twice (3533) (issue1785803)

2013-05-30 Thread tuckerpmt
If you can finish it up that would be great. I haven't really had time to figure out the new system. With the old system I could generate patch files from any of the many computers that I work on, email it to myself and submit the patch from anywhere. I can't really do that anymore... On

[gwt-contrib] Re: SuggestBox causes native events to fire twice (3533) (issue1785803)

2013-05-30 Thread goktug
https://gwt-review.googlesource.com/#/c/3141/ On 2013/05/30 12:45:08, Patrick Tucker wrote: If you can finish it up that would be great. I haven't really had time to figure out the new system. With the old system I could generate patch files from any of the many computers that I work on,

[gwt-contrib] Re: SuggestBox causes native events to fire twice (3533) (issue1785803)

2013-05-29 Thread goktug
On 2012/09/05 15:44:32, Patrick Tucker wrote: On 2012/07/19 20:48:12, tbroyer wrote: Can this patch be committed? Can you move this patch to gerrit or would you prefer me to do that for you? http://gwt-code-reviews.appspot.com/1785803/ --

Re: How to use Objects in SuggestBox instead of text Strings?

2013-03-25 Thread Qrunk
Hi, A very simple solution is to create an method by name *public String getDisplayString()* in your class *Foo*, which should return either bar or any other String field whichever you wanted to display on your SuggestBox. On Monday, 18 March 2013 15:50:05 UTC+5:30, membersound wrote: Hi

How to use Objects in SuggestBox instead of text Strings?

2013-03-18 Thread membersound
property that is used in the suggestions, I also want to apply the renaming there. So I somehow have to save the ID of the object in the suggestBox, but let it show another property from the object belonging to that id. class Foo { String bar; //to be displayed in suggest box, and renamable

How to get the css styles from showcase SuggestBox?

2013-03-11 Thread membersound
I'd like to apply the styles from the showcase SuggestBox: http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwSuggestBox Especially I like the thin-round borders around the box. How can I do this when using Standard theme? This is what I tried: ui:style field=styles src

Re: How to get the css styles from showcase SuggestBox?

2013-03-11 Thread Thomas Broyer
On Monday, March 11, 2013 11:44:41 AM UTC+1, membersound wrote: I'd like to apply the styles from the showcase SuggestBox: http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwSuggestBox Especially I like the thin-round borders around the box. How can I do this when using

Re: How to get the css styles from showcase SuggestBox?

2013-03-11 Thread Jens
If you like the Showcase theme then you can simply use the Clean.gwt.xml theme in your module. What I do to change the GWT style globally the way I want is to copy the GWT style into a ClientBundle and only inherit theme-nameResources.gwt.xml so that images get copied to the war folder. For

Re: How to get the css styles from showcase SuggestBox?

2013-03-11 Thread Kody
:41 AM UTC+1, membersound wrote: I'd like to apply the styles from the showcase SuggestBox: http://gwt.googleusercontent.**com/samples/Showcase/Showcase.** html#!CwSuggestBoxhttp://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwSuggestBox Especially I like the thin-round borders

How to access SuggestionMenu.getNumItems() from outside of a SuggestBox context?

2013-03-09 Thread membersound
HI, I have a SuggestBox, and want to know how many items are currently displayed. There is a private int SuggestionMenu.getNumItems() which would return this number. How can I access this or similar method to return the suggestions list size? -- You received this message because you

Re: How to access SuggestionMenu.getNumItems() from outside of a SuggestBox context?

2013-03-09 Thread Juan Pablo Gardella
Copy this class in your project and modify this method and make it public. 2013/3/9 membersound kodyreco...@gmail.com HI, I have a SuggestBox, and want to know how many items are currently displayed. There is a private int SuggestionMenu.getNumItems() which would return this number. How

Re: How to access SuggestionMenu.getNumItems() from outside of a SuggestBox context?

2013-03-09 Thread Kody
SuggestBox has so many dependencies, also some protected which means I would have to copy a whole bunch of original gwt classes in my project. That's no option... 2013/3/9 Juan Pablo Gardella gardellajuanpa...@gmail.com Copy this class in your project and modify this method and make it public

Re: How to access SuggestionMenu.getNumItems() from outside of a SuggestBox context?

2013-03-09 Thread Thomas Broyer
On Saturday, March 9, 2013 6:24:57 PM UTC+1, membersound wrote: HI, I have a SuggestBox, and want to know how many items are currently displayed. There is a private int SuggestionMenu.getNumItems() which would return this number. How can I access this or similar method to return

Bug: SuggestBox suggestions are not hidden for multi-words that do NOT match

2013-03-09 Thread membersound
Hi, I discovered a serious problem in SuggestBox. It is reproducable using the showcase: http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwSuggestBox Type: work select work around hit SPACEBAR type aaa. Now your query should be work around aaa and the suggestion popup

Re: How to access SuggestionMenu.getNumItems() from outside of a SuggestBox context?

2013-03-09 Thread membersound
Thanks Thomas, I already have an extended SuggestionDisplay, so I implemented your hint and it now works as expected! Am Samstag, 9. März 2013 18:35:43 UTC+1 schrieb Thomas Broyer: SuggestionDisplay's

TextArea with SuggestBox moves cursor in new line?

2013-03-08 Thread membersound
Hi, having a simple TextArea with SuggestBox. When I select an entry using ENTER in the popup list, then the entry is placed into the TextArea and the cursor is moved one line down due to the linebreak of Enter key. Is this intended? How could I prevent this? Like

Re: TextArea with SuggestBox moves cursor in new line?

2013-03-08 Thread Thomas Broyer
When you hit enter to select a suggestion, the focus is in the text box, not the popup, so you can easily preventDefault(). On Friday, March 8, 2013 12:22:25 PM UTC+1, membersound wrote: Hi, having a simple TextArea with SuggestBox. When I select an entry using ENTER in the popup list

How to show SuggestBox Popup at curser position in TextArea?

2013-03-07 Thread membersound
Hi, I have a TextArea with SuggestBox, which always shows below the textarea. How can I make it to show up at cursor position? I found this: SuggestBox.DefaultSuggestionDisplay.showSuggestions() { //... suggestionPopup.showRelativeTo(positionRelativeTo != null

TextArea with SuggestBox places cursor in new line on selection?

2013-03-07 Thread membersound
Hi, having a TextArea with SuggestBox. When I select an item from the dropdown, its text is placed in the first row, and the cursor is moved to the 2nd row! Why isn't the cursor just moved behind the new text? On which line might the cursorchange happen? Is this due to some textArea.focus

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

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

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

Re: gwt suggestbox.

2012-11-24 Thread Jan Vladimir Mostert
Spent some time on it today and got it working, thanks Thomas!! public class PietSuggestOracle extends SuggestOracle { public static class PietSuggestion implements SuggestOracle.Suggestion { private String displayString = ; private String replacementString = ; public PietSuggestion(String

Re: gwt suggestbox.

2012-11-21 Thread Jan Vladimir Mostert
using RPC. public class MySuggestOracle extends SuggestOracle { @Override public void requestSuggestions(Request request, Callback callback) { } } // in my ManageSomePageView.java TextBox textBox = new TextBox(); horizontalPanel.add(new SuggestBox(new MySuggestOracle

[gwt-contrib] Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread t . broyer
My preferred option, with one small adjustment to make it a non-breaking change. https://codereview.appspot.com/6492092/diff/1/user/src/com/google/gwt/user/client/ui/SuggestBox.java File user/src/com/google/gwt/user/client/ui/SuggestBox.java (right):

[gwt-contrib] Re: Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread jat
BTW: you should create code reviews at http://gwt-code-reviews.appspot.com/ instead. There is a also a TODO to support SafeHtml here. I'm not entirely sure what that means in this case (Doesn't TextBox already ensure the string is uninterpreted? Does changing to a ValueBoxBase mean you might

[gwt-contrib] Re: Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread t . broyer
in SuggestOracle.Suggestion, or possibly a new interface, and a breaking change to SuggestBox.SuggestionDisplay). At this point, we'd probably better rebuild SuggestBox from scratch with better modularity (possibly even build it as an extender/behavior, similar to ASP.NET AJAX's AutoComplete http://www.asp.net

[gwt-contrib] Re: Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread jat
LGTM https://codereview.appspot.com/6492092/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread jat
https://codereview.appspot.com/6492092/diff/5001/user/src/com/google/gwt/user/client/ui/SuggestBox.java File user/src/com/google/gwt/user/client/ui/SuggestBox.java (right): https://codereview.appspot.com/6492092/diff/5001/user/src/com/google/gwt/user/client/ui/SuggestBox.java#newcode878

[gwt-contrib] Re: Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread t . broyer
LGTM https://codereview.appspot.com/6492092/diff/5001/user/src/com/google/gwt/user/client/ui/SuggestBox.java File user/src/com/google/gwt/user/client/ui/SuggestBox.java (right): https://codereview.appspot.com/6492092/diff/5001/user/src/com/google/gwt/user/client/ui/SuggestBox.java#newcode878

  1   2   3   4   >