Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.ide.model
Interface Folder

All Superinterfaces:
Displayable, Element
All Known Subinterfaces:
Palette, PalettePage
All Known Implementing Classes:
ConnectionListFilterNode, ConnectionNodeDecorator, Connections, DataContainer, DefaultContainer, DefaultFolder, HashStructureNode, IdeLayout, IdeSystem, Layouts, ObservableFolder, Preferences, Project, ProviderNode, Workspace, Workspaces, XMLDataContainer

public interface Folder
extends Element

The Folder interface extends Element by adding methods for managing child Elements contained by the Folder.


Method Summary
 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)
          Returns true if the folder contains the specified child Element; returns false otherwise.
 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.

 

Methods inherited from interface oracle.ide.model.Element
getAttributes, getChildren, getData, mayHaveChildren

 

Methods inherited from interface oracle.ide.model.Displayable
getIcon, getLongLabel, getShortLabel, getToolTipText, toString

 

Method Detail

canAdd

boolean canAdd(Element element)
Other classes can call this method to determine whether the given Element can be added to the Folder.
Parameters:
element - the Element that is about to be added to this Folder.
Returns:
true if the specified Element can be added to this Folder; false if the Element cannot be added.

add

boolean add(Element child)
Appends a child Element to the end of the Folder.

canRemove

boolean canRemove(Element element)
Other classes can call this method to determine whether the specified Element can be removed from this Folder.
Parameters:
element - the Element that is about to be removed from this Folder.
Returns:
true if the specified Element can be removed from this Folder; false if the Element cannot be removed.

remove

boolean remove(Element child)
Removes the specified child Element. If the child object appears more than once, only the first instance is removed.
Parameters:
child - The child object to remove.

containsChild

boolean containsChild(Element child)
Returns true if the folder contains the specified child Element; returns false otherwise.

size

int size()
Returns the current number of children in the folder.

removeAll

void removeAll()
Removes all children from the folder.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.