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

java.lang.Object
  extended by com.atlassian.jira.plugin.projectpanel.fragment.impl.FiltersMenuFragment
All Implemented Interfaces:
MenuFragment
Direct Known Subclasses:
FiltersMenuComponentFragment, FiltersMenuVersionFragment

public class FiltersMenuFragment
extends Object
implements MenuFragment

Displays a Project Filters dropdown on the browse project page.

Since:
v4.0

Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
FiltersMenuFragment(WebFragmentWebComponent webFragmentWebComponent)
           
 
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
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

FiltersMenuFragment

public FiltersMenuFragment(WebFragmentWebComponent webFragmentWebComponent)
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.