Extension SDK 10.1.2

oracle.ide.layout
Class SimpleLayout

java.lang.Object
  extended byoracle.ide.layout.BaseLayout
      extended byoracle.ide.layout.SimpleLayout
All Implemented Interfaces:
Data, Dirtyable, Displayable, Document, Element, Layout, LazyLoadable, Locatable, PropertyAccess, Subject
Direct Known Subclasses:
IdeProperties

public class SimpleLayout
extends BaseLayout

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


Field Summary
 
Fields inherited from class oracle.ide.layout.BaseLayout
_attributes, _lastModified, _url
 
Fields inherited from interface oracle.ide.layout.Layout
LAYOUT_ACTIVE_PROPERTY, LAYOUT_NAME_PROPERTY
 
Fields inherited from interface oracle.ide.addin.Subject
OBJECT_MODIFIED
 
Constructor Summary
SimpleLayout(java.net.URL url)
          Constructor
 
Method Summary
 void close()
          Release the data associated with this item
 boolean equals(java.lang.Object o)
           
protected  boolean equalsImpl(SimpleLayout other)
           
 javax.swing.Icon getIcon()
          Returns an Icon that can be shown in association with this Displayable.
 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 isOpen()
          True if the data item has been loaded already.
 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.
 void open()
          Open (load) the data associated with this item.
 java.lang.Object removeProperty(java.lang.String key)
          Removes the property.
 void save(boolean shallow)
          Force the node to be re-loaded from file.
 void setInherited(Layout layout)
          Set a layout from which this layout inherits settings.
 void setOwner(IdeLayout owner)
          Set the owner of this layout.
protected  void setProperties(OrderedProperties properties)
           
 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.BaseLayout
attach, copyToImpl, detach, equalsImpl, findLayout, getAttributes, getChildren, getData, getFilename, getLongLabel, getName, getShortLabel, getTimestamp, getToolTipText, getURL, isActive, isDirty, isNew, isReadOnly, markDirty, mayHaveChildren, notifyObservers, setActive, setURL, toString
 
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.


setInherited

public void setInherited(Layout layout)
Description copied from interface: Layout
Set a layout from which this layout inherits settings.

Specified by:
setInherited in interface Layout
Overrides:
setInherited in class BaseLayout

getOwner

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

Specified by:
getOwner in interface Layout
Overrides:
getOwner in class BaseLayout

setOwner

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

Specified by:
setOwner in interface Layout
Overrides:
setOwner in class BaseLayout

getIcon

public javax.swing.Icon getIcon()
Description copied from interface: Displayable
Returns an Icon that can be shown in association with this Displayable. Typically the icon will be used in a tree control or list control. Therefore the icon must fit naturally within the space normally given to items within those controls. Such icons are usually 16x16 in size or, if there is a one-pixel transparent padding around the edge, 18x18 in size. It is strongly recommended that icons returned by this method be either 16x16 or 18x18 in size. If null is returned, the control may show a default icon, or it may show no icon, whichever is appropriate.

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.

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.

isOpen

public boolean isOpen()
True if the data item has been loaded already.

Returns:
true if the data item has already been opened.

open

public void open()
Open (load) the data associated with this item.


close

public void close()
Release the data associated with this item

Specified by:
close in interface Document
Overrides:
close in class BaseLayout

save

public void save(boolean shallow)
Force the node to be re-loaded from file.

Parameters:
shallow - do not save children if container. TBD

equals

public boolean equals(java.lang.Object o)

equalsImpl

protected final boolean equalsImpl(SimpleLayout other)

setProperties

protected final void setProperties(OrderedProperties properties)

Extension SDK

 

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