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

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

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

SuggestBox with server side update and UrlFetch Service

2009-12-31 Thread Ajax-Gadgets
Hello, I was wonder if anyone has implemented the SuggestBox with server side update using the following code http://groups.google.kg/group/google-web-toolkit/browse_thread/thread/56942afe0c404d86. I updated the ItemSuggestionImpl.java below to retrieve my suggestion box values using Url Fetch

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-01-11 Thread Jorge
It's been a couple of weeks since I posted this, I wonder if I'm asking a dumb newbie cuestion. I've searched this group and I can't find any solutions. Could anyone be so kind to point me in to the right direction? Thank you. On Dec 30 2009, 3:46 pm, Jorge wrote: > I'm running 2.0 with Eclipse

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-01-12 Thread UJ
I have never experienced this but its seems a browser specific problem. Specially when we try to populate GWT content in DIV, the display creates one or other problem for sure :-). The GWT is in itself a dynamic content so my personal suggestion is to render your code directly using GWT API only

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-01-12 Thread Isaac Truett
Jorge, Can you use a DOM inspector to examine that white overlay? I would guess that you have an opaque "glass panel" and you just need to set some CSS to make it transparent. Knowing what that white thing really is would help. - Isaac On Mon, Jan 11, 2010 at 10:38 PM, Jorge wrote: > It's been

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-01-13 Thread Jorge
ic void onModuleLoad() { DockLayoutPanel main = new DockLayoutPanel(Unit.EM); //Some text Label text = new Label("This text is going to dissapear"); text.setStyleName("big-text"); main.addNort

Re: Force SuggestBox value initialization on page load

2010-01-24 Thread Thomas Broyer
On 24 jan, 20:06, olive wrote: > Hi! > > I'm please using SuggestBox and Oracle from GWT during standard usage. > Now, I'd like to initialize the SuggestBox at launch page time so it > display a chosen value. > > I've got a SuggestBox that helps finding produ

Re: Force SuggestBox value initialization on page load

2010-01-25 Thread olive
, 23:00, Thomas Broyer wrote: > On 24 jan, 20:06, olive wrote: > > > > > Hi! > > > I'm please using SuggestBox and Oracle from GWT during standard usage. > > Now, I'd like to initialize the SuggestBox at launch page time so it > > display a chosen valu

Re: SuggestBox: how to change suggestions sort order?

2010-01-29 Thread forewar
Still cant find a solution. Is it possible at all? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+

Re: SuggestBox: how to change suggestions sort order?

2010-01-29 Thread Miroslav Genov
You have to extend SuggestOracle and to implement your own Oracle that is sorting your results as you like. Regards, Miroslav forewar wrote: Still cant find a solution. Is it possible at all? -- You received this message because you are subscribed to the Google Groups "Google Web Too

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-01-31 Thread Carlo
DockLayoutPanel(Unit.EM); >                 //Some text >                 Label text = new Label("This text is going to dissapear"); >                 text.setStyleName("big-text"); >                 main.addNorth(text,20); >              

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-02-01 Thread hriess
Is there in the meantime a solution for this problem? I am using a DockLayoutPanel for the layout of the application. A SuggestBox (and other PopupPanels) blanks the complete screen in IE7. After upgrade to GWT 2.0, UiBinder and LayoutPanels I haven't tested my application with IE7 for a long

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-02-03 Thread Stefano Ciccarelli
This is my dirty solution: but you have to drop IE6 support. On 2 Feb, 08:41, hriess wrote: > Is there in the meantime a solution for this problem? I am using a > DockLayoutPanel for the layout of the application. A SuggestBox (and > other PopupPanels) b

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-02-04 Thread hriess
Thank you, Stefano. I've seen this solution already in Issue 4352 - but I don't understand, how it works. Unfortunately it solves only the problem with the SuggestBox , not with some of my PopupPanel based widgets. -- You received this message because you are subscribed to the Goo

How to get unpublished events from a SuggestBox?

2010-02-09 Thread phb
SuggestBox is an opaque grouping of several underlying widgets which *nearly* does exactly what I want. What it doesn't do is update the textbox with suggested text as you arrow up or down through the list, or as you hover over suggestions with the mouse. For an example of why this is u

Re: Getting item select events from suggestbox list

2009-05-04 Thread nina
Hi Zamek Have you read the http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/SuggestOracle.Suggestion.html about the "Associating Data Transfer Objects (DTOs) with Suggestion Objects"? I've written my own SuggestBox, SuggestOracle and Sugges

Re: Getting item select events from suggestbox list

2009-05-05 Thread Thomas Broyer
On 4 mai, 15:16, "zame...@gmail.com" wrote: > Hi All, > > I am using SuggestBox, and there are DTO-s in list. When a user > selects items with up and down key, I need to get the selected element > to display all data of DTO item on a detail form. > > It seems

Re: Getting item select events from suggestbox list

2009-05-05 Thread zame...@gmail.com
On máj. 5, 06:40, nina wrote: > Hi Zamek > > Have you read > thehttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g... > about the "Associating Data Transfer Objects (DTOs) with Suggestion > Objects"? I've written my own SuggestBox, SuggestO

Re: Getting item select events from suggestbox list

2009-05-05 Thread zame...@gmail.com
On máj. 5, 13:03, Thomas Broyer wrote: > On 4 mai, 15:16, "zame...@gmail.com" wrote: > > > Hi All, > > > I am using SuggestBox, and there are DTO-s in list. When a user > > selects items with up and down key, I need to get the selected element > >

Disable the TAB key effect on a SuggestBox

2009-05-27 Thread Twentyseven
Hello, I'd like to know if it's possible to disable the TAB key effect on a SuggestBox : by default the TAB key select the suggestion and go to the next field. I'd like to go to the next field without selecting the suggestion and keeping what the user entried.

Re: SuggestBox showing all options on Enter key

2010-06-14 Thread Jaroslav Záruba
*/ @Deprecated public interface KeyboardListener extends EventListener { cheers JZ On Mon, Jun 14, 2010 at 2:00 PM, Rashmi wrote: > I need to create a SuggestBox that will show all options on pressing > the Enter key. > I have written the following implementation, and it seems to be

Re: SuggestBox showing all options on Enter key

2010-06-18 Thread Rashmi
Mon, Jun 14, 2010 at 2:00 PM, Rashmi wrote: > > I need to create a SuggestBox that will show all options on pressing > > the Enter key. > > I have written the following implementation, and it seems to be > > working fine. > > I would like someone to review my implem

Re: SuggestBox showing all options on Enter key

2010-06-18 Thread Jaroslav Záruba
andler} > and/or > > * {...@link com.google.gwt.event.dom.client.KeyPressHandler} > > instead > > */ > > @Deprecated > > public interface KeyboardListener extends EventListener { > > > > cheers > > JZ > > > > > > > > On Mon, Jun 14, 2010 at 2:00 PM

Customizing The SuggestBox to Change Background Color/Border

2009-11-30 Thread JAppetta
I would like to change the light blue background color (or is it a border?) that surrounds the dropdown items in a SuggestBox. I've tried changing the .gwt-SuggestBox and .gwt-SuggestBoxPopup options in my .css file but with no luck. What suggestBox rule controls this property? I am usin

SuggestBox popup Z-Index issue (appears behind everything)

2011-08-15 Thread darkflame
It seems this issue is still present; http://code.google.com/p/google-web-toolkit/issues/detail?id=1351 Using a SuggestBox in a composite which has had a zIndex value set means the popup of the suggestions appears behind everything else. (no Index seems to be set at all on the popup). So I

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

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

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

How to set and get value of SuggestBox

2012-05-14 Thread ian tabangay
Hi. Can anyone point me to the right direction on how I can set and get the value of SuggestBox when the Suggestion is not of type String? like an Enum or a data object? Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

UiBinder and MVP: Problem with SuggestBox and CellBrowser

2012-07-17 Thread Oscar Perez
Hi, I am fairly new to GWT and still trying to figure out how things work. I am trying the activities and places tutorial and found a chicken-egg problem... I am trying to use a suggestbox but the problem is that takes a suggestoracle in the constructor. If I create the view beforehand (since

Re: SuggestBox with server side update and UrlFetch Service

2010-01-01 Thread Ajax-Gadgets
t retrieve by "Result". Brian On Dec 31 2009, 9:09 am, Ajax-Gadgets wrote: > Hello, > > I was wonder if anyone has implemented the SuggestBox with server side > update using the following > codehttp://groups.google.kg/group/google-web-toolkit/browse_thread/thread >

Re: How to get unpublished events from a SuggestBox?

2010-02-10 Thread phb
Okay, as I think about it, this approach won't work anyway, because I don't want to change the drop down menu here. I only want to fill in the suggestion textbox, like the Google suggestbox does. So short of cloning the class and all its support (yuck) I guess this ends up being

Re: How to get unpublished events from a SuggestBox?

2010-02-10 Thread Isaac Truett
There was a SuggestBox enhancement in trunk last month that abstracts out a SuggestionDisplay. You should be able to implement a SuggestionDisplay that gives you the access you need. On Wed, Feb 10, 2010 at 1:21 PM, phb wrote: > Okay, as I think about it, this approach won't wor

How to add a scrollbar to a SuggestBox popup?

2010-03-19 Thread googelybear
Hi, I would like to display a scrollbar in the popup panel shown by the SuggestBox (Imagine there might be 100 entries in the list and you don't want to display a huuuge popup, instead you want to add a nice vertical scrollbar to it). Does anyone know how to achieve this with gwt 2.0? I

populating suggestions in SuggestBox using eventHandler than overriding SuggestOracle

2010-09-23 Thread chamarts
Hi, is there any action/event handler that I can implement actually gives me a callback reference to populate the suggestions ? and also is there any way to set the SuggestOracle object to SuggestBox. For some reason it happened to be a private method. Not sure whats the design strategy to make

Re: Customizing The SuggestBox to Change Background Color/Border

2009-11-30 Thread Thomas Broyer
On 30 nov, 21:42, JAppetta wrote: > I would like to change the light blue  background color (or is it a > border?) that surrounds the dropdown  items in a SuggestBox. I've > tried changing the .gwt-SuggestBox  and .gwt-SuggestBoxPopup options > in my .css file but with no luck

Re: SuggestBox popup Z-Index issue (appears behind everything)

2011-08-15 Thread Ben Imp
One of the SuggestBox constructors lets you pass in a custom SuggestionDisplay. You should be able to just extend the DefaultSuggestionDisplay, override the decorateSuggestionList method, and set the z-index of the widget it makes. -Ben -- You received this message because you are

Re: SuggestBox popup Z-Index issue (appears behind everything)

2011-08-15 Thread Ben Imp
I suppose you could also use CSS, too. That would seem to be a bit less hacky. -Ben -- 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/-/0xAyuDytV

Re: SuggestBox popup Z-Index issue (appears behind everything)

2011-08-16 Thread Thomas Wrobel
Yes, CSS seemed the best option and worked. Cheers. Still, its a strange issue to still be hanging around. ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) On 15 August 2011 23:51, Ben Imp wrote: > I suppose you could also use CSS, to

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

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

Suggestbox suggestions not displayed when navigating using arrow keys

2012-05-01 Thread ALB-PSP-DV1
We have a suggestbox with approx. 50 suggestions. We are displaying a scrollbar for the suggestbox using the following css .suggestPopupContent{ height:auto; width:auto !important; max-width:400px; max-height: 165px; overflow-y: auto; padding-right

Re: How to set and get value of SuggestBox

2012-05-14 Thread Jens
Implement a class that extends SuggestOracle and provide it to SuggestBox via its constructor. The type you want to suggest should implement the interface Suggestion and in your SuggestBox.addSelectionHandler() you have to cast the Suggestion back to your type. Mini Example: class

Re: How to set and get value of SuggestBox

2012-05-14 Thread ian tabangay
What about setting the value of the SuggestBox? Im trying to use the SuggestBox in an editor that is auto binded to a data object and the value of the SuggestBox can be an enum or some other object. On Mon, May 14, 2012 at 6:13 PM, Jens wrote: > Implement a class that extends SuggestOracle

Re: How to set and get value of SuggestBox

2012-05-14 Thread Jens
Good question.. never used it with Editor Framework. I think I would try implementing ValueAwareEditor in the parent editor to gain access to the value being edited and being notified about flush(). If you add @Ignored to the SuggestBox field then you are able to handle the SuggestionBox

Re: How to set and get value of SuggestBox

2012-05-14 Thread ian tabangay
nk I would try implementing ValueAwareEditor in the parent editor to > gain access to the value being edited and being notified about flush(). If > you add @Ignored to the SuggestBox field then you are able to handle the > SuggestionBox yourself. You could add a selection handler to the Sug

Using SuggestBox for data binding of non String type

2012-05-14 Thread ian tabangay
Hi. Has anyone had any experience in using SuggestBox for data binding Objects or Enums? -- 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

GWT SuggestBox mapping of European characters to American keyboard

2012-06-22 Thread Jonathan
I have a GWT SuggestBox that contains a mix of European and American words as suggestions. For example, some words have European characters, such as français. My target audience is American so I would like to allow automatic mapping of similar letters on an American keyboard to the European

Re: How to set and get value of SuggestBox

2012-07-09 Thread Arash
- Create an editor for the type being displayed by suggestBox - Wrap a suggestbox inside this editor - implement LeavValueEditor of the type being edited - usage in the editor using this suggest box @UiField SuggestBoxWrapper type; - SuggestBoxWrapper.ui.xml public class

Re: How to add a scrollbar to a SuggestBox popup?

2010-03-19 Thread Paul Stockley
Can't you just add a scrollPanel as the first child of the Popup? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to goog

Re: How to add a scrollbar to a SuggestBox popup?

2010-04-22 Thread googelybear
unfortunately not, as the popup is not exposed to the outside world: private final PopupPanel suggestionPopup; On Mar 19, 9:10 pm, Paul Stockley wrote: > Can't you justadda scrollPanel as the first child of thePopup? -- You received this message because you are subscribed to the Google Group

Re: How to add a scrollbar to a SuggestBox popup?

2010-04-23 Thread Andy
We started using the trunk because of the refactoring that's been done to SuggestBox. I considered copying it out and doing my own refactoring but ran into the same dependency issues. If you are able to use the trunk with the refactored SuggestBox, you find that you can do the following: p

Re: How to add a scrollbar to a SuggestBox popup?

2010-05-01 Thread Eugene D
n Apr 22, 5:49 pm, Andy wrote: > We started using the trunk because of the refactoring that's been done > to SuggestBox. I considered copying it out and doing my own > refactoring but ran into the same dependency issues. > > If you are able to use the trunk with the refactored Su

Re: populating suggestions in SuggestBox using eventHandler than overriding SuggestOracle

2010-09-23 Thread Thomas Broyer
On Sep 23, 1:04 pm, chamarts wrote: > Hi, > > is there any action/event handler that I can implement actually gives > me a callback reference to populate the suggestions ? That's the role of the SuggestOracle. > and also is there any way to set the SuggestOracle object

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

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.

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

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

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: Suggestbox suggestions not displayed when navigating using arrow keys

2012-05-02 Thread ALB-PSP-DV1
Any help is appreciated. On May 2, 11:39 am, ALB-PSP-DV1 wrote: > We have asuggestboxwith approx. 50suggestions. We are displaying a > scrollbar for thesuggestboxusingthe following css > > .suggestPopupContent{ >         height:auto; >         width:auto !important; >         max-width:400px; >  

Re: Suggestbox suggestions not displayed when navigating using arrow keys

2012-05-02 Thread Jens
:39:16 UTC+2 schrieb ALB-PSP-DV1: > > We have a suggestbox with approx. 50 suggestions. We are displaying a > scrollbar for the suggestbox using the following css > > .suggestPopupContent{ > height:auto; > width:auto !important; > max-width:400p

Re: Suggestbox suggestions not displayed when navigating using arrow keys

2012-05-03 Thread ALB-PSP-DV1
-PSP-DV1: > > > > > > > > > > > We have a suggestbox with approx. 50 suggestions. We are displaying a > > scrollbar for the suggestbox using the following css > > > .suggestPopupContent{ > >         height:auto; > >         width:auto !impor

Re: GWT SuggestBox mapping of European characters to American keyboard

2012-06-23 Thread Jens
Not sure if the result would be good in your case but instead of mapping european words, I would start and just strip out characters with european meaning. E.g. if the server receives "francais" as search string I would replace "c" with "_" because "c" can be a special european character and th

SuggestBox MultiWordSuggestOracle autocomplete can't create suggestion/display pairs except for default

2010-06-15 Thread Marc Hacker
I have a GWT autocomplete new SuggestBox((new MultiWordSuggestOracle()); For the default suggestions which appears before the user types any prefix, there is a nice method MultiWordSuggestOracle.setDefaultSuggestions(Collection suggestionList) so I can pass a nice list of a Suggestion's

SuggestBox doesn't work with Editor Framework (well not like ValueListBox does)

2011-12-24 Thread Elhanan
(for example ValueListBox) SuggestBox is confined to a String, which means, SuggestionBox can never be used with anything more then a string Value (not even enumerated look up table. which i think severely limits it's options. -- You received this message because you are subscribed to the Goo

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

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

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

using SuggestBox with special Oracle and Suggestion - how to keep view "humble"

2011-04-19 Thread tanteanni
with your (http://groups.google.com/group/google-web-toolkit/ browse_frm/thread/be1e8e363a6f0794/9ceb716e29a5b985) help i learned how to implement my own SuggestionOracle("AuSuggestOracle") and own Suggestions("AuMultiWordSuggestion"). In my case the suggestion object is constructed with a DTO. On

Re: SuggestBox doesn't work with Editor Framework (well not like ValueListBox does)

2011-12-25 Thread -sowdri-
Is there anything that 's preventing you from creating a ValueListBox)?? -- 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/-/TAz770R0QrkJ. To post

Re: SuggestBox doesn't work with Editor Framework (well not like ValueListBox does)

2011-12-25 Thread Elhanan Maayan
yes, it's called "too-much-values-to-be-displayed-in-one-list"... On Mon, Dec 26, 2011 at 8:36 AM, -sowdri- wrote: > Is there anything that 's preventing you from creating > a ValueListBox)?? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit

Re: SuggestBox doesn't work with Editor Framework (well not like ValueListBox does)

2011-12-26 Thread Elhanan Maayan
and btw here's what i thought of... it's still in the rough, but basically it's a combination between ValueListBox and SuggestionBox (hence ValueSuggestionBox :) ), i've tried in my small sourceforge project and seems to be working (at least with requestFactory EntityProxies), so now i can use an e

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

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 Su

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

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

Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-11 Thread tanteanni
I've tried to make a Seleniumtest on the text content of a suggest box. The text is rendered correctly but don't shows up in rendered code ("inspect element") and selenium also sees only an empty string. The Elment look like this in chrome and friefox: But it is rendered with correct text - i

SuggestBox question - is it possible to react on sub sequences of the words?

2010-07-02 Thread crojay78
Hi, I am using the suggest box in my app. Now I'm searching for the possibility to change the filter. Is it possible to change the behaviour so that not only words which start with the input will be suggested also words where the input occurs anywhere in the name. If I have a list like this Jim

<    1   2   3   4   >