public interface GridComponent extends ComponentState
ComponentState.MessageType| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getColumnNames()
Returns column names of the current grid
|
Map<String,com.qcadoo.view.internal.components.grid.GridComponentColumn> |
getColumns() |
List<Map<String,String>> |
getColumnValuesOfAllRecords()
Returns column values of the current grid of all records
|
List<Map<String,String>> |
getColumnValuesOfSelectedRecords()
Returns column values of the current grid of selected records
|
List<Entity> |
getEntities()
Returns current content of grid
|
Map<String,String> |
getFilters()
Gets current filters.
|
FilterValueHolder |
getFilterValue()
Gets current criteria modifier parameters value.
|
GridComponentMultiSearchFilter |
getMultiSearchFilter() |
List<Entity> |
getSelectedEntities()
Gets all selected entities
|
Set<Long> |
getSelectedEntitiesIds()
Gets ids of all selected entities
|
Set<String> |
getUserHiddenColumns() |
void |
reloadEntities()
Reload content of grid
|
void |
removeFilterForField(String field) |
void |
setCustomRestriction(CustomRestriction customRestriction)
Adds restriction to this grid
|
void |
setEditable(boolean isEditable)
Defines if this grid should be editable
|
void |
setEntities(List<Entity> entities)
Sets new content of grid
Warning: Paging, searching and sorting can not work when grid content is put directly by this method.
|
void |
setFilters(Map<String,String> filters)
Sets current filters.
|
void |
setFilterValue(FilterValueHolder value)
Sets filter value which will be send to criteria modifier hook.
|
void |
setSelectedEntitiesIds(Set<Long> selectedEntities)
Sets new collection of selected entities
|
getFieldValue, getLocale, getName, getUuid, isEnabled, isHasError, isVisible, performEvent, setEnabled, setFieldValue, setVisibleaddMessage, addMessage, addMessage, addMessage, addMessage, addTranslatedMessage, addTranslatedMessage, addTranslatedMessageMap<String,String> getColumnNames()
List<Map<String,String>> getColumnValuesOfAllRecords()
List<Map<String,String>> getColumnValuesOfSelectedRecords()
List<Entity> getEntities()
Map<String,String> getFilters()
FilterValueHolder getFilterValue()
GridComponentMultiSearchFilter getMultiSearchFilter()
List<Entity> getSelectedEntities()
Set<Long> getSelectedEntitiesIds()
void reloadEntities()
void removeFilterForField(String field)
void setCustomRestriction(CustomRestriction customRestriction)
customRestriction - additional restriction to this gridvoid setEditable(boolean isEditable)
isEditable - true if this grid should be editable, false if notvoid setEntities(List<Entity> entities)
entities - new content of gridvoid setFilterValue(FilterValueHolder value)
value - Copyright © 2010-2025 Qcadoo Limited