com.github.gwtbootstrap.client.ui.base
Interface HasHref

All Known Implementing Classes:
Button, IconAnchor, NavbarButton

public interface HasHref

Interface for widgets that can work as a link.

Since:
2.0.4.0
Author:
Dominik Mayer

Method Summary
 String getHref()
          Gets the URL of the website, the link is pointing to.
 String getTargetHistoryToken()
          Gets the history token this link points to
 void setHref(String href)
          Sets the href property of the anchor tag.
 void setTargetHistoryToken(String targetHistoryToken)
          Sets the href property of the anchor tag to "#" + targetHistoryToken.
 

Method Detail

setHref

void setHref(String href)
Sets the href property of the anchor tag.

Use it only to set links to another page. Links on the same page or GWT tokens should be set with #setTargetHistoryToken(String)

Parameters:
href - the website URL

getHref

String getHref()
Gets the URL of the website, the link is pointing to.

Returns:
the URL

setTargetHistoryToken

void setTargetHistoryToken(String targetHistoryToken)
Sets the href property of the anchor tag to "#" + targetHistoryToken.

Parameters:
targetHistoryToken - the history token

getTargetHistoryToken

String getTargetHistoryToken()
Gets the history token this link points to

Returns:
the history token


Copyright © 2012 gwtbootstrap. All Rights Reserved.