com.atlassian.jira.web.component
Class TableLayoutUtils

java.lang.Object
  extended by com.atlassian.jira.web.component.TableLayoutUtils

public class TableLayoutUtils
extends Object


Constructor Summary
TableLayoutUtils(ApplicationProperties applicationProperties)
           
 
Method Summary
static List filterColumns(List allColumnLayoutItems, List issueFieldConstantTypes)
          Take a list of ColumnLayoutItems, and keep the ones that have a navigable field type represented by any of the strings passed in issueFieldConstantTypes
static List getColumnLayoutItemsFromFields(Set availableFields)
           
 List getColumns(String applicationPropertyName)
          Users can specify a list of columns to display in their application properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableLayoutUtils

public TableLayoutUtils(ApplicationProperties applicationProperties)
Method Detail

filterColumns

public static List filterColumns(List allColumnLayoutItems,
                                 List issueFieldConstantTypes)
Take a list of ColumnLayoutItems, and keep the ones that have a navigable field type represented by any of the strings passed in issueFieldConstantTypes

Parameters:
allColumnLayoutItems - A list of ColumnLayoutItem objects
issueFieldConstantTypes - A list of String objects representing the id of the navigableField
See Also:
IssueFieldConstants, NavigableField

getColumns

public List getColumns(String applicationPropertyName)
Users can specify a list of columns to display in their application properties. This is a method to retrieve them.

Parameters:
applicationPropertyName - The name of the property in jira-application.properties
Returns:
A list of String objects

getColumnLayoutItemsFromFields

public static List getColumnLayoutItemsFromFields(Set availableFields)


Copyright © 2002-2009 Atlassian. All Rights Reserved.