com.atlassian.jira.web.bean
Class FieldScreenBean

java.lang.Object
  extended by com.atlassian.jira.web.bean.FieldScreenBean

public class FieldScreenBean
extends Object

A simple bean to help issuefields.jsp do the job of passing the displayParameters map to FieldScreenRenderLayoutItem.getCreateHtml(webwork.action.Action, com.atlassian.jira.issue.customfields.OperationContext, com.atlassian.jira.issue.Issue, java.util.Map).

The map passed in as a parameter to the JSP include is augmented with additional display parameters desired by fields when rendering themselves. This is then passed on to the getCreateHtml and getEditHtml methods.

Since:
v4.2
See Also:
FieldScreenRenderLayoutItem.getCreateHtml(webwork.action.Action, com.atlassian.jira.issue.customfields.OperationContext, com.atlassian.jira.issue.Issue, java.util.Map), FieldScreenRenderLayoutItem.getEditHtml(webwork.action.Action, com.atlassian.jira.issue.customfields.OperationContext, com.atlassian.jira.issue.Issue, java.util.Map)

Constructor Summary
FieldScreenBean()
           
 
Method Summary
 Map<String,Object> computeDisplayParams(webwork.view.taglib.IteratorStatus fieldStatus, Map<String,Object> baseDisplayParams)
          Given a base map, we add in extra information about the current IteratorStatus of the field being rendered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldScreenBean

public FieldScreenBean()
Method Detail

computeDisplayParams

public Map<String,Object> computeDisplayParams(webwork.view.taglib.IteratorStatus fieldStatus,
                                               Map<String,Object> baseDisplayParams)
Given a base map, we add in extra information about the current IteratorStatus of the field being rendered. This allows us to pass along information about the position of the field on the FieldScreenTab in relation to other fields.

Parameters:
fieldStatus - the status from the iterator tag that is relevant to the current field
baseDisplayParams - the displayParameters map that was passed in to the JSP include as a parameter
Returns:
a map which can be passed along as the "displayParameters" map to the field rendering code


Copyright © 2002-2013 Atlassian. All Rights Reserved.