org.broadleafcommerce.openadmin.web.form.component
Class ListGridRecord

java.lang.Object
  extended by org.broadleafcommerce.openadmin.web.form.component.ListGridRecord

public class ListGridRecord
extends Object


Field Summary
protected  String errorKey
           
protected  Map<String,Field> fieldMap
          Convenience map keyed by the field name.
protected  List<Field> fields
           
protected  List<Field> hiddenFields
           
protected  String id
           
protected  Boolean isDirty
           
protected  Boolean isError
           
protected  ListGrid listGrid
           
 
Constructor Summary
ListGridRecord()
           
 
Method Summary
 void clearFieldMap()
           
 boolean getCanLinkToExternalEntity()
           
 String getErrorKey()
           
 String getExternalEntityPath()
           
 Field getField(String fieldName)
          Returns a Field in this record for a particular field name.
 List<Field> getFields()
          Normally you should not be looping through these fields.
 List<Field> getHiddenFields()
           
 String getHiddenFieldsJson()
           
 String getId()
           
 int getIndex()
           
 Boolean getIsDirty()
           
 Boolean getIsError()
           
 ListGrid getListGrid()
           
 String getPath()
           
 void setDirty(Boolean isDirty)
           
 void setErrorKey(String errorKey)
           
 void setFields(List<Field> fields)
           
 void setHiddenFields(List<Field> hiddenFields)
           
 void setId(String id)
           
 void setIsError(Boolean isError)
           
 void setListGrid(ListGrid listGrid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listGrid

protected ListGrid listGrid

id

protected String id

fields

protected List<Field> fields

hiddenFields

protected List<Field> hiddenFields

isDirty

protected Boolean isDirty

isError

protected Boolean isError

errorKey

protected String errorKey

fieldMap

protected Map<String,Field> fieldMap
Convenience map keyed by the field name. Used to guarantee field ordering with header fields within a ListGrid

Constructor Detail

ListGridRecord

public ListGridRecord()
Method Detail

getPath

public String getPath()

getCanLinkToExternalEntity

public boolean getCanLinkToExternalEntity()

getExternalEntityPath

public String getExternalEntityPath()

getListGrid

public ListGrid getListGrid()

setListGrid

public void setListGrid(ListGrid listGrid)

getId

public String getId()

setId

public void setId(String id)

getIndex

public int getIndex()

getFields

public List<Field> getFields()
Normally you should not be looping through these fields. In order to preserve proper field ordering, instead you should loop through ListGrid.getHeaderFields() and then invoke the getField(String) method with that header field name.

Returns:

setFields

public void setFields(List<Field> fields)

getHiddenFields

public List<Field> getHiddenFields()

setHiddenFields

public void setHiddenFields(List<Field> hiddenFields)

getField

public Field getField(String fieldName)
Returns a Field in this record for a particular field name. Used when displaying a ListGrid in order to guarantee proper field ordering

Parameters:
fieldName -
Returns:

clearFieldMap

public void clearFieldMap()

getHiddenFieldsJson

public String getHiddenFieldsJson()

getIsDirty

public Boolean getIsDirty()

setDirty

public void setDirty(Boolean isDirty)

getIsError

public Boolean getIsError()

setIsError

public void setIsError(Boolean isError)

getErrorKey

public String getErrorKey()

setErrorKey

public void setErrorKey(String errorKey)


Copyright © 2013. All Rights Reserved.