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  Map<String,Field> fieldMap
          Convenience map keyed by the field name.
protected  List<Field> fields
           
protected  String id
           
protected  ListGrid listGrid
           
 
Constructor Summary
ListGridRecord()
           
 
Method Summary
 boolean getCanLinkToExternalEntity()
           
 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.
 String getId()
           
 ListGrid getListGrid()
           
 String getPath()
           
 void setFields(List<Field> fields)
           
 void setId(String id)
           
 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

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)

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)

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:


Copyright © 2013. All Rights Reserved.