Class ListGridRecord
java.lang.Object
org.broadleafcommerce.openadmin.web.form.component.ListGridRecord
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Entityprotected Stringprotected StringConvenience map keyed by the field name.protected ListGridRecordIconprotected Stringprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected ListGridprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAltId()booleanActual, localized error message.Returns aFieldin this record for a particular field name.Normally you should not be looping through these fields.getIcon()getId()intgetIndex()getPath()booleanprotected voidvoidvoidvoidsetDisplayOrder(String displayOrder) voidvoidsetErrorKey(String errorKey) voidsetErrorMessage(String errorMessage) If set, this will override the errorKey.voidvoidsetHiddenFields(List<Field> hiddenFields) voidsetIcon(ListGridRecordIcon icon) voidvoidsetIsError(Boolean isError) voidsetListGrid(ListGrid listGrid) voidvoidsetReadOnly(Boolean readOnly) voidvoidsetStatusCssClass(String statusCssClass)
-
Field Details
-
listGrid
-
id
-
displayOrder
-
altId
-
fields
-
isDirty
-
isError
-
status
-
statusCssClass
-
errorKey
-
errorMessage
-
icon
-
isLocked
-
isReadOnly
-
entity
-
fieldMap
Convenience map keyed by the field name. Used to guarantee field ordering with header fields within a ListGrid
-
-
Constructor Details
-
ListGridRecord
public ListGridRecord()
-
-
Method Details
-
getPath
-
getCanLinkToExternalEntity
public boolean getCanLinkToExternalEntity() -
getExternalEntityPath
-
getListGrid
-
setListGrid
-
getId
-
setId
-
getDisplayOrder
-
setDisplayOrder
-
getIndex
public int getIndex() -
getFields
Normally you should not be looping through these fields. In order to preserve proper field ordering, instead you should loop throughListGrid.getHeaderFields()and then invoke thegetField(String)method with that header field name.- Returns:
-
setFields
-
getHiddenFields
-
setHiddenFields
-
getField
Returns aFieldin this record for a particular field name. Used when displaying aListGridin order to guarantee proper field ordering- Parameters:
fieldName-- Returns:
-
hasField
-
populateFieldMap
protected void populateFieldMap() -
clearFieldMap
public void clearFieldMap() -
getHiddenFieldsJson
-
getIsDirty
-
setDirty
-
getReadOnly
-
setReadOnly
-
getEntity
-
setEntity
-
getIsError
-
setIsError
-
getStatus
-
setStatus
-
getStatusCssClass
-
setStatusCssClass
-
getErrorKey
-
setErrorKey
-
getErrorMessage
Actual, localized error message. If set, this will override the error key.- Returns:
-
setErrorMessage
If set, this will override the errorKey.- Parameters:
errorMessage-
-
getIcon
-
setIcon
-
getHasIcon
-
getAltId
-
setAltId
-
getLocked
-
setLocked
-