com.atlassian.jira.web.component
Class SimpleColumnLayoutItem

java.lang.Object
  extended by com.atlassian.jira.web.component.SimpleColumnLayoutItem
All Implemented Interfaces:
ColumnLayoutItem, Comparable
Direct Known Subclasses:
SubTaskReorderColumnLayoutItem, SubTaskWorkflowLinksColumnLayoutItem

public abstract class SimpleColumnLayoutItem
extends Object
implements ColumnLayoutItem

This column layout is used to be able to create columns that are just producing HTML.

It works in conjunction with IssueTableWebComponent


Constructor Summary
SimpleColumnLayoutItem()
           
 
Method Summary
 int compareTo(Object o)
           
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 getHeaderHtml()
          Subclasses can override this method to provide specific header html
abstract  String getHtml(Map displayParams, Issue issue)
          Subclasses need to implement this to return the HTML for each row.
protected  Issue getIssueObject(org.ofbiz.core.entity.GenericValue genericValue)
          Deprecated.  
 NavigableField getNavigableField()
           
 int getPosition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleColumnLayoutItem

public SimpleColumnLayoutItem()
Method Detail

getNavigableField

public NavigableField getNavigableField()
Specified by:
getNavigableField in interface ColumnLayoutItem

getPosition

public int getPosition()
Specified by:
getPosition in interface ColumnLayoutItem

getHtml

public abstract String getHtml(Map displayParams,
                               Issue issue)
Subclasses need to implement this to return the HTML for each row.

Specified by:
getHtml in interface ColumnLayoutItem

getColumnCssClass

protected String getColumnCssClass()
Subclasses can override this to provide their own CSS class if they need to

Returns:
a css class - defaults to empty String

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
Returns:
A key, which can be run through I18nBean.getText(String) to get a heading

getHeaderHtml

public String getHeaderHtml()
Subclasses can override this method to provide specific header html


compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

getIssueObject

protected Issue getIssueObject(org.ofbiz.core.entity.GenericValue genericValue)
Deprecated. 



Copyright © 2002-2007 Atlassian. All Rights Reserved.