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

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

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 be

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 bec

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("Su

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 > > Im

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 fro

Re: SuggestBox in DataGrid?

2017-01-20 Thread Rocco De Angelis
ction 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 > presente

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 requestSuggestions() into

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 becau

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.add

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 acce

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.

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 google

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 grou

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: Then, I can populate the already provided SuggestBox on the View: MultiWordSuggestOracle oracle = (MultiWordSuggestOracle) suggestBox.getSuggestOracle

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

Re: SuggestBox and the underlying TextBox

2014-11-28 Thread Thomas Broyer
quot;; it gives 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

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) If

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
ctionsoftware/gwt/user/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: >>> &g

Re: How to make SuggestBox display scroll properly?

2014-07-15 Thread Andy
/com/tractionsoftware/gwt/user/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&#

Re: How to make SuggestBox display scroll properly?

2014-07-15 Thread Andy
ava#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

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 : > 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 disapp

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 th

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 We

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 i

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 UTC-

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 f

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 google-web-toolkit+unsubscr...@goo

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 pre

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 pre

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 google-web-t

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 intere

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

Re: SuggestBox - return single word suggest

2013-10-25 Thread Jostein
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 > several word, but I

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

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

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 Thomas i want that the row is display like Thomad University in the same row. Is there

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 us

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 the

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 o

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: Use SuggestBox suggestions in another widget

2013-07-02 Thread rahul neekhra
ch through a list of data, 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 sh

Re: Use SuggestBox suggestions in another widget

2013-07-02 Thread Kartik Suba
ll 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 >

Re: Use SuggestBox suggestions in another widget

2013-07-01 Thread rahul neekhra
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. > &g

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.p

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

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 Dayananda B V
ing 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 > > > wrote: > >> Hi Jens, >> >> thanks for replay, what i want is when i type a text suggestbox and when >> I hit

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

2013-07-01 Thread Dayananda B V
o 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 > > > wrote: > >> Hi Jens, >> >> thanks for replay, what i want is when i type a text suggestbox and when >> I hit escape

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

2013-07-01 Thread David
That is default behavior of a text input field (set back to what it was before starting 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 wrote: > Hi Jens, > > thanks for replay, what i want is when i type a text s

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 Su

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

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

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 with

Re: Regarding SuggestBox with MultiWordSuggestOracle - selecting value

2013-06-11 Thread Dayananda B V
cription i want to show 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 receive

Re: Regarding SuggestBox with MultiWordSuggestOracle - selecting value

2013-06-10 Thread Thomas Broyer
ny 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? > MultiWordSuggestOracle is designed to have only "replacement text", and the "display text"

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 that? Is

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: > &

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 by

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

2013-03-11 Thread Kody
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<http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwSuggestBox> >&g

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 "Resources.gwt.xml" so that images get copied to the war folder. For example I

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 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: http://groups.googl

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 > showSuggestions

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

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 sim

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 > 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 Juan Pablo Gardella
Copy this class in your project and modify this method and make it public. 2013/3/9 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 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 are

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

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

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.

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

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 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 G

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(Strin

Re: gwt suggestbox.

2012-11-22 Thread Thomas Broyer
On Thursday, November 22, 2012 6:03:57 AM UTC+1, Jan Vladimir Mostert wrote: > > Hi, sorry for re-opening a topic from 2009. > > In the above code, you said nameCallback = callBack, where is this > nameCallback being used? > I don't quite understand how to use the callback. > > I was just wonder

Re: gwt suggestbox.

2012-11-21 Thread Jan Vladimir Mostert
gestOracle 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 MySug

Re: SuggestBox implementation

2012-08-28 Thread Ümit Seren
with RPC } } And when you create the SuggestBox you pass your CustomSuggestOracle as a constructor parameter On Mon, Aug 27, 2012 at 8:50 PM, Deepak Singh wrote: > I would be using RPC and returning the List. > > Then how should i go ahead for implemen

Re: SuggestBox implementation

2012-08-27 Thread Deepak Singh
CustomSuggestOracle extends SuggestOracle{ > >>> > >>> List citySugggestions = null; > >>> @Override > >>> public void requestSuggestions(Request request, Callback callback) { > >>> Response response = new Response(getMatchingCities(request.getQuery(), >

Re: SuggestBox implementation

2012-08-27 Thread Ümit Seren
(getMatchingCities(request.getQuery(), >>> request.getLimit())); >>> } >>> private List getMatchingCities(String query, int limit) >>> { >>> List list = new ArrayList(); >>> } >>> } >>> >>> >>> Now i am not abl

Re: SuggestBox implementation

2012-08-27 Thread Deepak Singh
w ArrayList(); >> } >> } >> >> >> Now i am not able to understand how to go ahead with this >> customSuggestOracle. >> >> Could you pls guide me here? >> >> Thanks >> Deepak >> >> On Sun, Aug 26, 2012 at 11:18 PM, Tho

Re: SuggestBox implementation

2012-08-27 Thread Ümit Seren
gt; > On Sun, Aug 26, 2012 at 11:18 PM, Thomas Broyer > > > wrote: > >> >> >> On Sunday, August 26, 2012 6:36:11 PM UTC+2, Deepak Singh wrote: >>> >>> But after selecting a value, how do i get the id of the selected value? >>> >> >

Re: SuggestBox implementation

2012-08-26 Thread Deepak Singh
August 26, 2012 6:36:11 PM UTC+2, Deepak Singh wrote: >> >> But after selecting a value, how do i get the id of the selected value? >> > > SuggestBox works best if you use the ID as the "replacementString" and the > label as the "displayString" of the Sugg

Re: SuggestBox implementation

2012-08-26 Thread Thomas Broyer
On Sunday, August 26, 2012 6:36:11 PM UTC+2, Deepak Singh wrote: > > But after selecting a value, how do i get the id of the selected value? > SuggestBox works best if you use the ID as the "replacementString" and the label as the "displayString" of the Suggesti

Re: SuggestBox implementation

2012-08-26 Thread Jens
In your selection handler you have to cast the selected suggestion to your custom class. -- J. -- 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/-

  1   2   3   4   >