org.loom.tags
Interface Link

All Superinterfaces:
HtmlTag, LoomTag
All Known Implementing Classes:
TabTag, UrlTag

public interface Link
extends HtmlTag

Contains the attributes of a html link


Method Summary
 HttpMethod getMethod()
           
 UrlBuilder getUrl()
           
 void setMethod(HttpMethod method)
          Set the HttpMethod of this link.
 
Methods inherited from interface org.loom.tags.HtmlTag
addCssClass, getCssBuilder
 
Methods inherited from interface org.loom.tags.LoomTag
getExtendedAttributes, getRequest, getScopedAttribute, setExtendedAttribute, setScopedAttribute
 

Method Detail

getUrl

UrlBuilder getUrl()
Returns:
the target url of this link

getMethod

HttpMethod getMethod()
Returns:
the HttpMethod of this link. If null, GET will be used

setMethod

void setMethod(HttpMethod method)
Set the HttpMethod of this link. / If specified (and != GET), be aware that you should setup the javascript needed to actually perform the POST call. Browsers without javascript enabled (such as web crawlers, or normal browsers with ctrl+click) will ignore this and perform a GET call that should be accepted and i.e. get this same HTML page.