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 Type
    Method
    Description
    void
    Adds a listener to the list that is notified each time a change to the data model occurs.
    int
    collapseRow(int rowIndex)
    Collapse the row at the given row index.
    int
    expandRow(int rowIndex)
    Expand the row at the given row index.
    int
    getIndentLevel(int rowIndex)
    Returns the indent level of the row at the given index..
    getRow(int rowIndex)
    Returns the row object for the given index..
    int
    Returns the total number of rows include open child rows..
    boolean
    isExpandable(int rowIndex)
    Returns true if the row at the given index can be expanded.
    boolean
    isExpanded(int rowIndex)
    Returns true if the row at the given index is expanded..
    void
    Removes 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

      T getRow(int rowIndex)
      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

      void addListener(GTrableModeRowlListener l)
      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

      void removeListener(GTrableModeRowlListener l)
      Removes a listener from the list that is notified each time a change to the model occurs.
      Parameters:
      l - the listener to remove