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

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

public class ReportsMenuFragment
extends Object
implements MenuFragment

Displays a reports dropdown on the browse project page.

Since:
v4.0

Constructor Summary
ReportsMenuFragment(com.atlassian.velocity.VelocityManager velocityManager, JiraAuthenticationContext jiraAuthenticationContext, ApplicationProperties applicationProperties, com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
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

ReportsMenuFragment

public ReportsMenuFragment(com.atlassian.velocity.VelocityManager velocityManager,
                           JiraAuthenticationContext jiraAuthenticationContext,
                           ApplicationProperties applicationProperties,
                           com.atlassian.plugin.PluginAccessor pluginAccessor)
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-2012 Atlassian. All Rights Reserved.