| java.lang.Object com.google.gwt.user.client.ui.UIObject com.google.gwt.user.client.ui.Widget com.google.gwt.user.client.ui.Hyperlink
Hyperlink | public class Hyperlink extends Widget implements HasHTML,SourcesClickEvents(Code) | | A widget that serves as an "internal" hyperlink. That is, it is a link to
another state of the running application. When clicked, it will create a new
history frame using
com.google.gwt.user.client.History.newItem , but
without reloading the page.
Being a true hyperlink, it is also possible for the user to "right-click,
open link in new window", which will cause the application to be loaded in a
new window at the state specified by the hyperlink.
CSS Style Rules
Example
|
Constructor Summary | |
public | Hyperlink() Creates an empty hyperlink. | public | Hyperlink(String text, boolean asHTML, String targetHistoryToken) Creates a hyperlink with its text and target history token specified. | public | Hyperlink(String text, String targetHistoryToken) Creates a hyperlink with its text and target history token specified. |
Hyperlink | public Hyperlink()(Code) | | Creates an empty hyperlink.
|
Hyperlink | public Hyperlink(String text, boolean asHTML, String targetHistoryToken)(Code) | | Creates a hyperlink with its text and target history token specified.
Parameters: text - the hyperlink's text Parameters: asHTML - true to treat the specified text as html Parameters: targetHistoryToken - the history token to which it will link See Also: Hyperlink.setTargetHistoryToken |
Hyperlink | public Hyperlink(String text, String targetHistoryToken)(Code) | | Creates a hyperlink with its text and target history token specified.
Parameters: text - the hyperlink's text Parameters: targetHistoryToken - the history token to which it will link |
onBrowserEvent | public void onBrowserEvent(Event event)(Code) | | |
setTargetHistoryToken | public void setTargetHistoryToken(String targetHistoryToken)(Code) | | Sets the history token referenced by this hyperlink. This is the history
token that will be passed to
History.newItem when this link is
clicked.
Parameters: targetHistoryToken - the new target history token |
|
|