Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.layout
Class SimpleLayout

java.lang.Object
  extended by oracle.ide.model.Node
      extended by oracle.ide.layout.Layout
          extended by oracle.ide.layout.SimpleLayout
All Implemented Interfaces:
Displayable, Element, LazyLoadable, Locatable, Subject, PropertyAccess, Dirtyable
Direct Known Subclasses:
IdeProperties

public class SimpleLayout
extends Layout

Simple layout information. This is an extension of the Layout class. SimpleLayouts are generally user created layouts that are owned by the IdeLayouts.


Field Summary
 
Fields inherited from class oracle.ide.model.Node
LOG_READONLY
 
Constructor Summary
SimpleLayout(java.net.URL url)
          Constructor
 
Method Summary
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.
 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.
 
Methods inherited from class oracle.ide.layout.Layout
getChildren, getMenuFilter, getName, getShortLabel, isActive, isTrackedInNodeCache, setActive, setMenuFilter, toString
 
Methods inherited from class oracle.ide.model.Node
addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, 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, isMigrating, isNew, isOpen, isReadLocked, isReadOnly, isReadOrWriteLocked, isWriteLocked, lockCount, markDirty, markDirtyImpl, mayHaveChildren, 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, unsetMigrating, upgradeLock, upgradeUnlock, urlReadOnlyChanged, writeLock, writeLockCount, writeLockInterruptibly, writeUnlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleLayout

public SimpleLayout(java.net.URL url)
Constructor

Method Detail

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)
Description copied from interface: PropertyAccess
Retrieves the value associated with a property. If no value exists for the requested property, the specified default value is returned.

Parameters:
key - the property key for which a value is desired.
defaultValue - the value to return if no value currently exists.
Returns:
the value of the requested property, or the default value if the property does not exist.

setProperty

public java.lang.Object setProperty(java.lang.String key,
                                    java.lang.String value)
Description copied from interface: PropertyAccess
Sets the value for a property.

Parameters:
key - the property key to set
value - the string value to set
Returns:
the previous value

removeProperty

public java.lang.Object removeProperty(java.lang.String key)
Description copied from interface: PropertyAccess
Removes the property.

Parameters:
key - the property key to remove
Returns:
the previous value

isPropertySet

public 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. If a defaultValue is specified, that value is used in the comparison. The strings are compared without regards to case.


getOwner

public IdeLayout getOwner()
Description copied from class: Layout
Get the IdeLayout that owns this layout.

Overrides:
getOwner in class Layout

setOwner

public void setOwner(IdeLayout owner)
Description copied from class: Layout
Set the owner of this layout.

Overrides:
setOwner in class Layout

getIcon

public javax.swing.Icon getIcon()
Description copied from class: Node
Displayable interface method. The Node class returns a generic icon.

Specified by:
getIcon in interface Displayable
Overrides:
getIcon in class Node
Returns:
the Icon for this node instance

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Gets a InputStream that can be used to read the contents of this object.

Overrides:
getInputStream in class Node
Returns:
an input stream, or null if the node has no contents.
Throws:
java.io.IOException - if a security manager exists and its checkRead method denies read access.

openImpl

protected void openImpl()
                 throws java.io.IOException
Open (load) the data associated with this item.

Overrides:
openImpl in class Node
Throws:
java.io.IOException - if an I/O error occurred while opening

closeImpl

protected void closeImpl()
                  throws java.io.IOException
Release the data associated with this item

Overrides:
closeImpl in class Node
Throws:
java.io.IOException - if an I/O error occurred while closing

saveImpl

protected void saveImpl()
                 throws java.io.IOException
Force the node to be re-loaded from file.

Overrides:
saveImpl in class Node
Parameters:
shallow - do not save children if container. TBD
Throws:
java.io.IOException - if an I/O error occurred while saving

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

equalsImpl

protected final boolean equalsImpl(SimpleLayout other)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.