com.atlassian.jira.plugin.webfragment.model
Class SimpleLinkImpl
java.lang.Object
com.atlassian.jira.plugin.webfragment.model.SimpleLinkSectionImpl
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
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 |
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 linklabel
- The optional label to display for the linktitle
- The optional title (tooltip) of the linkiconUrl
- The optional url pointing an image for the linkstyle
- The optional style to apply to the linkurl
- The url that the link points toaccessKey
- 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 linklabel
- The optional label to display for the linktitle
- The optional title (tooltip) of the linkiconUrl
- The optional url pointing an image for the linkstyle
- The optional style to apply to the linkparams
- map of parametersurl
- The url that the link points toaccessKey
- The optional easy access key for the link
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.