Class ListGrid
java.lang.Object
org.broadleafcommerce.openadmin.web.form.component.ListGrid
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AddMethodTypeprotected Booleanprotected Stringprotected Stringprotected DataWrapperprotected Stringprotected Stringprotected Stringprotected FieldWrapperprotected longprotected Stringprotected Stringprotected booleanprotected Booleanprotected booleanprotected Stringprotected Booleanprotected booleanprotected Stringprotected Stringprotected longprotected Stringprotected intprotected Booleanprotected List<ListGridAction>protected booleanprotected intprotected intprotected Stringprotected booleanprotected List<ListGridRecord>protected List<ListGridActionGroup>protected List<ListGridAction>protected Stringprotected List<SectionCrumb>protected Stringprotected Stringprotected Stringprotected intprotected Stringprotected Stringprotected List<ListGridActionGroup>protected List<ListGridAction>protected booleanprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCssClass(String className) voidaddModalRowAction(ListGridAction action) voidaddRowAction(ListGridAction action) voidaddRowActionGroup(ListGridActionGroup actionGroup) voidaddToolbarAction(ListGridAction action) voidaddToolbarActionGroup(ListGridActionGroup actionGroup) voidfindHeaderField(String name) findModalRowAction(String actionId) findRowAction(String actionId) findToolbarAction(String actionId) 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 screenGrabs a filtered list of row action groupss filtered by whether or not they match the same readonly state as the listgrid and are thus shown on the screenGrabs 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 screenGrabs a filtered list of toolbar action groupss filtered by whether or not they match the same readonly state as the listgrid and are thus shown on the screenGrabs 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 screenlongbooleanbooleangetJson()longintintgetOrder()intgetPath()intintintbooleanisEmpty()booleanbooleanbooleanbooleanThis grid is sortable if there is a reorder action defined in the toolbar.booleanvoidvoidvoidvoidvoidvoidremoveCssClass(String className) voidsetAddMethodType(AddMethodType addMethodType) voidsetCanFilterAndSort(Boolean canFilterAndSort) voidsetClassName(String className) voidsetContainingEntityId(String containingEntityId) voidsetDataWrapper(DataWrapper dataWrapper) voidsetExternalEntitySectionKey(String externalEntitySectionKey) voidsetFetchType(String fetchType) voidsetFieldBuilder(String fieldBuilder) voidsetFieldWrapper(FieldWrapper fieldWrapper) voidsetFirstId(long firstId) voidsetFriendlyName(String friendlyName) voidsetHeaderFields(Set<Field> headerFields) voidsetHelpText(String helpText) voidsetHideFriendlyName(boolean hideFriendlyName) voidsetHideIdColumn(Boolean hideIdColumn) voidsetHtmlEscapeMainEntityLink(boolean htmlEscapeMainEntityLink) voidsetIdProperty(String idProperty) voidsetIsReadOnly(Boolean readOnly) voidsetIsSortable(boolean isSortable) voidvoidsetJsonFieldName(String jsonFieldName) voidsetLastId(long lastId) voidsetListGridType(ListGrid.Type listGridType) voidsetListGridTypeString(String listGridType) Allows for completely custom types other than the ones definedListGrid.Typeto assign unique handlers to on the JS sidevoidsetLowerCount(int lowerCount) voidsetManualFetch(Boolean manualFetch) voidsetModalRowActions(List<ListGridAction> modalRowActions) voidsetMultiSelectCheckBoxOnly(boolean multiSelectCheckBoxOnly) voidsetOrder(int order) voidsetPageSize(int pageSize) voidsetPathOverride(String pathOverride) voidsetPromptSearch(boolean promptSearch) voidsetRecords(List<ListGridRecord> records) voidsetRowActionGroups(List<ListGridActionGroup> rowActionGroups) voidsetRowActions(List<ListGridAction> rowActions) voidsetSearchFieldsTemplateOverride(String searchFieldsTemplateOverride) voidsetSectionCrumbs(List<SectionCrumb> sectionCrumbs) voidsetSectionKey(String sectionKey) voidsetSelectizeUrl(String selectizeUrl) voidsetSelectType(ListGrid.SelectType selectType) voidsetSelectTypeString(String selectType) voidsetStartIndex(int startIndex) voidsetSubCollectionFieldName(String subCollectionFieldName) voidsetTemplateOverride(String templateOverride) voidsetToolbarActionGroups(List<ListGridActionGroup> toolbarActionGroups) voidsetToolbarActions(List<ListGridAction> toolbarActions) voidsetTotalCountLessThanPageSize(boolean totalCountLessThanPageSize) voidsetTotalRecords(int totalRecords) voidsetUpperCount(int upperCount)
-
Field Details
-
className
-
friendlyName
-
idProperty
-
order
protected int order -
isSortable
protected boolean isSortable -
htmlEscapeMainEntityLink
protected boolean htmlEscapeMainEntityLink -
hideFriendlyName
protected boolean hideFriendlyName -
headerFields
-
records
-
toolbarActions
-
rowActions
-
toolbarActionGroups
-
rowActionGroups
-
modalRowActions
-
totalRecords
protected int totalRecords -
startIndex
protected int startIndex -
pageSize
protected int pageSize -
canFilterAndSort
-
isReadOnly
-
hideIdColumn
-
fetchType
-
firstId
protected long firstId -
lastId
protected long lastId -
upperCount
protected int upperCount -
lowerCount
protected int lowerCount -
totalCountLessThanPageSize
protected boolean totalCountLessThanPageSize -
promptSearch
protected boolean promptSearch -
multiSelectCheckBoxOnly
protected boolean multiSelectCheckBoxOnly -
addMethodType
-
listGridType
-
selectType
-
selectizeUrl
-
manualFetch
-
helpText
-
sectionKey
-
sectionCrumbs
-
externalEntitySectionKey
-
containingEntityId
-
subCollectionFieldName
-
pathOverride
-
searchFieldsTemplateOverride
-
templateOverride
-
fieldBuilder
-
dataWrapper
-
json
-
jsonFieldName
-
fieldWrapper
-
-
Constructor Details
-
ListGrid
public ListGrid()
-
-
Method Details
-
getPath
-
getSectionCrumbRepresentation
-
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
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 -
getActiveToolbarActionGroups
Grabs a filtered list of toolbar action groupss filtered by whether or not they match the same readonly state as the listgrid and are thus shown on the screen -
getActiveRowActionGroups
Grabs a filtered list of row action groupss filtered by whether or not they match the same readonly state as the listgrid and are thus shown on the screen -
getActiveModalRowActions
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
-
addModalRowAction
-
addToolbarAction
-
removeAllToolbarActions
public void removeAllToolbarActions() -
removeAllRowActions
public void removeAllRowActions() -
addToolbarActionGroup
-
removeAllToolbarActionGroups
public void removeAllToolbarActionGroups() -
addRowActionGroup
-
removeAllRowActionGroups
public void removeAllRowActionGroups() -
removeAllModalRowActions
public void removeAllModalRowActions() -
findToolbarAction
-
findRowAction
-
findModalRowAction
-
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:
-
setListGridTypeString
Allows for completely custom types other than the ones definedListGrid.Typeto assign unique handlers to on the JS side- Parameters:
listGridType-
-
setSelectTypeString
-
getCanFilterAndSort
-
setCanFilterAndSort
-
getIsReadOnly
-
setIsReadOnly
-
getClickable
-
getHideIdColumn
-
setHideIdColumn
-
getIdProperty
-
setIdProperty
-
getClassName
-
setClassName
-
getOrder
public int getOrder() -
setOrder
public void setOrder(int order) -
getIsSortable
public boolean getIsSortable() -
setIsSortable
public void setIsSortable(boolean isSortable) -
getHideFriendlyName
public boolean getHideFriendlyName() -
setHideFriendlyName
public void setHideFriendlyName(boolean hideFriendlyName) -
getHeaderFields
-
setHeaderFields
-
findHeaderField
-
isEmpty
public boolean isEmpty() -
getRecords
-
setRecords
-
getToolbarActions
-
setToolbarActions
-
getRowActions
-
setRowActions
-
getToolbarActionGroups
-
setToolbarActionGroups
-
getRowActionGroups
-
setRowActionGroups
-
getModalRowActions
-
setModalRowActions
-
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) -
getAddMethodType
-
setAddMethodType
-
getListGridType
-
setListGridType
-
getSelectType
-
setSelectType
-
getContainingEntityId
-
setContainingEntityId
-
getSubCollectionFieldName
-
setSubCollectionFieldName
-
getFriendlyName
-
setFriendlyName
-
getSectionKey
-
setSectionKey
-
getSelectizeUrl
-
setSelectizeUrl
-
getManualFetch
-
setManualFetch
-
getExternalEntitySectionKey
-
setExternalEntitySectionKey
-
getPathOverride
-
setPathOverride
-
getSearchFieldsTemplateOverride
-
setSearchFieldsTemplateOverride
-
getTemplateOverride
-
setTemplateOverride
-
getSectionCrumbs
-
setSectionCrumbs
-
getFieldBuilder
-
setFieldBuilder
-
getFieldWrapper
-
setFieldWrapper
-
getDataWrapper
-
setDataWrapper
-
getJson
-
setJson
-
getJsonFieldName
-
setJsonFieldName
-
getFetchType
-
setFetchType
-
getFirstId
public long getFirstId() -
setFirstId
public void setFirstId(long firstId) -
getLastId
public long getLastId() -
setLastId
public void setLastId(long lastId) -
getUpperCount
public int getUpperCount() -
setUpperCount
public void setUpperCount(int upperCount) -
getLowerCount
public int getLowerCount() -
setLowerCount
public void setLowerCount(int lowerCount) -
isTotalCountLessThanPageSize
public boolean isTotalCountLessThanPageSize() -
setTotalCountLessThanPageSize
public void setTotalCountLessThanPageSize(boolean totalCountLessThanPageSize) -
isPromptSearch
public boolean isPromptSearch() -
setPromptSearch
public void setPromptSearch(boolean promptSearch) -
getHelpText
-
setHelpText
-
isMultiSelectCheckBoxOnly
public boolean isMultiSelectCheckBoxOnly() -
setMultiSelectCheckBoxOnly
public void setMultiSelectCheckBoxOnly(boolean multiSelectCheckBoxOnly) -
addCssClass
-
removeCssClass
-
clearCssClasses
public void clearCssClasses() -
getCssClassNames
-
getFirstSearchableFieldFriendlyName
-
isHtmlEscapeMainEntityLink
public boolean isHtmlEscapeMainEntityLink() -
setHtmlEscapeMainEntityLink
public void setHtmlEscapeMainEntityLink(boolean htmlEscapeMainEntityLink)
-