public class DirContextNode extends ExtendedGenericNode<Element> implements InlineSearchable
LOG_READONLY| Constructor and Description |
|---|
DirContextNode(RescatContext rescatContext,
Element parent,
oracle.adf.rc.core.CatalogContext catalogContext,
java.lang.String name,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canClearInlineSearch() |
void |
clearCache() |
protected void |
forceRefreshImpl()
hook for subclasses to extend the behavior of forceRefresh() such as
clearing intermediate caches.
|
void |
getAttributeDescriptors(java.util.HashMap<java.lang.String,oracle.adf.rc.attribute.AttributeDescriptor> attributeDescriptors)
Fills
attributeDescriptors with distinct AttributeDescriptors. |
oracle.adf.rc.core.CatalogContext |
getCatalogContext() |
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.Comparator<Element> |
getElementComparator()
Returns the Comparator that should be used for sorting the children of
this node.
|
java.lang.String |
getFilter() |
javax.swing.Icon |
getIcon()
Displayable interface method. |
protected javax.swing.Icon |
getIconOverlays(javax.swing.Icon icon) |
java.lang.String |
getLongLabel()
Displayable interface method. |
java.lang.String |
getName() |
java.lang.String |
getShortLabel()
Displayable interface method. |
java.lang.String |
getToolTipText()
Displayable interface method. |
java.net.URL |
getURL()
Returns the
URL that identifies this
Locatable. |
protected void |
installFilter() |
protected void |
installListeners(oracle.adf.rc.core.CatalogContext catalogContext) |
protected boolean |
isTrackedInNodeCache()
The return value of this method indicates whether this Node
should be tracked by the NodeFactory cache.
|
protected void |
loadCache()
loadCache is invoked to populate the child cache the first time the node
is expanded or after the cache has been cleared either by calling
ExtendedGenericNode.clearCache() or GenericNode.forceRefresh(). |
javax.naming.NamingEnumeration<javax.naming.directory.SearchResult> |
search(java.lang.String filter) |
protected void |
setCatalogContext(oracle.adf.rc.core.CatalogContext ctx) |
void |
setFilter(java.lang.String filterExpression) |
void |
setSearchRunnable(oracle.jdevimpl.rescat2.model.search.SearchRunnable runnable) |
protected void |
updateCache()
updateCache is invoked when
GenericNode.getChildren() is called and the cache
has previously been loaded by ExtendedGenericNode.loadCache(). |
void |
whenInlineSearchCancelled(oracle.jdevimpl.rescat2.model.search.SearchRunnable runnable) |
void |
whenInlineSearchCleared() |
void |
whenInlineSearchFinished(oracle.jdevimpl.rescat2.model.search.SearchRunnable runnable,
oracle.jdevimpl.rescat2.model.search.SearchParameters search,
Folder searchResults) |
void |
whenInlineSearchStarted(oracle.jdevimpl.rescat2.model.search.SearchRunnable runnable,
oracle.jdevimpl.rescat2.model.search.SearchParameters search) |
addChild, containsChild, containsKey, getCacheKeys, getChild, getChildrenImpl, getDummyChild, removeChildequalsImpl, forceRefresh, getFullPath, getParent, getPathFrom, getRescatContext, mayHaveChildren, setAttributes, setFilterControl, whenDelete, whenDelete, whenProperties, whenRename, whenRenameaddNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, addWeakNodeListener, attach, beginThreadNodeUsageCycle, callUnderReadLock, callUnderWriteLock, close, closeImpl, createSubject, delete, deleteImpl, detach, endThreadNodeUsage, endThreadNodeUsageCycle, ensureOpen, equalsImpl, getAttributes, getData, getInputStream, getSubject, getTimestamp, getTimestampLoadedUnsafe, getTransientProperties, getUnmodifiedTimestamp, isDirty, isLoaded, isLockHeld, isMigrating, isNew, isOpen, isReadLocked, isReadLockHeld, isReadOnly, isReadOrWriteLocked, isTrackingThreadNodeUsage, isWriteLocked, isWriteLockHeld, lockCount, markDirty, markDirtyImpl, nodeLock, notifyObservers, open, openImpl, readLock, readLockCount, readLockInterruptibly, readUnlock, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, removeWeakNodeListener, 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, writeUnlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttributedLabelpublic DirContextNode(RescatContext rescatContext, Element parent, oracle.adf.rc.core.CatalogContext catalogContext, java.lang.String name, java.lang.String description)
protected void installListeners(oracle.adf.rc.core.CatalogContext catalogContext)
protected void loadCache()
ExtendedGenericNodeExtendedGenericNode.clearCache() or GenericNode.forceRefresh().
Use ExtendedGenericNode.addChild(java.lang.String, E) to add each child element to the cache.loadCache in class ExtendedGenericNode<Element>protected void updateCache()
ExtendedGenericNodeGenericNode.getChildren() is called and the cache
has previously been loaded by ExtendedGenericNode.loadCache().
This method lets you review the contents of cache and add or remove entries
as needed. If the list of children is static, then this method should be a
no-op. However, if the list of children is relatively dynamic, you may
want to review the contents of the cache and add/remove children as needed.
The advantage of keeping the same child instance in the cache rather than
re-creating it frequently is that each child's own cache can be retained.updateCache in class ExtendedGenericNode<Element>public java.lang.String getShortLabel()
NodeDisplayable interface method. The Node class returns
the file name part of the currently set URL. If the
currently set URL is null, then this method
returns "<null>".getShortLabel in interface DisplayablegetShortLabel in class NodeDisplayable
that can be shown to the user.public java.lang.String getName()
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 GenericNode<Element>Displayable that
can be shown to the user.public final oracle.adf.rc.core.CatalogContext getCatalogContext()
protected final void setCatalogContext(oracle.adf.rc.core.CatalogContext ctx)
public final void getAttributeDescriptors(java.util.HashMap<java.lang.String,oracle.adf.rc.attribute.AttributeDescriptor> attributeDescriptors)
throws javax.naming.NamingException
attributeDescriptors with distinct AttributeDescriptors.attributeDescriptors - a map of AttributeDescriptor.getId()/ AttributeDescriptorjavax.naming.NamingExceptionpublic final javax.naming.NamingEnumeration<javax.naming.directory.SearchResult> search(java.lang.String filter)
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic final java.net.URL getURL()
LocatableURL that identifies this
Locatable. Parts of the IDE will use the value of
this URL as a hash key for caching UI components for this
Locatable. Therefore, URL uniqueness is
important.protected final boolean isTrackedInNodeCache()
Nodetrue. Node types that should not
be tracked by the NodeFactory cache should override this method
to return false.isTrackedInNodeCache in class Nodetrue if this Node should be tracked by the
IDE's NodeFactory cache; false otherwise.public java.lang.String getToolTipText()
NodeDisplayable interface method. The Node class returns
returns the String form of the currently set URL.getToolTipText in interface DisplayablegetToolTipText in class NodeDisplayable.public final java.lang.String getFilter()
public final void setFilter(java.lang.String filterExpression)
public javax.swing.Icon getIcon()
NodeDisplayable interface method. The Node class returns
a generic icon.getIcon in interface DisplayablegetIcon in class GenericNode<Element>Icon to be displayed for the
Displayable.protected javax.swing.Icon getIconOverlays(javax.swing.Icon icon)
getIconOverlays in class GenericNode<Element>public void clearCache()
clearCache in class ExtendedGenericNode<Element>protected void forceRefreshImpl()
GenericNodeforceRefreshImpl in class ExtendedGenericNode<Element>protected java.util.Comparator<Element> getElementComparator()
GenericNodegetElementComparator in class GenericNode<Element>protected void installFilter()
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 GenericNode<Element>Iterator over any child Elements
contained by this Element. If there are no children,
null is returned.public void whenInlineSearchStarted(oracle.jdevimpl.rescat2.model.search.SearchRunnable runnable,
oracle.jdevimpl.rescat2.model.search.SearchParameters search)
whenInlineSearchStarted in interface InlineSearchablepublic void whenInlineSearchCancelled(oracle.jdevimpl.rescat2.model.search.SearchRunnable runnable)
whenInlineSearchCancelled in interface InlineSearchablepublic void whenInlineSearchFinished(oracle.jdevimpl.rescat2.model.search.SearchRunnable runnable,
oracle.jdevimpl.rescat2.model.search.SearchParameters search,
Folder searchResults)
whenInlineSearchFinished in interface InlineSearchablepublic void whenInlineSearchCleared()
whenInlineSearchCleared in interface InlineSearchablepublic void setSearchRunnable(oracle.jdevimpl.rescat2.model.search.SearchRunnable runnable)
public boolean canClearInlineSearch()
canClearInlineSearch in interface InlineSearchable