com.atlassian.jira.web.component
Class IssueTableLayoutBean

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

public class IssueTableLayoutBean
extends java.lang.Object

This bean is used to control the display properties of the IssueTable, and works with IssueTableWebComponent and issuetable.vm to achieve this.

It contains sensible defaults.


Field Summary
static java.lang.String CELL_NO_LINK
           
static java.lang.String CELL_TEXT_ONLY
           
static java.lang.String EXCEL_VIEW
          Deprecated. use FieldRenderingContext.EXCEL_VIEW instead
static java.lang.String FULL_LINK
           
static java.lang.String NAVIGATOR_VIEW
          Deprecated. use FieldRenderingContext.NAVIGATOR_VIEW instead
 
Constructor Summary
IssueTableLayoutBean(java.util.List<ColumnLayoutItem> columns)
           
IssueTableLayoutBean(java.util.List<ColumnLayoutItem> columns, java.util.Collection<SearchSort> searchSorts)
           
IssueTableLayoutBean(com.opensymphony.user.User user, java.util.Collection<SearchSort> searchSorts)
           
 
Method Summary
 void addCellDisplayParam(java.lang.String key, java.lang.Object value)
          You can use this method to pass parameters through to individual cells / issues for formatting.
 java.lang.String getActionUrl()
           
 java.util.Map getCellDisplayParams()
           
 java.util.List<ColumnLayoutItem> getColumns()
           
 java.lang.Long getFilterId()
           
 SearchSort getFirstSorter()
           
 java.lang.String getTableCssClass()
           
 boolean isAlternateRowColors()
           
 boolean isDisplayHeader()
           
 boolean isDisplayHeaderPager()
           
 boolean isShowActionColumn()
           
 boolean isShowExteriorTable()
           
 boolean isShowHeaderDescription()
           
 boolean isShowTableEditHeader()
           
 boolean isSortingEnabled()
           
 void setActionUrl(java.lang.String actionUrl)
           
 void setAlternateRowColors(boolean alternateRowColors)
           
 void setDisplayHeader(boolean displayHeader)
           
 void setDisplayHeaderPager(boolean displayHeaderPager)
           
 void setFilterId(java.lang.Long filterId)
           
 void setShowActionColumn(boolean showActionColumn)
           
 void setShowExteriorTable(boolean showExteriorTable)
           
 void setShowHeaderDescription(boolean showHeaderDescription)
           
 void setShowTableEditHeader(boolean showTableEditHeader)
           
 void setSortingEnabled(boolean sortingEnabled)
           
 void setTableCssClass(java.lang.String tableCssClass)
          Set the CSS class for the table element in the issue table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CELL_NO_LINK

public static final java.lang.String CELL_NO_LINK
See Also:
Constant Field Values

CELL_TEXT_ONLY

public static final java.lang.String CELL_TEXT_ONLY
See Also:
Constant Field Values

FULL_LINK

public static final java.lang.String FULL_LINK
See Also:
Constant Field Values

EXCEL_VIEW

public static final java.lang.String EXCEL_VIEW
Deprecated. use FieldRenderingContext.EXCEL_VIEW instead
See Also:
Constant Field Values

NAVIGATOR_VIEW

public static final java.lang.String NAVIGATOR_VIEW
Deprecated. use FieldRenderingContext.NAVIGATOR_VIEW instead
See Also:
Constant Field Values
Constructor Detail

IssueTableLayoutBean

public IssueTableLayoutBean(java.util.List<ColumnLayoutItem> columns)

IssueTableLayoutBean

public IssueTableLayoutBean(java.util.List<ColumnLayoutItem> columns,
                            java.util.Collection<SearchSort> searchSorts)

IssueTableLayoutBean

public IssueTableLayoutBean(com.opensymphony.user.User user,
                            java.util.Collection<SearchSort> searchSorts)
Method Detail

getColumns

public java.util.List<ColumnLayoutItem> getColumns()

getFirstSorter

public SearchSort getFirstSorter()

getFilterId

public java.lang.Long getFilterId()

getActionUrl

public java.lang.String getActionUrl()

addCellDisplayParam

public void addCellDisplayParam(java.lang.String key,
                                java.lang.Object value)
You can use this method to pass parameters through to individual cells / issues for formatting.

See Also:
CELL_NO_LINK, CELL_TEXT_ONLY

getCellDisplayParams

public java.util.Map getCellDisplayParams()

isSortingEnabled

public boolean isSortingEnabled()

setSortingEnabled

public void setSortingEnabled(boolean sortingEnabled)

isShowHeaderDescription

public boolean isShowHeaderDescription()

setShowHeaderDescription

public void setShowHeaderDescription(boolean showHeaderDescription)

isAlternateRowColors

public boolean isAlternateRowColors()

setAlternateRowColors

public void setAlternateRowColors(boolean alternateRowColors)

isShowTableEditHeader

public boolean isShowTableEditHeader()

setShowTableEditHeader

public void setShowTableEditHeader(boolean showTableEditHeader)

setFilterId

public void setFilterId(java.lang.Long filterId)

setActionUrl

public void setActionUrl(java.lang.String actionUrl)

setDisplayHeader

public void setDisplayHeader(boolean displayHeader)

isDisplayHeader

public boolean isDisplayHeader()

isDisplayHeaderPager

public boolean isDisplayHeaderPager()

setDisplayHeaderPager

public void setDisplayHeaderPager(boolean displayHeaderPager)

isShowExteriorTable

public boolean isShowExteriorTable()

setShowExteriorTable

public void setShowExteriorTable(boolean showExteriorTable)

getTableCssClass

public java.lang.String getTableCssClass()

setTableCssClass

public void setTableCssClass(java.lang.String tableCssClass)
Set the CSS class for the table element in the issue table. Defaults to 'grid'


isShowActionColumn

public boolean isShowActionColumn()

setShowActionColumn

public void setShowActionColumn(boolean showActionColumn)


Copyright © 2002-2010 Atlassian. All Rights Reserved.