com.atlassian.greenhopper.plugin.link
Class Link

java.lang.Object
  extended by com.atlassian.greenhopper.plugin.link.Link

public class Link
extends java.lang.Object

Link object displayed in one of the GreenHopper context menus.

Author:
miruflin

Constructor Summary
Link()
           
 
Method Summary
 java.lang.String getHref()
          Get the href value
 java.lang.String getTitle()
          Get the link title
 boolean isAddBaseUrl()
          Should the href value be prefixed by the web application base url? The default implementation returns true if the href value starts with a slash.
 void setHref(java.lang.String href)
          Set the href attribute value.
 void setTitle(java.lang.String text)
          Set the link title
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Link

public Link()
Method Detail

getHref

public java.lang.String getHref()
Get the href value


setHref

public void setHref(java.lang.String href)
Set the href attribute value. The value can be a full url, a relative url or even some javascript of the form "javascript:alert('hello');"

Parameters:
href - the value to set

getTitle

public java.lang.String getTitle()
Get the link title


setTitle

public void setTitle(java.lang.String text)
Set the link title

Parameters:
text - the title of the link

isAddBaseUrl

public boolean isAddBaseUrl()
Should the href value be prefixed by the web application base url? The default implementation returns true if the href value starts with a slash.

Returns:
true if the base url should be added, false otherwise.


Copyright © 2007-2014 Atlassian. All Rights Reserved.