org.broadleafcommerce.openadmin.web.form.component
Class ListGrid
java.lang.Object
org.broadleafcommerce.openadmin.web.form.component.ListGrid
public class ListGrid
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
className
protected String className
friendlyName
protected String friendlyName
idProperty
protected String idProperty
order
protected int order
headerFields
protected Set<Field> headerFields
records
protected List<ListGridRecord> records
toolbarActions
protected List<ListGridAction> toolbarActions
rowActions
protected List<ListGridAction> rowActions
totalRecords
protected int totalRecords
startIndex
protected int startIndex
pageSize
protected int pageSize
canFilterAndSort
protected Boolean canFilterAndSort
isReadOnly
protected Boolean isReadOnly
hideIdColumn
protected Boolean hideIdColumn
addMethodType
protected AddMethodType addMethodType
listGridType
protected String listGridType
sectionKey
protected String sectionKey
externalEntitySectionKey
protected String externalEntitySectionKey
containingEntityId
protected String containingEntityId
subCollectionFieldName
protected String subCollectionFieldName
pathOverride
protected String pathOverride
ListGrid
public ListGrid()
getPath
public String getPath()
getActiveToolbarActions
public List<ListGridAction> getActiveToolbarActions()
- Grabs a filtered list of toolbar actions filtered by whether or not they match the same readonly state as the listgrid
and are thus shown on the screen
getActiveRowActions
public List<ListGridAction> getActiveRowActions()
- Grabs a filtered list of row actions filtered by whether or not they match the same readonly state as the listgrid
and are thus shown on the screen
addRowAction
public void addRowAction(ListGridAction action)
addToolbarAction
public void addToolbarAction(ListGridAction action)
removeAllToolbarActions
public void removeAllToolbarActions()
removeAllRowActions
public void removeAllRowActions()
findToolbarAction
public ListGridAction findToolbarAction(String actionId)
findRowAction
public ListGridAction findRowAction(String actionId)
isSortable
public boolean isSortable()
- This grid is sortable if there is a reorder action defined in the toolbar. If records can be reordered, then the
sort functionality doesn't make any sense.
Also, map structures are currently unsortable.
- Returns:
setListGridType
public void setListGridType(ListGrid.Type listGridType)
getCanFilterAndSort
public Boolean getCanFilterAndSort()
getReadOnly
public Boolean getReadOnly()
getClickable
public Boolean getClickable()
getHideIdColumn
public Boolean getHideIdColumn()
getIdProperty
public String getIdProperty()
setIdProperty
public void setIdProperty(String idProperty)
getClassName
public String getClassName()
setClassName
public void setClassName(String className)
getOrder
public int getOrder()
setOrder
public void setOrder(int order)
getHeaderFields
public Set<Field> getHeaderFields()
setHeaderFields
public void setHeaderFields(Set<Field> headerFields)
getRecords
public List<ListGridRecord> getRecords()
setRecords
public void setRecords(List<ListGridRecord> records)
getToolbarActions
public List<ListGridAction> getToolbarActions()
setToolbarActions
public void setToolbarActions(List<ListGridAction> toolbarActions)
getRowActions
public List<ListGridAction> getRowActions()
setRowActions
public void setRowActions(List<ListGridAction> rowActions)
getStartIndex
public int getStartIndex()
setStartIndex
public void setStartIndex(int startIndex)
getTotalRecords
public int getTotalRecords()
setTotalRecords
public void setTotalRecords(int totalRecords)
getPageSize
public int getPageSize()
setPageSize
public void setPageSize(int pageSize)
setCanFilterAndSort
public void setCanFilterAndSort(Boolean canFilterAndSort)
getAddMethodType
public AddMethodType getAddMethodType()
setAddMethodType
public void setAddMethodType(AddMethodType addMethodType)
getListGridType
public String getListGridType()
getContainingEntityId
public String getContainingEntityId()
setContainingEntityId
public void setContainingEntityId(String containingEntityId)
getSubCollectionFieldName
public String getSubCollectionFieldName()
setSubCollectionFieldName
public void setSubCollectionFieldName(String subCollectionFieldName)
getFriendlyName
public String getFriendlyName()
setFriendlyName
public void setFriendlyName(String friendlyName)
getSectionKey
public String getSectionKey()
setSectionKey
public void setSectionKey(String sectionKey)
getExternalEntitySectionKey
public String getExternalEntitySectionKey()
setExternalEntitySectionKey
public void setExternalEntitySectionKey(String externalEntitySectionKey)
getPathOverride
public String getPathOverride()
setPathOverride
public void setPathOverride(String pathOverride)
setReadOnly
public void setReadOnly(Boolean readOnly)
setHideIdColumn
public void setHideIdColumn(Boolean hideIdColumn)
Copyright © 2013. All Rights Reserved.