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

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

public class MockFieldScreen
extends Object
implements FieldScreen

Simple mock implementation of FieldScreen.

Since:
v4.1

Field Summary
 
Fields inherited from interface com.atlassian.jira.issue.fields.screen.FieldScreen
DEFAULT_SCREEN_ID
 
Constructor Summary
MockFieldScreen()
           
 
Method Summary
 MockFieldScreenTab addMockTab()
           
 FieldScreenTab addTab(String tabName)
           
 boolean containsField(String fieldId)
           
 boolean equals(Object o)
           
 String getDescription()
           
 org.ofbiz.core.entity.GenericValue getGenericValue()
           
 Long getId()
           
 String getName()
           
 FieldScreenTab getTab(int tabPosition)
           
 List<FieldScreenTab> getTabs()
           
 int hashCode()
           
 boolean isModified()
          Indicates whether any fields of the screen have been modified
 void moveFieldScreenTabLeft(int tabPosition)
           
 void moveFieldScreenTabRight(int tabPosition)
           
 void remove()
           
 void removeFieldScreenLayoutItem(String fieldId)
           
 void removeTab(int tabPosition)
           
 void resequence()
           
 void setDescription(String description)
           
 void setGenericValue(org.ofbiz.core.entity.GenericValue genericValue)
           
 void setId(Long id)
           
 void setName(String name)
           
 void store()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockFieldScreen

public MockFieldScreen()
Method Detail

getId

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

getName

public String getName()
Specified by:
getName in interface FieldScreen

setName

public void setName(String name)
Specified by:
setName in interface FieldScreen

getDescription

public String getDescription()
Specified by:
getDescription in interface FieldScreen

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface FieldScreen

getTabs

public List<FieldScreenTab> getTabs()
Specified by:
getTabs in interface FieldScreen

getTab

public FieldScreenTab getTab(int tabPosition)
Specified by:
getTab in interface FieldScreen

addMockTab

public MockFieldScreenTab addMockTab()

addTab

public FieldScreenTab addTab(String tabName)
Specified by:
addTab in interface FieldScreen

removeTab

public void removeTab(int tabPosition)
Specified by:
removeTab in interface FieldScreen

moveFieldScreenTabLeft

public void moveFieldScreenTabLeft(int tabPosition)
Specified by:
moveFieldScreenTabLeft in interface FieldScreen

moveFieldScreenTabRight

public void moveFieldScreenTabRight(int tabPosition)
Specified by:
moveFieldScreenTabRight in interface FieldScreen

resequence

public void resequence()
Specified by:
resequence in interface FieldScreen

getGenericValue

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

setGenericValue

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

isModified

public boolean isModified()
Description copied from interface: FieldScreen
Indicates whether any fields of the screen have been modified

Specified by:
isModified in interface FieldScreen

store

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

remove

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

setId

public void setId(Long id)
Specified by:
setId in interface FieldScreen

containsField

public boolean containsField(String fieldId)
Specified by:
containsField in interface FieldScreen

removeFieldScreenLayoutItem

public void removeFieldScreenLayoutItem(String fieldId)
Specified by:
removeFieldScreenLayoutItem in interface FieldScreen

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.