|
GWT Tk 0.2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
asquare.gwt.tk.client.ui.ExternalHyperLink
public class ExternalHyperLink
An anchor linking to a page (or resource) external to the application. Clicking the hyperlink will result in the GWT application being unloaded unless you specify a target frame, window or "_blank".
new ExternalHyperLink("Google", "http://www.google.com");
new ExternalHyperLink("Go to <b>Google</b>", true, "http://www.google.com", "contentFrame");
new ExternalHyperLink("More info", false, "moreInfo.html", ExternalHyperLink.TARGET_BLANK);
new ExternalHyperLink("Email us for more info", "mailto:sales@example.com");
| Field Summary | |
|---|---|
static String |
TARGET_BLANK
Specify this target to open the linked location in a new window. |
static String |
TARGET_PARENT
Specify this target to open the linked location in this frame's parent frame. |
static String |
TARGET_SELF
Specify this target to open the linked location in this frame. |
static String |
TARGET_TOP
Specify this target to open the linked location in the root frame. |
| Constructor Summary | |
|---|---|
ExternalHyperLink(String text,
boolean asHtml,
String url,
String target)
Constructs a new ExternalHyperLink |
|
ExternalHyperLink(String text,
String url)
Constructs a new ExternalHyperLink |
|
| Method Summary | |
|---|---|
String |
getHTML()
|
String |
getTarget()
Get the target frame or window in which the link will open. |
String |
getText()
|
String |
getUrl()
Get the url which the link will open. |
void |
setHTML(String html)
|
void |
setTarget(String target)
Set the target frame or window in which the link will open. |
void |
setText(String text)
|
void |
setUrl(String url)
Set the url which the link will open. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TARGET_BLANK
public static final String TARGET_PARENT
public static final String TARGET_SELF
public static final String TARGET_TOP
| Constructor Detail |
|---|
public ExternalHyperLink(String text,
String url)
text - a String to display in the linkurl - the url the link will open
public ExternalHyperLink(String text,
boolean asHtml,
String url,
String target)
text - a String to display in the linkasHtml - true to treat text as HTML,
false to treat text as plain
texturl - the url the link will opentarget - the case-sensitive name of a target frame or window, or one
of the reserved target constants| Method Detail |
|---|
public String getUrl()
public void setUrl(String url)
public String getTarget()
public void setTarget(String target)
target - the case-sensitive name of a target frame or window, or one
of the reserved target constantspublic String getText()
getText in interface HasTextpublic void setText(String text)
setText in interface HasTextpublic String getHTML()
getHTML in interface HasHTMLpublic void setHTML(String html)
setHTML in interface HasHTML
|
GWT Tk 0.2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||