This example describes the Basics for building the Hyperlink using GWT. The steps involved in Building the Hyperlink are described below:-
private Label label = new Label()
Here we are declaring label. Label is a widget that contains text.
Hyperlink link0 = new Hyperlink("Delhi",
Creating Hyperlink object named 'link0'. Hyperlink is a class or a widget that serves as an "internal" hyperlink
VerticalPanel panel = new VerticalPanel()
Creating Vertical panel. Vertical panel is a class that lays all of its widgets out in a single vertical column.
This is the method of class Vertical panel. By using this method we added a label to the Panel
History is a class that allows us to interact with the browser's history stack. addHistoryListener() is a method of this class to adds a listener to the browser's history stack.
Output of the program
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: October 8, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles