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<FieldLayoutItem>

public class FieldLayoutItemImpl
extends Object
implements FieldLayoutItem


Constructor Summary
FieldLayoutItemImpl(OrderableField orderableField, String description, boolean hidden, boolean required)
           
FieldLayoutItemImpl(OrderableField orderableField, String fieldDescription, boolean hidden, boolean required, FieldManager fieldManager)
           
FieldLayoutItemImpl(OrderableField orderableField, String description, boolean hidden, boolean required, String rendererType)
          Field Item implementation constructor.
FieldLayoutItemImpl(OrderableField orderableField, String description, boolean hidden, boolean required, String rendererType, FieldManager fieldManager)
           
 
Method Summary
 int compareTo(FieldLayoutItem fieldLayoutItem)
           
 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

FieldLayoutItemImpl

public FieldLayoutItemImpl(OrderableField orderableField,
                           String fieldDescription,
                           boolean hidden,
                           boolean required,
                           FieldManager fieldManager)

FieldLayoutItemImpl

public FieldLayoutItemImpl(OrderableField orderableField,
                           String description,
                           boolean hidden,
                           boolean required,
                           String rendererType,
                           FieldManager fieldManager)
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(FieldLayoutItem fieldLayoutItem)
Specified by:
compareTo in interface Comparable<FieldLayoutItem>


Copyright © 2002-2010 Atlassian. All Rights Reserved.