public class SimpleLayout extends Layout
Layout
class. SimpleLayouts are generally user created layouts
that are owned by the IdeLayouts.LOG_READONLY| Constructor and Description |
|---|
SimpleLayout(java.net.URL url)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeImpl()
Release the data associated with this item
|
boolean |
equals(java.lang.Object o) |
protected boolean |
equalsImpl(SimpleLayout other) |
javax.swing.Icon |
getIcon()
Displayable interface method. |
java.io.InputStream |
getInputStream()
Gets a
InputStream that can be used to read the contents
of this object. |
IdeLayout |
getOwner()
Get the
IdeLayout that owns this layout. |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Retrieves the value associated with a property.
|
int |
hashCode() |
boolean |
isPropertySet(java.lang.String key,
java.lang.String value,
java.lang.String defaultValue)
Returns
true if the property identified by the given
key is equals the given value. |
protected void |
openImpl()
Open (load) the data associated with this item.
|
java.lang.Object |
removeProperty(java.lang.String key)
Removes the property.
|
protected void |
saveImpl()
Force the node to be re-loaded from file.
|
void |
setOwner(IdeLayout owner)
Set the owner of this layout.
|
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
Sets the value for a property.
|
getChildren, getDisplayName, getMenuFilter, getName, getShortLabel, isActive, isTrackedInNodeCache, setActive, setMenuFilter, toStringaddNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, addWeakNodeListener, attach, beginThreadNodeUsageCycle, callUnderReadLock, callUnderWriteLock, close, createSubject, delete, deleteImpl, detach, endThreadNodeUsage, endThreadNodeUsageCycle, ensureOpen, equalsImpl, getAttributes, getData, getLongLabel, getSubject, getTimestamp, getTimestampLoadedUnsafe, getToolTipText, getTransientProperties, getUnmodifiedTimestamp, getURL, isDirty, isLoaded, isLockHeld, isMigrating, isNew, isOpen, isReadLocked, isReadLockHeld, isReadOnly, isReadOrWriteLocked, isTrackingThreadNodeUsage, isWriteLocked, isWriteLockHeld, lockCount, markDirty, markDirtyImpl, mayHaveChildren, nodeLock, notifyObservers, open, readLock, readLockCount, readLockInterruptibly, readUnlock, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, removeWeakNodeListener, 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, waitgetAttributedLabelpublic java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
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)
PropertyAccesskey - the property key to setvalue - the string value to setpublic java.lang.Object removeProperty(java.lang.String key)
PropertyAccesskey - the property key to removepublic boolean isPropertySet(java.lang.String key,
java.lang.String value,
java.lang.String defaultValue)
true if the property identified by the given
key is equals the given value. If a
defaultValue is specified, that value is used in
the comparison. The strings are compared without regards to case.public IdeLayout getOwner()
LayoutIdeLayout that owns this layout.public void setOwner(IdeLayout owner)
Layoutpublic javax.swing.Icon getIcon()
NodeDisplayable interface method. The Node class returns
a generic icon.getIcon in interface DisplayablegetIcon in class Nodepublic 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 boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected final boolean equalsImpl(SimpleLayout other)