Extension SDK 10.1.2

oracle.ide.model
Interface Container

All Superinterfaces:
Category, Data, Dirtyable, Displayable, Document, Element, Folder, LazyLoadable, Locatable, Node, Subject
All Known Subinterfaces:
WorkEnvironment
All Known Implementing Classes:
DataContainer, DefaultContainer, PropertiesContainer, XMLDataContainer

public interface Container
extends Node, Folder

The Container interface specifies the protocol between the IDE and objects which can contain other Nodes, including other Containers.

See Also:
Node, Folder

Field Summary
 
Fields inherited from interface oracle.ide.addin.Subject
OBJECT_MODIFIED
 
Fields inherited from interface oracle.ide.model.Category
UNDEFINED
 
Method Summary
 boolean add(Element element, boolean notify)
          This is a variant of the Folder.add(Element) method that accepts an additional flag that indicates whether or not notifications of the change should be sent to registered observers.
 boolean remove(Element element, boolean notify)
          This is a variant of the Folder.remove(Element) method that accepts an additional flag that indiciates whether or not notifications of the change should be sent to registered observers.
 void removeAll(boolean notify)
          Removes all elements in the Container.
 
Methods inherited from interface oracle.ide.model.Document
close, getInputStream, getTimestamp, isNew, isReadOnly, open, save
 
Methods inherited from interface oracle.ide.model.Locatable
getURL, setURL
 
Methods inherited from interface oracle.ide.model.Element
getAttributes, getChildren, mayHaveChildren
 
Methods inherited from interface oracle.ide.model.Data
getData
 
Methods inherited from interface oracle.ide.model.Displayable
getIcon, getLongLabel, getShortLabel, getToolTipText, toString
 
Methods inherited from interface oracle.ide.addin.Subject
attach, detach, notifyObservers
 
Methods inherited from interface oracle.ide.model.Dirtyable
isDirty, markDirty
 
Methods inherited from interface oracle.ide.model.LazyLoadable
isOpen
 
Methods inherited from interface oracle.ide.model.Category
getCategory
 
Methods inherited from interface oracle.ide.model.Folder
add, canAdd, canRemove, containsChild, remove, removeAll, size
 

Method Detail

add

public boolean add(Element element,
                   boolean notify)
This is a variant of the Folder.add(Element) method that accepts an additional flag that indicates whether or not notifications of the change should be sent to registered observers.

Parameters:
element - The Element to be added to this Container.
notify - If true, any observers are notified of the change. If false, no notification is sent.

remove

public boolean remove(Element element,
                      boolean notify)
This is a variant of the Folder.remove(Element) method that accepts an additional flag that indiciates whether or not notifications of the change should be sent to registered observers.

Parameters:
element - The Element to be removed from this Container.
notify - If true, any observers are notified of the change. If false, no notification is sent.

removeAll

public void removeAll(boolean notify)
Removes all elements in the Container. The notify flag indicates whether observers should be notified of the change.

Parameters:
notify - If true, any observers are notified of the change. If false, no notification is sent.

Extension SDK

 

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