com.atlassian.jira.plugin.projectpanel.fragment.impl
Class ReleaseNotesMenuFragment

java.lang.Object
  extended by com.atlassian.jira.plugin.projectpanel.fragment.impl.ReleaseNotesMenuFragment
All Implemented Interfaces:
MenuFragment

public class ReleaseNotesMenuFragment
extends Object
implements MenuFragment

Release Notes Link for a version

Since:
v4.0

Constructor Summary
ReleaseNotesMenuFragment(VelocityRequestContextFactory requestContextFactory, I18nHelper.BeanFactory i18nFactory)
           
 
Method Summary
 String getHtml(BrowseContext ctx)
          The Html representation of this menu.
 String getId()
          The id of the fragment div
 boolean showFragment(BrowseContext ctx)
          Whether or not to show this menu fragment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReleaseNotesMenuFragment

public ReleaseNotesMenuFragment(VelocityRequestContextFactory requestContextFactory,
                                I18nHelper.BeanFactory i18nFactory)
Method Detail

getId

public String getId()
Description copied from interface: MenuFragment
The id of the fragment div

Specified by:
getId in interface MenuFragment
Returns:
a valid html id string that represents this menu item/frag.

getHtml

public String getHtml(BrowseContext ctx)
Description copied from interface: MenuFragment
The Html representation of this menu. Typically an anchor followed by an unordered list.

Specified by:
getHtml in interface MenuFragment
Parameters:
ctx - The context under which this menu is being used. Project, component, version...
Returns:
valid html for this menu fragment

showFragment

public boolean showFragment(BrowseContext ctx)
Description copied from interface: MenuFragment
Whether or not to show this menu fragment.

Specified by:
showFragment in interface MenuFragment
Parameters:
ctx - The context under which this menu is being used. Project, component, version...
Returns:
true is the menu should be shown, false otherwise.


Copyright © 2002-2013 Atlassian. All Rights Reserved.