This example describes the Basics for building the
suggestion box using GWT. The steps involved in Building the Suggestion box are
final Label label = new Label("Enter the text in Suggestion box")
Here we are declaring label.
MultiWordSuggestOracle oracle = new MultiWordSuggestOracle()
Here we are creating object of class MultiWordSuggestOracle .MultiWordSuggestOracle is a class that returns suggestion based on the query.
This methods adds a suggestion to the oracle.
Suggest Box box = new SuggestBox(oracle)
Creating Suggest box , A suggest is a text area which displays a pre-configured set of selections.
By this method we are adding label to the rootpanel.Root panel is a panel to which all other widgets must be added. it is not created directly.
Output of the program
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: October 6, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles