com.atlassian.jira.issue.fields.layout.field
Class FieldLayoutItemImpl

java.lang.Object
  extended by com.atlassian.jira.issue.fields.layout.field.FieldLayoutItemImpl
All Implemented Interfaces:
FieldLayoutItem, Comparable

public class FieldLayoutItemImpl
extends Object
implements FieldLayoutItem


Constructor Summary
FieldLayoutItemImpl(OrderableField orderableField, String description, boolean hidden, boolean required)
           
FieldLayoutItemImpl(OrderableField orderableField, String description, boolean hidden, boolean required, String rendererType)
          Field Item implementation constructor.
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 String getFieldDescription()
           
 OrderableField getOrderableField()
          Gets the field in question.
 String getRendererType()
          Returns the renderer type, e.g.
 int hashCode()
           
 boolean isHidden()
          Whether the field should be invisible in the UI.
 boolean isRequired()
          Whether a field value is mandatory.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldLayoutItemImpl

public FieldLayoutItemImpl(OrderableField orderableField,
                           String description,
                           boolean hidden,
                           boolean required)

FieldLayoutItemImpl

public FieldLayoutItemImpl(OrderableField orderableField,
                           String description,
                           boolean hidden,
                           boolean required,
                           String rendererType)
Field Item implementation constructor.

Parameters:
orderableField - See FieldManager.getOrderableField(java.lang.String)
description - Field description
hidden - Whether field is hidden
required - Whether field is required.
rendererType - The renderer to use for this field
Method Detail

getOrderableField

public OrderableField getOrderableField()
Description copied from interface: FieldLayoutItem
Gets the field in question.

Specified by:
getOrderableField in interface FieldLayoutItem
Returns:
the field.

getFieldDescription

public String getFieldDescription()
Specified by:
getFieldDescription in interface FieldLayoutItem

isHidden

public boolean isHidden()
Description copied from interface: FieldLayoutItem
Whether the field should be invisible in the UI.

Specified by:
isHidden in interface FieldLayoutItem
Returns:
true only if the field should be hidden.

isRequired

public boolean isRequired()
Description copied from interface: FieldLayoutItem
Whether a field value is mandatory.

Specified by:
isRequired in interface FieldLayoutItem
Returns:
true only if a value is required.

getRendererType

public String getRendererType()
Description copied from interface: FieldLayoutItem
Returns the renderer type, e.g. DefaultTextRenderer.RENDERER_TYPE.

Specified by:
getRendererType in interface FieldLayoutItem
Returns:
the renderer for the field configuration for this field.

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

compareTo

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


Copyright © 2002-2009 Atlassian. All Rights Reserved.