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
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
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-2009 Atlassian. All Rights Reserved.