The standard HierarchyView implementation will not set the data field on new group nodes (only the title field) and at least an empty string on leaf nodes. Therefore simple HierarchyNode implementations may use a null data field as an indication for a group node (as the BasicHierarchyNode implementation does).
@param sCreateOption One of the strings returned by the methodgetChildCreateOptions() @param sTitle The title of the new child node @return The new child object that has been created @throws NodeAccessException If accessing the node hierarchy fails @see #getChildCreateOptions() @see #insertChild(HierarchyNode,int)
|
|