com.atlassian.jira.issue.fields.screen
Class MockFieldScreenLayoutItem

java.lang.Object
  extended by com.atlassian.jira.issue.fields.screen.MockFieldScreenLayoutItem
All Implemented Interfaces:
FieldScreenLayoutItem

public class MockFieldScreenLayoutItem
extends Object
implements FieldScreenLayoutItem

Simple implementation of a FieldScreenLayoutItem.

Since:
v4.1

Constructor Summary
MockFieldScreenLayoutItem()
           
MockFieldScreenLayoutItem(FieldScreenLayoutItem item)
           
 
Method Summary
 String getCreateHtml(FieldLayoutItem fieldLayoutItem, OperationContext operationContext, webwork.action.Action action, Issue issue)
           
 String getCreateHtml(FieldLayoutItem fieldLayoutItem, OperationContext operationContext, webwork.action.Action action, Issue issue, Map<String,Object> displayParams)
           
 String getEditHtml(FieldLayoutItem fieldLayoutItem, OperationContext operationContext, webwork.action.Action action, Issue issue)
           
 String getEditHtml(FieldLayoutItem fieldLayoutItem, OperationContext operationContext, webwork.action.Action action, Issue issue, Map<String,Object> displayParams)
           
 String getFieldId()
           
 FieldScreenTab getFieldScreenTab()
           
 org.ofbiz.core.entity.GenericValue getGenericValue()
           
 Long getId()
           
 OrderableField getOrderableField()
           
 int getPosition()
          The position of the layout item on the FieldScreenTab
 String getViewHtml(FieldLayoutItem fieldLayoutItem, OperationContext operationContext, webwork.action.Action action, Issue issue)
           
 String getViewHtml(FieldLayoutItem fieldLayoutItem, OperationContext operationContext, webwork.action.Action action, Issue issue, Map<String,Object> displayParams)
           
 boolean isShown(Issue issue)
           
 void remove()
           
 void setFieldId(String fieldId)
           
 void setFieldScreenTab(FieldScreenTab fieldScreenTab)
           
 void setGenericValue(org.ofbiz.core.entity.GenericValue genericValue)
           
 MockFieldScreenLayoutItem setId(Long id)
           
 MockFieldScreenLayoutItem setOrderableField(OrderableField field)
           
 void setPosition(int position)
           
 void store()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockFieldScreenLayoutItem

public MockFieldScreenLayoutItem()

MockFieldScreenLayoutItem

public MockFieldScreenLayoutItem(FieldScreenLayoutItem item)
Method Detail

getId

public Long getId()
Specified by:
getId in interface FieldScreenLayoutItem

setId

public MockFieldScreenLayoutItem setId(Long id)

getPosition

public int getPosition()
Description copied from interface: FieldScreenLayoutItem
The position of the layout item on the FieldScreenTab

Specified by:
getPosition in interface FieldScreenLayoutItem

setPosition

public void setPosition(int position)
Specified by:
setPosition in interface FieldScreenLayoutItem

getFieldId

public String getFieldId()
Specified by:
getFieldId in interface FieldScreenLayoutItem

setFieldId

public void setFieldId(String fieldId)
Specified by:
setFieldId in interface FieldScreenLayoutItem

getOrderableField

public OrderableField getOrderableField()
Specified by:
getOrderableField in interface FieldScreenLayoutItem

setOrderableField

public MockFieldScreenLayoutItem setOrderableField(OrderableField field)

getEditHtml

public String getEditHtml(FieldLayoutItem fieldLayoutItem,
                          OperationContext operationContext,
                          webwork.action.Action action,
                          Issue issue)
Specified by:
getEditHtml in interface FieldScreenLayoutItem

getCreateHtml

public String getCreateHtml(FieldLayoutItem fieldLayoutItem,
                            OperationContext operationContext,
                            webwork.action.Action action,
                            Issue issue)
Specified by:
getCreateHtml in interface FieldScreenLayoutItem

getViewHtml

public String getViewHtml(FieldLayoutItem fieldLayoutItem,
                          OperationContext operationContext,
                          webwork.action.Action action,
                          Issue issue)
Specified by:
getViewHtml in interface FieldScreenLayoutItem

getEditHtml

public String getEditHtml(FieldLayoutItem fieldLayoutItem,
                          OperationContext operationContext,
                          webwork.action.Action action,
                          Issue issue,
                          Map<String,Object> displayParams)
Specified by:
getEditHtml in interface FieldScreenLayoutItem

getCreateHtml

public String getCreateHtml(FieldLayoutItem fieldLayoutItem,
                            OperationContext operationContext,
                            webwork.action.Action action,
                            Issue issue,
                            Map<String,Object> displayParams)
Specified by:
getCreateHtml in interface FieldScreenLayoutItem

getViewHtml

public String getViewHtml(FieldLayoutItem fieldLayoutItem,
                          OperationContext operationContext,
                          webwork.action.Action action,
                          Issue issue,
                          Map<String,Object> displayParams)
Specified by:
getViewHtml in interface FieldScreenLayoutItem

isShown

public boolean isShown(Issue issue)
Specified by:
isShown in interface FieldScreenLayoutItem

getFieldScreenTab

public FieldScreenTab getFieldScreenTab()
Specified by:
getFieldScreenTab in interface FieldScreenLayoutItem

setFieldScreenTab

public void setFieldScreenTab(FieldScreenTab fieldScreenTab)
Specified by:
setFieldScreenTab in interface FieldScreenLayoutItem

getGenericValue

public org.ofbiz.core.entity.GenericValue getGenericValue()
Specified by:
getGenericValue in interface FieldScreenLayoutItem

setGenericValue

public void setGenericValue(org.ofbiz.core.entity.GenericValue genericValue)
Specified by:
setGenericValue in interface FieldScreenLayoutItem

store

public void store()
Specified by:
store in interface FieldScreenLayoutItem

remove

public void remove()
Specified by:
remove in interface FieldScreenLayoutItem

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.