public class LazyTreeGridDataModel extends TreeGridDataModel implements LazyLoadableComposite
Modifier and Type | Class and Description |
---|---|
protected class |
LazyTreeGridDataModel.DelegateLazyGridDataModel
This is a delegate class for lazy tree rows creation.
|
TreeGridDataModel.DelegateEditableGridDataModel
Constructor and Description |
---|
LazyTreeGridDataModel(Object[][] data)
Creates an instance of this class and initializes data putting into lazy loadable delegate.
|
LazyTreeGridDataModel(TreeDataModelCallbackHandler<? extends Composite,? extends LazyTreeGridRow> handler)
Creates an inistanec of this class and synchronizes data using the handler.
|
Modifier and Type | Method and Description |
---|---|
int |
addRow(TreeGridRow parent,
Object[] row)
Adds a child row.
|
int |
getEndRow(TreeGridRow parent)
Returns an end row number of the subgrid.
|
int |
getTotalRowCount(TreeGridRow parent)
This method gets a total row count for the specified subtree.
|
void |
removeAll(TreeGridRow parent)
Removes all the children of the specified row.
|
void |
removeRow(TreeGridRow parent,
int rowNumber)
Removes the child row.
|
void |
setTotalRowCount(int totalRowCount)
This method sets a total row count for a lazy loadable model.
|
void |
setTotalRowCount(TreeGridRow gridRow,
int totalRowCount)
Sets a total gridRow count of the subtree rows.
|
void |
update(TreeGridRow parent,
Object[][] children)
Adds a list of child rows.
|
addColumn, addColumn, addListener, addRow, clearRemovedRows, clearRemovedRows, fireRowEvent, getChildrenList, getColumnNames, getColumns, getCurrentPageNumber, getCurrentPageNumber, getData, getDelegate, getDisplayedPages, getDisplayedPages, getEndPage, getEndPage, getEndRow, getExpandableColumn, getGridColumn, getHandler, getPageSize, getPageSize, getPagingFlags, getRemovedRows, getRemovedRows, getRemovedRowsList, getRemovedRowsMap, getRootRows, getRow, getRow, getRowData, getRows, getRows, getSortColumn, getStartPage, getStartPage, getStartRow, getStartRow, getSubRows, getThisModel, getTotalColumnCount, getTotalPagesNumber, getTotalPagesNumber, getTotalRowCount, isAscending, isEmpty, isSubtreePagingEnabled, remapIndexes, removeAll, removeColumn, removeColumn, removeListener, removeRow, setAscending, setColumNames, setCurrentPageNumber, setCurrentPageNumber, setDelegate, setDisplayedPages, setDisplayedPages, setExpandableColumn, setExpandableColumn, setHandler, setPageSize, setPageSize, setPagingFlags, setParent, setSortColumn, setSortColumn, setSortColumn, setSubRows, setSubtreePagingEnabled, update, update, update, updateColumn, updateColumn, updateRow, updateRow
public LazyTreeGridDataModel(Object[][] data)
data
- is a data set to put.public LazyTreeGridDataModel(TreeDataModelCallbackHandler<? extends Composite,? extends LazyTreeGridRow> handler)
handler
- is a handler to be used for synchronization.public int getTotalRowCount(TreeGridRow parent)
getTotalRowCount
in interface Composite
getTotalRowCount
in class TreeGridDataModel
parent
- is a parent row.public void setTotalRowCount(int totalRowCount)
setTotalRowCount
in interface LazyLoadable
totalRowCount
- is a total row count.public void setTotalRowCount(TreeGridRow gridRow, int totalRowCount)
setTotalRowCount
in interface LazyLoadableComposite
gridRow
- is a parent gridRow.totalRowCount
- is a total gridRow count of the subtree rows.public int addRow(TreeGridRow parent, Object[] row) throws IllegalArgumentException
addRow
in interface Composite
addRow
in class TreeGridDataModel
parent
- is a parent row.row
- row data.IllegalArgumentException
public void update(TreeGridRow parent, Object[][] children)
update
in interface Composite
update
in class TreeGridDataModel
parent
- is a parent row.children
- is child rows data.public void removeRow(TreeGridRow parent, int rowNumber) throws IllegalArgumentException
removeRow
in interface Composite
removeRow
in class TreeGridDataModel
parent
- is a parent row.rowNumber
- is a row number to remove.IllegalArgumentException
public int getEndRow(TreeGridRow parent)
getEndRow
in interface Composite
getEndRow
in class TreeGridDataModel
parent
- is a parent row of the subgrid.public void removeAll(TreeGridRow parent)
removeAll
in interface Composite
removeAll
in class TreeGridDataModel
parent
- is a parent row.Copyright © 2008–2013. All rights reserved.