com.atlassian.jira.web.component.subtask
Class ActionsAndOperationsColumnLayoutItem

java.lang.Object
  extended by com.atlassian.jira.web.component.SimpleColumnLayoutItem
      extended by com.atlassian.jira.web.component.subtask.ActionsAndOperationsColumnLayoutItem
All Implemented Interfaces:
ColumnLayoutItem, Comparable

public class ActionsAndOperationsColumnLayoutItem
extends SimpleColumnLayoutItem

ColumnLayoutItem that displays an AJAX dropdrown of all available actions and operations. This replaces the previous ActionsLink column layout that showed 3 actions.

Since:
4.0

Constructor Summary
ActionsAndOperationsColumnLayoutItem(com.atlassian.velocity.VelocityManager velocityManager, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, XsrfTokenGenerator xsrfTokenGenerator)
           
 
Method Summary
protected  String getColumnCssClass()
          Subclasses can override this to provide their own CSS class if they need to
 String getColumnHeadingKey()
          Return some text for the Column Header.
 String getHtml(Map displayParams, Issue issue)
          Subclasses need to implement this to return the HTML for each row.
 
Methods inherited from class com.atlassian.jira.web.component.SimpleColumnLayoutItem
compareTo, getHeaderHtml, getIssueObject, getNavigableField, getPosition, isAliasForField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionsAndOperationsColumnLayoutItem

public ActionsAndOperationsColumnLayoutItem(com.atlassian.velocity.VelocityManager velocityManager,
                                            ApplicationProperties applicationProperties,
                                            JiraAuthenticationContext authenticationContext,
                                            XsrfTokenGenerator xsrfTokenGenerator)
Method Detail

getColumnCssClass

protected String getColumnCssClass()
Description copied from class: SimpleColumnLayoutItem
Subclasses can override this to provide their own CSS class if they need to

Overrides:
getColumnCssClass in class SimpleColumnLayoutItem
Returns:
a css class - defaults to empty String

getHtml

public String getHtml(Map displayParams,
                      Issue issue)
Description copied from class: SimpleColumnLayoutItem
Subclasses need to implement this to return the HTML for each row.

Specified by:
getHtml in interface ColumnLayoutItem
Specified by:
getHtml in class SimpleColumnLayoutItem

getColumnHeadingKey

public String getColumnHeadingKey()
Description copied from interface: ColumnLayoutItem
Return some text for the Column Header. By default this calls NavigableField.getColumnHeadingKey() but implementations can override this to provide different column headings as appropriate

Specified by:
getColumnHeadingKey in interface ColumnLayoutItem
Overrides:
getColumnHeadingKey in class SimpleColumnLayoutItem
Returns:
A key, which can be run through I18nHelper.getText(String) to get a heading


Copyright © 2002-2012 Atlassian. All Rights Reserved.