Package com.atlassian.jira.web.component
Class SimpleColumnLayoutItem
java.lang.Object
com.atlassian.jira.web.component.SimpleColumnLayoutItem
- All Implemented Interfaces:
ColumnLayoutItem
,Comparable
- Direct Known Subclasses:
AbstractSubTaskColumnLayoutItem
,ActionsAndOperationsColumnLayoutItem
This column layout is used to be able to create columns that are just producing HTML.
It works in conjunction with IssueTableWebComponent
-
Field Summary
Fields inherited from interface com.atlassian.jira.issue.fields.layout.column.ColumnLayoutItem
TO_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
protected String
Subclasses can override this to provide their own CSS class if they need toReturn some text for the Column Header.Subclasses can override this method to provide specific header htmlabstract String
Subclasses need to implement this to return the HTML for each row.getId()
Return the string form of the unique identifier for this column.protected Issue
getIssueObject
(org.ofbiz.core.entity.GenericValue genericValue) Deprecated.int
boolean
isAliasForField
(ApplicationUser user, String sortField)
-
Constructor Details
-
SimpleColumnLayoutItem
public SimpleColumnLayoutItem()
-
-
Method Details
-
getId
Description copied from interface:ColumnLayoutItem
Return the string form of the unique identifier for this column. When the column corresponds to aNavigableField
, the id of the column will be the same as the id of the field.- Specified by:
getId
in interfaceColumnLayoutItem
- Returns:
- the id;
-
getPosition
public int getPosition()- Specified by:
getPosition
in interfaceColumnLayoutItem
-
getHtml
Subclasses need to implement this to return the HTML for each row.- Specified by:
getHtml
in interfaceColumnLayoutItem
-
getColumnCssClass
Subclasses can override this to provide their own CSS class if they need to- Returns:
- a css class - defaults to empty String
-
getColumnHeadingKey
Description copied from interface:ColumnLayoutItem
Return some text for the Column Header. By default this callsNavigableField.getColumnHeadingKey()
but implementations can override this to provide different column headings as appropriate- Specified by:
getColumnHeadingKey
in interfaceColumnLayoutItem
- Returns:
- A key, which can be run through
I18nHelper.getText(String)
to get a heading
-
isAliasForField
- Specified by:
isAliasForField
in interfaceColumnLayoutItem
-
getHeaderHtml
Subclasses can override this method to provide specific header html -
compareTo
- Specified by:
compareTo
in interfaceComparable
-
getIssueObject
Deprecated.