Skip to content

Introduce isFlatHierarchy and getDepth to HierarchicalDataProvider #21878

Closed

Description

@vursen
  1. Introduce isFlatHierarchy and getDepth methods to HierarchicalDataProvider:
/** Override to enable flat hierarchy mode for a data provider */
default void isFlatHierarchy() {
  return false;
}

/** Provide implementation when isFlatHierarchy is set to true */
default int getDepth(T item) {
    throw new UnsupportedOperationException();
}
  1. Update the new HierarchicalDataCommunicator to switch to flat hierarchy mode when isFlatHierarchy returns true.

Activity

  1. transferred this issue fromvaadin/platformon Jul 15, 2025
  2. changed the title [-]Support isFlatHierarchy and getDepth methods in HierarchicalDataProvider[/-] [+]Introduce isFlatHierarchy and getDepth methods to HierarchicalDataProvider[/+] on Jul 15, 2025
  3. changed the title [-]Introduce isFlatHierarchy and getDepth methods to HierarchicalDataProvider[/-] [+]Introduce isFlatHierarchy and getDepth to HierarchicalDataProvider[/+] on Jul 15, 2025
  4. self-assigned this
    on Aug 12, 2025
  5. linked a pull request that will close this issuefeat: Introduce flattened hierarchy format #22040on Aug 22, 2025
  6. removed theissue type on Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions