|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.model.DefaultDisplayable oracle.ide.model.DefaultElement oracle.ide.model.DefaultFolder oracle.ide.model.HierarchicalFolder oracle.ide.model.DirectoryFolder
The DirectoryFolder
class encapsulates a directory
element managed by the DirectoryFilter
.
Field Summary |
Fields inherited from class oracle.ide.model.HierarchicalFolder |
filter, isOpen, longName, shortName, url |
Fields inherited from class oracle.ide.model.DefaultFolder |
_children |
Fields inherited from interface oracle.ide.model.Category |
UNDEFINED |
Constructor Summary | |
protected |
DirectoryFolder(java.lang.Object key,
DirectoryFilter filter)
Protected constructor that constructs a DirectoryFolder
given a folder key and a DirectoryFilter that will manage this
directory folder. |
|
DirectoryFolder(java.net.URL url,
DirectoryFilter filter)
Constructs a DirectoryFolder given an URL and a
DirectoryFilter that will manage this directory folder. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
One DirectoryFolder is equal to another if their HierarchicalFolder.url members are identical. |
java.lang.String |
getShortLabel()
Returns the short label for this Displayable . |
protected boolean |
isInProject()
Tests whether any Element objects belonging to the project are
contained by this directory folder. |
protected boolean |
isSrcRoot()
Returns true if this directory is a source path root. |
protected java.net.URL[] |
list()
Lists the files and directories belonging to this directory folder. |
protected void |
setIsSrcRoot(boolean isSrcRoot)
Marks this directory folder as either a source path root or a subfolder. |
Methods inherited from class oracle.ide.model.HierarchicalFolder |
add, canAdd, canRemove, containsChild, getCategory, getChildren, getFilter, getLongLabel, getToolTipText, getURL, getViewAllFiles, getViewHierarchically, isStrict, remove, removeAll, setFilter, setURL |
Methods inherited from class oracle.ide.model.DefaultFolder |
copyToImpl, equalsImpl, getIcon, mayHaveChildren, size |
Methods inherited from class oracle.ide.model.DefaultElement |
getAttributes, getData |
Methods inherited from class oracle.ide.model.DefaultDisplayable |
toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 |
toString |
Constructor Detail |
public DirectoryFolder(java.net.URL url, DirectoryFilter filter)
DirectoryFolder
given an URL
and a
DirectoryFilter
that will manage this directory folder.
url
- the URL
for this folder.filter
- the HierarchicalFilter
that manages this folder.protected DirectoryFolder(java.lang.Object key, DirectoryFilter filter)
DirectoryFolder
given a folder key and a DirectoryFilter
that will manage this
directory folder. The given key should be created by DirectoryFilter.getFolderKey(URL)
or DirectoryFilter.getParentKey(Object)
.
This constructor is not for general use and should only ever be called
by the DirectoryFilter.createFolder(Object)
method.
key
- the key for this folder.filter
- the HierarchicalFilter
that manages this folder.Method Detail |
protected java.net.URL[] list()
list
in class HierarchicalFolder
URL
objects naming the files and
directories contained by the URL
for this directory; if the
contents of this directory folder cannot be listed, then
null
is returned.protected boolean isInProject()
Element
objects belonging to the project are
contained by this directory folder.
isInProject
in class HierarchicalFolder
true
if the URL
for this
directory folder contains one or more Element
objects
belonging to the project.public java.lang.String getShortLabel()
Displayable
. This
implementation returns the full platform path name of this directory
folder if this folder is a source path root; otherwise, it defers to
the superclass implementation.
getShortLabel
in interface Displayable
getShortLabel
in class HierarchicalFolder
public boolean equals(java.lang.Object obj)
DirectoryFolder
is equal to another if their HierarchicalFolder.url
members are identical.
protected boolean isSrcRoot()
true
if this directory is a source path root.
protected void setIsSrcRoot(boolean isSrcRoot)
isSrcRoot
- if true
, marks this directory folder as
a source path root.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.