clear();
The clear method removes all titles.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Get tree titles caps = Tree.getCaptions(); // Remove all titles caps.clear();
After executing the example all titles are removed.
See also: