public abstract class GenericNode<E extends Element> extends Node
LOG_READONLY| Modifier | Constructor and Description |
|---|---|
protected |
GenericNode(Element parent) |
protected |
GenericNode(RescatContext rescatContext, Element parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
forceRefresh() |
protected void |
forceRefreshImpl()
hook for subclasses to extend the behavior of forceRefresh() such as clearing intermediate caches.
|
java.util.Iterator<Element> |
getChildren()
This method is part of the
Element interface to provide a convenient way of getting an Iterator over any contained child Elements without having to test the object's type with the instanceof operator or having to downcast to a more specific type. |
protected java.util.List<E> |
getChildrenImpl()
Override this method (and not
getChildren()) to cache the children. |
protected java.util.Comparator<Element> |
getElementComparator()
Returns the Comparator that should be used for sorting the children of this node.
|
java.lang.String |
getFullPath() |
javax.swing.Icon |
getIcon()
Displayable interface method. |
protected javax.swing.Icon |
getIconOverlays(javax.swing.Icon icon) |
java.lang.String |
getLongLabel()
Displayable interface method. |
Element |
getParent() |
java.lang.String |
getPathFrom(java.lang.Class parentType) |
RescatContext |
getRescatContext() |
boolean |
mayHaveChildren()
This method is part of the
Element interface to provide a convenient way of determining whether an object may have children without having to test the object's type with the instanceof operator or having to downcast to a more specific type. |
protected void |
setAttributes(E element)
Set the attributes of the specified element to make it read-only and disable Erase from Disk, Delete, Rename.
|
void |
setFilterControl(oracle.adf.rc.core.FilterControl filterControl) |
boolean |
whenDelete(boolean doit) |
boolean |
whenDelete(E childElement, boolean doit)
Delete
childElement from this node. |
boolean |
whenProperties(Context context, boolean doit) |
protected boolean |
whenRename(E childNode, java.lang.String newName, boolean doit) |
boolean |
whenRename(java.lang.String newName, boolean doit) |
addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, attach, beginThreadNodeUsageCycle, callUnderReadLock, callUnderWriteLock, close, closeImpl, createSubject, delete, deleteImpl, detach, endThreadNodeUsage, endThreadNodeUsageCycle, ensureOpen, equalsImpl, getAttributes, getData, getInputStream, getShortLabel, getSubject, getTimestamp, getTimestampLoadedUnsafe, getToolTipText, getTransientProperties, getUnmodifiedTimestamp, getURL, isDirty, isLoaded, isLockHeld, isMigrating, isNew, isOpen, isReadLocked, isReadLockHeld, isReadOnly, isReadOrWriteLocked, isTrackedInNodeCache, isWriteLocked, isWriteLockHeld, lockCount, markDirty, markDirtyImpl, nodeLock, notifyObservers, open, openImpl, readLock, readLockCount, readLockInterruptibly, readUnlock, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, reportOpenException, revert, revertImpl, runUnderReadLock, runUnderWriteLock, save, saveImpl, setEventLog, setMigrating, setOpen, setReadOnly, setTimestampDirectly, setURL, toString, tryRunUnderReadLock, tryRunUnderWriteLock, unsetMigrating, upgradeLock, upgradeUnlock, urlReadOnlyChanged, writeLock, writeLockCount, writeLockInterruptibly, writeUnlockprotected GenericNode(Element parent)
protected GenericNode(RescatContext rescatContext, Element parent)
public final Element getParent()
public RescatContext getRescatContext()
public java.util.Iterator<Element> getChildren()
ElementElement interface to provide a convenient way of getting an Iterator over any contained child Elements without having to test the object's type with the instanceof operator or having to downcast to a more specific type.
An implementation of Element that represents a leaf in a tree structure should return null from this method. An implementation of Element that could represent a non-leaf in a tree structure should return either an Iterator over the child Elements or null if there are no children.
getChildren in interface ElementgetChildren in class NodeIterator over any child Elements contained by this Element. If there are no children, null is returned.protected java.util.List<E> getChildrenImpl()
getChildren()) to cache the children.public final void setFilterControl(oracle.adf.rc.core.FilterControl filterControl)
public java.lang.String getLongLabel()
NodeDisplayable interface method. The Node class returns the path name part of the currently set URL. If the currently set URL is null, then this method returns "<null>".getLongLabel in interface DisplayablegetLongLabel in class NodeDisplayable that can be shown to the user.public javax.swing.Icon getIcon()
NodeDisplayable interface method. The Node class returns a generic icon.getIcon in interface DisplayablegetIcon in class NodeIcon to be displayed for the Displayable.protected javax.swing.Icon getIconOverlays(javax.swing.Icon icon)
public boolean mayHaveChildren()
ElementElement interface to provide a convenient way of determining whether an object may have children without having to test the object's type with the instanceof operator or having to downcast to a more specific type.
An implementation of Element that represents a leaf in a tree structure should return false from this method. An implementation of Element that could represent a non-leaf in a tree structure should return true from this method, even if it does not currently contain any children.
mayHaveChildren in interface ElementmayHaveChildren in class Nodetrue if this Element may contain child Elements.public final boolean whenDelete(boolean doit)
public final boolean whenRename(java.lang.String newName,
boolean doit)
protected boolean whenRename(E childNode, java.lang.String newName, boolean doit)
public boolean whenDelete(E childElement, boolean doit)
childElement from this node.childElement - the element to deletepublic boolean whenProperties(Context context, boolean doit)
public final void forceRefresh()
protected void forceRefreshImpl()
protected void setAttributes(E element)
public final java.lang.String getFullPath()
public final java.lang.String getPathFrom(java.lang.Class parentType)
parentType (or last GenericNode)protected java.util.Comparator<Element> getElementComparator()