|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.model.DefaultDisplayable
oracle.ide.model.DefaultElement
oracle.ide.model.DefaultDocument
oracle.ide.model.DefaultNode
oracle.ide.model.DefaultContainer
The DefaultContainer class is a default implementation
of the Container interface.
No copy constructor is implemented because of the problems with
Node caching that would come up.
DefaultNode,
Container| Field Summary | |
protected java.util.ArrayList |
_children
The " final" modifier makes it possible to synchronize
on the _children object, since its value can never
change. |
| Fields inherited from interface oracle.ide.addin.Subject |
OBJECT_MODIFIED |
| Fields inherited from interface oracle.ide.model.Category |
UNDEFINED |
| Constructor Summary | |
DefaultContainer()
|
|
DefaultContainer(java.net.URL url)
|
|
| Method Summary | |
boolean |
add(Element element)
Part of the Folder interface. |
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 |
canAdd(Element element)
Part of the Folder interface. |
boolean |
canRemove(Element element)
Part of the Folder interface. |
boolean |
containsChild(Element child)
Returns true if the folder contains the
specified child Element; returns false
otherwise. |
java.util.Iterator |
getChildren()
Part of the Element interface. |
boolean |
mayHaveChildren()
Part of the Element interface. |
boolean |
remove(Element element)
Part of the Folder interface. |
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()
Removes all children from the folder. |
void |
removeAll(boolean notify)
Removes all elements in the Container. |
int |
size()
Returns the current number of children in the folder. |
| Methods inherited from class oracle.ide.model.DefaultNode |
equalsImpl, getCategory, setURL |
| Methods inherited from class oracle.ide.model.DefaultDocument |
attach, close, copyToImpl, createSubject, detach, ensureOpen, equalsImpl, getInputStream, getLongLabel, getShortLabel, getSubject, getTimestamp, getTimestampDirectly, getToolTipText, getURL, isDirty, isNew, isOpen, isReadOnly, markDirty, notifyObservers, open, refreshTimestamp, save, setOpen, setTimestampDirectly |
| Methods inherited from class oracle.ide.model.DefaultElement |
getAttributes, getData |
| Methods inherited from class oracle.ide.model.DefaultDisplayable |
getIcon, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 |
| 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 |
| Field Detail |
protected final java.util.ArrayList _children
final" modifier makes it possible to synchronize
on the _children object, since its value can never
change.
| Constructor Detail |
public DefaultContainer()
public DefaultContainer(java.net.URL url)
| Method Detail |
public boolean mayHaveChildren()
Element interface. This implementation always
returns true.
mayHaveChildren in interface ElementmayHaveChildren in class DefaultElementElement.mayHaveChildren()public java.util.Iterator getChildren()
Element interface. This implementation returns
an Iterator over the current list of children.
getChildren in interface ElementgetChildren in class DefaultElementElement.getChildren()public boolean canAdd(Element element)
Folder interface. The default implementation
returns true if and only if the specified
Element is not null.
canAdd in interface Folderelement - the Element that is about to be added
to this Folder.
true if and only if the specified
Element is not null.Folder.canAdd(Element)public boolean add(Element element)
Folder interface. The specified Element
is added to the end of the child list. However, if the
Element is null, this method does nothing.No notification is fired by this method.
add in interface FolderFolder.add(oracle.ide.model.Element)public boolean canRemove(Element element)
Folder interface. The default implementation
returns true if and only if the specified
Element is not null.
canRemove in interface Folderelement - the Element that is about to be removed
from this Folder.
true if and only if the specified
Element is not null.Folder.canRemove(Element)public boolean remove(Element element)
Folder interface. The specified Element
is removed from the child list. However, if the Element is
null, this method does nothing. If the Element
occurs more than once in the child list, then only the first
instance is removed.No notification is fired by this method.
remove in interface Folderelement - The child object to remove.Folder.remove(Element)public boolean containsChild(Element child)
Foldertrue if the folder contains the
specified child Element; returns false
otherwise.
containsChild in interface Folderpublic int size()
Folder
size in interface Folderpublic void removeAll()
Folder
removeAll in interface Folder
public boolean add(Element element,
boolean notify)
ContainerFolder.add(Element) method
that accepts an additional flag that indicates whether or not
notifications of the change should be sent to registered observers.
add in interface Containerelement - The Element to be added to this
Container.notify - If true, any observers are notified
of the change. If false, no notification is sent.
public boolean remove(Element element,
boolean notify)
ContainerFolder.remove(Element) method
that accepts an additional flag that indiciates whether or not
notifications of the change should be sent to registered observers.
remove in interface Containerelement - The Element to be removed from this
Container.notify - If true, any observers are notified
of the change. If false, no notification is sent.public void removeAll(boolean notify)
ContainerContainer. The
notify flag indicates whether observers should be
notified of the change.
removeAll in interface Containernotify - If true, any observers are notified
of the change. If false, no notification is sent.
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.