com.atlassian.jira.plugin.webfragment.model
Class SimpleLinkImpl

java.lang.Object
  extended by com.atlassian.jira.plugin.webfragment.model.SimpleLinkSectionImpl
      extended by com.atlassian.jira.plugin.webfragment.model.SimpleLinkImpl
All Implemented Interfaces:
SimpleLink, SimpleLinkSection

public class SimpleLinkImpl
extends SimpleLinkSectionImpl
implements SimpleLink

Default implementation of SimpleLink. Simple bean containing no real logic.

Since:
v4.0

Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.webfragment.model.SimpleLinkSectionImpl
iconUrl, id, label, params, style, title
 
Constructor Summary
SimpleLinkImpl(String id, String label, String title, String iconUrl, String style, Map<String,String> params, String url, String accessKey)
          Constructor taking all attributes of a link
SimpleLinkImpl(String id, String label, String title, String iconUrl, String style, String url, String accessKey)
          Constructor taking all attributes of a link
 
Method Summary
 boolean equals(Object o)
           
 String getAccessKey()
          The access key used to quickly select link
 String getUrl()
          The URL that the link points to.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class com.atlassian.jira.plugin.webfragment.model.SimpleLinkSectionImpl
getIconUrl, getId, getLabel, getParams, getStyleClass, getTitle
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.plugin.webfragment.model.SimpleLinkSection
getIconUrl, getId, getLabel, getParams, getStyleClass, getTitle
 

Constructor Detail

SimpleLinkImpl

public SimpleLinkImpl(String id,
                      String label,
                      String title,
                      String iconUrl,
                      String style,
                      @NotNull
                      String url,
                      String accessKey)
Constructor taking all attributes of a link

Parameters:
id - The unique id of the link
label - The optional label to display for the link
title - The optional title (tooltip) of the link
iconUrl - The optional url pointing an image for the link
style - The optional style to apply to the link
url - The url that the link points to
accessKey - The optional easy access key for the link

SimpleLinkImpl

public SimpleLinkImpl(String id,
                      String label,
                      String title,
                      String iconUrl,
                      String style,
                      Map<String,String> params,
                      @NotNull
                      String url,
                      String accessKey)
Constructor taking all attributes of a link

Parameters:
id - The unique id of the link
label - The optional label to display for the link
title - The optional title (tooltip) of the link
iconUrl - The optional url pointing an image for the link
style - The optional style to apply to the link
params - map of parameters
url - The url that the link points to
accessKey - The optional easy access key for the link
Method Detail

getUrl

public String getUrl()
Description copied from interface: SimpleLink
The URL that the link points to. This should never be null.

Specified by:
getUrl in interface SimpleLink
Returns:
The URL that the link points to

getAccessKey

public String getAccessKey()
Description copied from interface: SimpleLink
The access key used to quickly select link

Specified by:
getAccessKey in interface SimpleLink
Returns:
The access key used to quickly select link

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2011 Atlassian. All Rights Reserved.