* Each member in the list of value providers corresponds to a column in the
* grid.
*
+ * @since 8.1
+ *
* @param body
* the element to read data from
* @param providers
* {@link DesignContext#shouldWriteData(Component)} returns {@code true} for
* the grid that is being written.
*
+ * @since 8.1
+ *
* @param body
* the body element to write the declarative representation of
* data to
/**
* Creates a new {@code TreeGrid} using the given
- * {@code HierarchicalDataProvider}.
+ * {@code HierarchicalDataProvider}, without support for creating columns
+ * based on property names. Use an alternative constructor, such as
+ * {@link TreeGrid#TreeGrid(Class)}, to create a {@code TreeGrid} that
+ * automatically sets up columns based on the type of presented data.
*
* @param dataProvider
* the data provider, not {@code null}
}
/**
- * Creates a {@code TreeGrid} using the given in-memory data.
+ * Creates a {@code TreeGrid} using the given in-memory data, without
+ * support for creating columns based on property names. Use an alternative
+ * constructor, such as {@link TreeGrid#TreeGrid(Class)}, to create a
+ * {@code TreeGrid} that automatically sets up columns based on the type of
+ * presented data.
*
* @see TreeData
*
}
/**
- * Creates a grid using a custom {@link PropertySet} implementation and
- * custom data communicator.
+ * Creates a {@code TreeGrid} using a custom {@link PropertySet}
+ * implementation and custom data communicator.
* <p>
* Property set is used for configuring the initial columns and resolving
* property names for {@link #addColumn(String)} and
if (getColumn(id) == null) {
throw new IllegalArgumentException("No column found for given id");
}
- getColumn(id).setHidden(false);
- getColumn(id).setHidable(false);
- getState().hierarchyColumnId = getInternalIdForColumn(getColumn(id));
+ setHierarchyColumn(getColumn(id));
}
/**