public interface Section
  • Field Details

  • Method Details

    • getLabel

      String getLabel()
    • getCategories

      List<Category> getCategories()
      Returns:
      A list of categories, ordered by their position. Categories with equal position values will be sorted alphabetically by label.
    • addCategory

      Section addCategory(String categoryKey, Consumer<Section.CategoryBuilder> build)
      Create a category builder to add a new (or append to an existing) category. The category will be added to this section (or the existing category will be updated) when Section.CategoryBuilder.build() is invoked.
      Parameters:
      categoryKey - Key that identifies the category. If no label is further specified, will also be the display label for this category.