public interface Composite extends Editable
Modifier and Type | Method and Description |
---|---|
int |
addRow(TreeGridRow parent,
Object[] child)
Adds a child row.
|
void |
clearRemovedRows(TreeGridRow parent)
Cleans the list of removed rows.
|
int |
getCurrentPageNumber(TreeGridRow parent)
This method gets a current page number in the subtree.
|
int |
getDisplayedPages(TreeGridRow parent)
This method gets the number of pages links to be displayed in the subtree.
|
int |
getEndPage(TreeGridRow parent)
This method returns an end page number in the subtree.
|
int |
getEndRow(TreeGridRow parent)
Returns an end row number of the subgrid.
|
int |
getExpandableColumn()
Gets an index of the expandable column.
|
int |
getPageSize(TreeGridRow parent)
Gets a page size of the subtree.
|
Object[][] |
getRemovedRows(TreeGridRow parent)
Gets an array of removed rows data.
|
TreeGridRow |
getRow(TreeGridRow parent,
int index)
Gets a grid row of the subtree by index.
|
TreeGridRow[] |
getRows(TreeGridRow parent)
Gets a list of child rows.
|
int |
getStartPage(TreeGridRow parent)
This method returns a start page number in the subtree.
|
int |
getStartRow(TreeGridRow parent)
Returns a subgrid start row number.
|
int |
getTotalPagesNumber(TreeGridRow parent)
This method returns a number of existing pages in the subtree.
|
int |
getTotalRowCount(TreeGridRow parent)
This method gets a total row count for the specified subtree.
|
boolean |
isSubtreePagingEnabled(TreeGridRow parent)
Checks whether subtree paging is enabled.
|
void |
removeAll(TreeGridRow parent)
Removes all the children of the specified row.
|
void |
removeRow(TreeGridRow parent,
int row)
Removes the child row.
|
void |
setCurrentPageNumber(TreeGridRow parent,
int currentPageNumber)
This method sets the current page number in the subtree.
|
void |
setDisplayedPages(TreeGridRow parent,
int displayedPages)
This method sets the number of pages links to be displayed in the subtree.
|
void |
setExpandableColumn(int index)
Sets the expandable column using its index.
|
void |
setExpandableColumn(String name)
Sets the exapandbale column by its name.
|
void |
setPageSize(TreeGridRow parent,
int size)
Sets a page size value.
|
void |
setParent(TreeGridRow parent,
TreeGridRow child)
Links the child row to the parent.
|
void |
setSortColumn(TreeGridRow parent,
int column,
Comparator<Object> comparator)
This method sets the sort column of the model and sorts the data in the subtree using the specified comparator.
|
void |
setSubtreePagingEnabled(TreeGridRow parent,
boolean enabled)
Sets subtree paging enabled or disabled.
|
void |
update(TreeGridRow parent,
int row,
int column,
Object data)
Updates the specified cell of the subtree with a new value.
|
void |
update(TreeGridRow parent,
Object[][] children)
Adds a list of child rows.
|
void |
updateRow(TreeGridRow parent,
int rowNumber,
Object[] row)
This method updates a row with the specified data set.
|
addColumn, addColumn, addListener, addRow, clearRemovedRows, getColumnNames, getColumns, getGridColumn, getHandler, getRemovedRows, getRow, getRows, getTotalColumnCount, removeAll, removeColumn, removeColumn, removeListener, removeRow, setColumNames, setHandler, setSortColumn, update, update, updateColumn, updateColumn, updateRow
getData, getEndRow, getRowData, getSortColumn, getStartRow, getTotalRowCount, isAscending, isEmpty, setAscending, setSortColumn
getCurrentPageNumber, getDisplayedPages, getEndPage, getPageSize, getStartPage, getTotalPagesNumber, setCurrentPageNumber, setDisplayedPages, setPageSize
int getTotalRowCount(TreeGridRow parent)
parent
- is a parent row.TreeGridRow[] getRows(TreeGridRow parent)
parent
- is a parent row that has children.int addRow(TreeGridRow parent, Object[] child)
parent
- is a parent row.child
- row data.void update(TreeGridRow parent, Object[][] children)
parent
- is a parent row.children
- is child rows data.void update(TreeGridRow parent, int row, int column, Object data)
parent
- is a parent row of the subtree.row
- is a row number in the subtree.column
- is a coulmn number.data
- is a new value of the cell.void removeRow(TreeGridRow parent, int row)
parent
- is a parent row.row
- is a row number to remove.void removeAll(TreeGridRow parent)
parent
- is a parent row.void setCurrentPageNumber(TreeGridRow parent, int currentPageNumber)
parent
- is a parent row.currentPageNumber
- is a current page number.int getTotalPagesNumber(TreeGridRow parent)
parent
- is a parent row.int getStartPage(TreeGridRow parent)
parent
- is a parent row.int getEndPage(TreeGridRow parent)
parent
- is a parent row.int getDisplayedPages(TreeGridRow parent)
parent
- is a parent row.void setDisplayedPages(TreeGridRow parent, int displayedPages)
parent
- is a parent row.displayedPages
- is a number of pages.int getCurrentPageNumber(TreeGridRow parent)
parent
- is a parent row.int getPageSize(TreeGridRow parent)
parent
- is a parent row.void setPageSize(TreeGridRow parent, int size)
parent
- is a parent row.size
- is a page size.void setSubtreePagingEnabled(TreeGridRow parent, boolean enabled)
parent
- is a parent row.enabled
- is a flag value, true
enables paging.boolean isSubtreePagingEnabled(TreeGridRow parent)
parent
- is a parent row.true
if paging is enabled.Object[][] getRemovedRows(TreeGridRow parent)
parent
- is a parent row.void clearRemovedRows(TreeGridRow parent)
parent
- is a parent row.TreeGridRow getRow(TreeGridRow parent, int index)
parent
- is a parent row.index
- is an index value.void setExpandableColumn(int index)
index
- is an index value.int getExpandableColumn()
void setExpandableColumn(String name)
name
- is a name pf the expandable column.void setSortColumn(TreeGridRow parent, int column, Comparator<Object> comparator)
parent
- is a parent row of the subtree.column
- is a column number.comparator
- is a comparator instance.void setParent(TreeGridRow parent, TreeGridRow child)
parent
- is a parent rowchild
- is a child row to be linked to.int getStartRow(TreeGridRow parent)
parent
- is a parent row of the subgrid.int getEndRow(TreeGridRow parent)
parent
- is a parent row of the subgrid.void updateRow(TreeGridRow parent, int rowNumber, Object[] row) throws IllegalArgumentException
parent
- is a parent grid row.rowNumber
- is a row number.row
- is row data.IllegalArgumentException
- if the row number is invalid.Copyright © 2008–2013. All rights reserved.