public final class IdeLayout extends Layout implements Folder
SimpleLayouts as their children.LOG_READONLY| Modifier | Constructor and Description | 
|---|---|
| protected  | IdeLayout() | 
|   | IdeLayout(java.net.URL fileURL,
         java.lang.String shortLabel,
         ArrayResourceBundle iconBundle,
         int iconKey) | 
|   | IdeLayout(java.net.URL fileURL,
         java.lang.String shortLabel,
         javax.swing.Icon icon) | 
|   | IdeLayout(java.net.URL fileURL,
         java.lang.String shortLabel,
         java.lang.String displayName,
         ArrayResourceBundle iconBundle,
         int iconKey) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | add(Element element)Appends a child  Elementto the end of theFolder. | 
| boolean | canAdd(Element element)Other classes can call this method to determine whether the given
   Elementcan be added to theFolder. | 
| boolean | canRemove(Element element)Other classes can call this method to determine whether the
  specified  Elementcan be removed from thisFolder. | 
| protected void | closeImpl()Release the data associated with this item | 
| boolean | containsChild(Element child) | 
| boolean | equals(java.lang.Object o) | 
| protected boolean | equalsImpl(IdeLayout other) | 
| Layout | findLayout(java.net.URL url)Find the layout associated with the specified  url. | 
| Layout | getActiveLayout() | 
| java.util.Iterator | getChildren()This method is part of the  Elementinterface to
  provide a convenient way of getting anIteratorover any
  contained childElements without having to test the
  object's type with theinstanceofoperator or having
  to downcast to a more specific type. | 
| Layout | getDefaults() | 
| java.lang.String | getDisplayName()Get this display layout name. | 
| javax.swing.Icon | getIcon()Displayableinterface method. | 
| java.io.InputStream | getInputStream()Gets a  InputStreamthat can be used to read the contents
 of this object. | 
| protected java.util.Map | getLayoutMap() | 
| java.lang.String | getLongLabel()Displayableinterface method. | 
| java.lang.String | getName()Get this layout name. | 
| java.lang.String | getProperty(java.lang.String key,
           java.lang.String defaultValue)Retrieves the value associated with a property. | 
| java.lang.String | getShortLabel()Displayableinterface method. | 
| java.lang.String | getToolTipText()Displayableinterface method. | 
| int | hashCode() | 
| boolean | mayHaveChildren()This method is part of the  Elementinterface to
  provide a convenient way of determining whether an object may
  have children without having to test the object's type with theinstanceofoperator or having to downcast to a
  more specific type. | 
| protected void | openImpl()Open (load) the data associated with this item. | 
| boolean | remove(Element element)Removes the specified child  Element. | 
| void | removeAll()Removes all children from the folder. | 
| java.lang.Object | removeProperty(java.lang.String key)Removes the property. | 
| protected void | saveImpl()Force the node to be re-loaded from file. | 
| protected void | setActiveLayout(Layout layout) | 
| java.lang.Object | setProperty(java.lang.String key,
           java.lang.String value)Sets the value for a property. | 
| int | size()Returns the current number of children in the folder. | 
getMenuFilter, getOwner, isActive, isTrackedInNodeCache, setActive, setMenuFilter, setOwner, toStringaddNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, attach, beginThreadNodeUsageCycle, callUnderReadLock, callUnderWriteLock, close, createSubject, delete, deleteImpl, detach, endThreadNodeUsage, endThreadNodeUsageCycle, ensureOpen, equalsImpl, getAttributes, getData, getSubject, getTimestamp, getTimestampLoadedUnsafe, getTransientProperties, getUnmodifiedTimestamp, getURL, isDirty, isLoaded, isLockHeld, isMigrating, isNew, isOpen, isReadLocked, isReadLockHeld, isReadOnly, isReadOrWriteLocked, isTrackingThreadNodeUsage, isWriteLocked, isWriteLockHeld, lockCount, markDirty, markDirtyImpl, nodeLock, notifyObservers, open, readLock, readLockCount, readLockInterruptibly, readUnlock, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, reportOpenException, revert, revertImpl, runUnderReadLock, runUnderWriteLock, save, setEventLog, setMigrating, setOpen, setReadOnly, setTimestampDirectly, setURL, tryRunUnderReadLock, tryRunUnderWriteLock, unsetMigrating, upgradeLock, upgradeUnlock, urlReadOnlyChanged, writeLock, writeLockCount, writeLockInterruptibly, writeUnlockclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttributes, getDatatoStringpublic IdeLayout(java.net.URL fileURL,
                 java.lang.String shortLabel,
                 javax.swing.Icon icon)
public IdeLayout(java.net.URL fileURL,
                 java.lang.String shortLabel,
                 ArrayResourceBundle iconBundle,
                 int iconKey)
public IdeLayout(java.net.URL fileURL,
                 java.lang.String shortLabel,
                 java.lang.String displayName,
                 ArrayResourceBundle iconBundle,
                 int iconKey)
protected IdeLayout()
public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)
PropertyAccessgetProperty in interface PropertyAccesskey - the property key for which a value is desired.defaultValue - the value to return if no value currently
 exists.public java.lang.Object setProperty(java.lang.String key,
                                    java.lang.String value)
PropertyAccesssetProperty in interface PropertyAccesskey - the property key to setvalue - the string value to setpublic java.lang.Object removeProperty(java.lang.String key)
PropertyAccessremoveProperty in interface PropertyAccesskey - the property key to removepublic Layout getActiveLayout()
public Layout findLayout(java.net.URL url)
url. If
 the url matches the default layout url return it,
 otherwise, look in the list of children.public java.io.InputStream getInputStream()
                                   throws java.io.IOException
InputStream that can be used to read the contents
 of this object.getInputStream in class Nodejava.io.IOException - if a security manager exists and its
            checkRead method denies read access.protected void openImpl()
                 throws java.io.IOException
protected void closeImpl()
                  throws java.io.IOException
protected void saveImpl()
                 throws java.io.IOException
public Layout getDefaults()
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 LayoutDisplayable
  that can be shown to the user.public java.lang.String getName()
Layoutpublic 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.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 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 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 java.util.Iterator 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 LayoutIterator over any child Elements
  contained by this Element.  If there are no children,
  null is returned.public boolean add(Element element)
FolderElement to the end of the
  Folder.public boolean remove(Element element)
FolderElement.  If the child object
  appears more than once, only the first instance is removed.public boolean canRemove(Element element)
FolderElement can be removed from this
  Folder.public boolean canAdd(Element element)
FolderElement can be added to the Folder.public boolean containsChild(Element child)
FoldercontainsChild in interface Folderpublic int size()
Folderpublic void removeAll()
Folderpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected final boolean equalsImpl(IdeLayout other)
protected void setActiveLayout(Layout layout)
protected java.util.Map getLayoutMap()
public java.lang.String getDisplayName()
LayoutgetDisplayName in class Layout