Package docking.widgets.trable
Interface GTrableRowModel<T>
- Type Parameters:
T- the row object type
- All Known Implementing Classes:
AbstractGTrableRowModel,DefaultGTrableRowModel
public interface GTrableRowModel<T>
Row model for a
GTrable.-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener to the list that is notified each time a change to the data model occurs.intcollapseRow(int rowIndex) Collapse the row at the given row index.intexpandRow(int rowIndex) Expand the row at the given row index.intgetIndentLevel(int rowIndex) Returns the indent level of the row at the given index..getRow(int rowIndex) Returns the row object for the given index..intReturns the total number of rows include open child rows..booleanisExpandable(int rowIndex) Returns true if the row at the given index can be expanded.booleanisExpanded(int rowIndex) Returns true if the row at the given index is expanded..voidRemoves a listener from the list that is notified each time a change to the model occurs.
-
Method Details
-
getRowCount
int getRowCount()Returns the total number of rows include open child rows..- Returns:
- the total number of rows include open child rows.
-
getRow
Returns the row object for the given index..- Parameters:
rowIndex- the index of the row to retrieve- Returns:
- the row object for the given index.
-
isExpandable
boolean isExpandable(int rowIndex) Returns true if the row at the given index can be expanded.- Parameters:
rowIndex- the row to test if expandable- Returns:
- true if the row at the given index can be expanded
-
isExpanded
boolean isExpanded(int rowIndex) Returns true if the row at the given index is expanded..- Parameters:
rowIndex- the index of the row to test for expanded- Returns:
- true if the row at the given index is expanded.
-
collapseRow
int collapseRow(int rowIndex) Collapse the row at the given row index.- Parameters:
rowIndex- the index of the row to collapse- Returns:
- the total number of rows removed due to collapsing the row
-
expandRow
int expandRow(int rowIndex) Expand the row at the given row index.- Parameters:
rowIndex- the index of the row to expand- Returns:
- the total number of rows added due to the expand
-
getIndentLevel
int getIndentLevel(int rowIndex) Returns the indent level of the row at the given index..- Parameters:
rowIndex- the index of the row to get its indent level- Returns:
- the indent level of the row at the given index.
-
addListener
Adds a listener to the list that is notified each time a change to the data model occurs.- Parameters:
l- the listener to be notified
-
removeListener
Removes a listener from the list that is notified each time a change to the model occurs.- Parameters:
l- the listener to remove
-