public interface Folder extends Element
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
add(Element child)
Appends a child  
Element to the end of the
  Folder. | 
boolean | 
canAdd(Element element)
Other classes can call this method to determine whether the given
   
Element can be added to the Folder. | 
boolean | 
canRemove(Element element)
Other classes can call this method to determine whether the
  specified  
Element can be removed from this
  Folder. | 
boolean | 
containsChild(Element child)
 | 
boolean | 
remove(Element child)
Removes the specified child  
Element. | 
void | 
removeAll()
Removes all children from the folder. 
 | 
int | 
size()
Returns the current number of children in the folder. 
 | 
getAttributes, getChildren, getData, mayHaveChildrengetIcon, getLongLabel, getShortLabel, getToolTipText, toStringboolean canAdd(Element element)
Element can be added to the Folder.boolean canRemove(Element element)
Element can be removed from this
  Folder.boolean remove(Element child)
Element.  If the child object
  appears more than once, only the first instance is removed.child - The child object to remove.boolean containsChild(Element child)
int size()
void removeAll()