-
-
Notifications
You must be signed in to change notification settings - Fork 458
1.4.1 TableView Adapter Helper functions
Evren Coskun edited this page Apr 13, 2020
·
3 revisions
TableViewAdapter has some helper functions these are;
setColumnHeaderItems(List<YourColumnHeaderModel> columnHeaderItems)
setRowHeaderItems(List<YourRowHeaderModel> rowHeaderItems)
setCellItems(List<List<YourCellModel>> cellItems)
setAllItems(List<YourColumnHeaderModel> columnHeaderItems, List<YourRowHeaderModel> rowHeaderItems, List<List<YourCellModel>> cellItems)
getColumnHeaderItem(int position)
getRowHeaderItem(int position)
getCellItem(int columnPosition, int rowPosition)
getCellRowItems(int rowPosition)
getCellColumnItems(int columnPosition)
removeRow(int rowPosition)
removeRow(int rowPosition, boolean updateRowHeader)
removeRowRange(int rowPositionStart, int itemCount)
removeColumn(int columnPosition)
addRow(int rowPosition,YourRowHeaderModel rowHeaderItem, List<YourCellModel> cellItems)
addRowRange(int rowPositionStart, List<YourRowHeaderModel> rowHeaderItem, List<List<YourCellModel>> cellItems)
addColumn(int columnPosition, YourColumnHeaderModel columnHeaderItem, List<YourCellModel> cellItems)
changeRowHeaderItem(int rowPosition, YourRowHeaderModel rowHeaderModel)
changeRowHeaderItemRange(int rowPositionStart, List<YourRowHeaderModel> rowHeaderModelList)
changeCellItem(int columnPosition, int rowPosition, YourCellModel cellModel)
changeColumnHeader(int columnPosition, YourColumnHeaderModel columnHeaderModel)
changeColumnHeaderRange(int columnPositionStart, List<YourColumnHeaderModel> columnHeaderModelList)
setRowHeaderWidth(int rowHeaderWidth)
setColumnHeaderHeight(int columnHeaderHeight)
getCornerView()
getColumnHeaderRecyclerViewAdapter()
getRowHeaderRecyclerViewAdapter()
getCellRecyclerViewAdapter()
notifyDataSetChanged()
for more information please check out AbstractTableViewAdapter.