|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.layout.BaseLayout oracle.ide.layout.SimpleLayout
Simple layout information. This is an extension of the BaseLayout
class. SimpleLayout
s are generally user created layouts
that are owned by the IdeLayout
s.
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 |
public SimpleLayout(java.net.URL url)
Method Detail |
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
PropertyAccess
key
- 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)
PropertyAccess
key
- the property key to setvalue
- the string value to set
public java.lang.Object removeProperty(java.lang.String key)
PropertyAccess
key
- the property key to remove
public 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 void setInherited(Layout layout)
Layout
setInherited
in interface Layout
setInherited
in class BaseLayout
public IdeLayout getOwner()
Layout
IdeLayout
that owns this layout.
getOwner
in interface Layout
getOwner
in class BaseLayout
public void setOwner(IdeLayout owner)
Layout
setOwner
in interface Layout
setOwner
in class BaseLayout
public javax.swing.Icon getIcon()
Displayable
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.
public java.io.InputStream getInputStream() throws java.io.IOException
InputStream
that can be used to read the contents
of this object.
java.io.IOException
- if a security manager exists and its
checkRead
method denies read access.public boolean isOpen()
true
if the data item has already been opened.public void open()
public void close()
close
in interface Document
close
in class BaseLayout
public void save(boolean shallow)
shallow
- do not save children if container.
TBDpublic boolean equals(java.lang.Object o)
protected final boolean equalsImpl(SimpleLayout other)
protected final void setProperties(OrderedProperties properties)
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.