All Packages Class Hierarchy This Package Previous Next Index
The PartUser implementation should get its Cell for use in getting parts.
public abstract Object findPart(String partName)
1. The part is found in the cell and returned. Note it may be a local or inheritable part.
2. The part is never found, so the exception is thrown.
3. The part is found upwardly, is an inheritable part and is returned.
4. The part is found upwardly but is not an inheritable part, and so the exception is thrown.
A special case is when the cell is needed. Since this usually has a custom name, the reserved partName "MyCell" can be used to get the cell the PartReader is in.
A possible feature is if the partName contains slashes, we look downward for it in a standard file path manner. We frown on this because it creates tight location dependencies.
public abstract Object getPart(String partName)
findPart(String name) instead, except for rare cases of
restricting the search to the cell. Using findPart allows
the designer to move parts upward or downward in the System Tree,
for greater or lesser reuse via the "inherited part" mechanism,
as time goes by.
public abstract Enumeration enumeratePartNames()
public abstract int getPartCount()
public abstract String listTree(boolean startAtRoot,
boolean includeHidden)
All Packages Class Hierarchy This Package Previous Next Index