I am looking for an Open Source lib for GWT 2.3+ which has dynamic TabbedPane (with close tab button, scrolling, events support etc). I googled but couldn't find any. So I need your skilled advice. Is there such a lib and where to find it?
Thanks
SmartGWT? here is the link to the showcase of TabSet component. What do you mean by events? EventBus? I was using the GWTP framework for this purpose.
EDIT:
license
You can easily build it as a custom widget in GWT.
You need a top panel to show your "tabs" and a panel below it to show a tab content. When a user clicks on a tab, you populate the bottom panel with a selected tab content. You can easily add a button to your "tab" widget and attach a ClickHandler to it to remove the corresponding tab from the top panel. This is basic GWT - you don't need an outside library for it.
You could look at the gxt advanced tabs example and the gxt overview
It is gpl3, but that said it is more like Android where the actual development is behind closed doors unless you have a support contract, and then the src code is available when a version is released.
There are some exceptions available if you have a FLOSS project that is not compatible with GPL3 -- say for example your project is under an Apache license but you want to include gxt (of course, the gxt portion of the code must still comply with gpl3 requirements)
gxt license
Related
I just started learning Google Web Toolkit (GWT). How do I implement header, left navigation bar and footer in my GWT application?
How can i place the header and footer in one page and reuse the same in all other pages?
Please help me how can i achieve the above requirement?
I like using SplitLayoutPanel. Here you will basically only change the center panel and leave northe west etc alone.
You can find a very good overview here.
You can create a template in Ui:Binder with your basic layout, and use this template for all new pages.
Another option is to create a custom widget for you menu, header and footer. Then you again can use a template for new pages, but instead of including each button, label, etc., you just include your custom headerWidget, footerWidget and menuWidget.
As others already suggested, you use one of the LayoutPanels to organize your page. My favorite is LayoutPanel. You add your headerWidget, footerWidget, and menuWidget to this LayoutPanel and specify their position.
I recommend that you use a Ui:Binder for this: it's a more convenient way to do layouts, it's very visual (helps to cut on the number of mistakes), and much easier to maintain.
Our GWT based application needs a font size selector. Ussually people will want to pick the font size from a set of standard sizes. Sometimes however users will want to manually type in a specific font size like '12.6'. We obviously cannot put ever tenth of a point option inside our font size dropdown so a dropdown that can have any value entered manually would make the most sense.
I was told simple-gwt has a widget called ComboBox but it appears to be meant for an older version of gwt (we are on the latest - 2.4). Suggestbox would work except there is no "dropdown" arrow to popup the suggestions so users who do not want to type the size cannot use it.
Any suggestions? I was surprised this widget was not built into GWT.
The widget to use is the SuggestBox - you may or may not be able to extend it to use a click handler to show a set of default suggestions (there may be a property to allow it) and to use CSS to show a dropdown arrow.
javadoc here: http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/SuggestBox.html
Example here: http://examples.roughian.com/index.htm#Widgets~SuggestBox
I know that Smart GWT and ext-gwt have widgets that provide this kind of functionality, but neither of those libraries are free.
Of course you could always roll your own.
I found this library "Advanced GWT components". It is a free library that has drop in GWT widgets.
I am currently trying to replicate the functionality of the Sticky application (fourth example under "samples") in my GWT application, specifically NoteView (see the class NoteView in SurfaceView.java in my personal repo or download Google App Engine's SDK, where you'll find it in appengine-java-sdk-1.5.1/demos/sticky).
However, as hard as I try, I just cannot find the place where Google put in the gripper bars on the bottom right hand corner of every note, and where their code allowed the user to resize the note. grepping for "resize" and "resizable" in their sticky dir was not fruitful, and the CSS "resize" functionality was not used either. Also, GWT Textareas are not automatically resizable in the way that these notes in GWT are, and I don't know how to enable this or set it up.
I'm sorry but it really just is a textarea, and your browser does the rest (most browsers make textareas resizable nowadays).
Using Firebug or a similar developer tool, can you tell which differences are there between the Sticky sample and what your code does?
I figured it out -- it was old crud css left over from a gxt implementation. As soon as I removed the css file, the textarea automatically had gripper bars.
Suppose I have a html opened in a Browser. Now in that HTML file , I've a hyperlink and On clicking on that hyperlink, I want to open the Eclipse Help Window.
Same as Like
Eclipse>Welcome>What's New>Plug-in
Development Environment
I know the above is using an intro extension, but I am using a view to display the html. Now please show me a way to achieve the target.
The welcome screen and a lot of other places where hyperlinks appear in Eclipse UI aren't implemented using Browser widget, but rather using the FormText widget. The FormText widget supports limited markup, including hyperlink rendering. You control behavior of the hyperlink.
This article covers the use of FormText control:
http://www.eclipse.org/articles/Article-Forms/article.html
It may be possible to achieve what you are after using an actual Browser control, but if your scenario doesn't call for tricky formats, it will definitely be easier using FormText.
The GWT Incubator contains this widget, but it doesn't provide the clean look and feel I am looking for. The Same page does show precisely the widget I would like to use:
A thin resize bar with the small middle arrow icon which is clicked to hide/show a docked panel on the side of the page.
The widget appears on many google services pages, which makes me suspect that it may be a common widget:
Google Reader
Slightly modified (animated) version on Maps
Does anyone where to find or know how to build this widget in GWT.
How about using a VerticalSpliPanel and overriding the OnClick event? On click you can hide your navigation panel.
I don't think Maps and Google Reader are build using GWT. I know Wave is, and it doesn't use the collapsible panel you're looking for... My guess is that this specific widget is not available in GWT but you may be able to find a suitable replacement. Let me know if you do.