|
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.model.DefaultDisplayable oracle.ide.model.DefaultElement
DefaultElement
is a complete, default implementation of
the Element
interface. This is a convenient starting point
for the implementation of data classes which can be integrated with
the IDE framework.
If a subclass of DefaultElement
adheres to the JavaBeans
API, it can also interoperate with the IDE's marshalling framework,
which is used for persistence. Such a subclass can be persisted
automatically (i.e. no additional persistence code needs to be written),
so long as the subclass implementation follows the guidelines of the
marshalling framework. For details, see the documentation for the
oracle.ide.marshal
package and its subpackages.
A JavaBean also has the advantage of interoperating with the property
inspector. Newer IDE APIs are also being considered which leverage
off the JavaBeans API, so implementing a DefaultElement
subclass to follow the JavaBeans API will also result in compatibility
with future features.
Element
,
oracle.ide.marshal
,
oracle.ide.marshal.xml
Constructor Summary | |
DefaultElement()
Creates a new DefaultElement instance. |
Method Summary | |
Attributes |
getAttributes()
Part of the Element interface. |
java.util.Iterator |
getChildren()
Part of the Element interface. |
java.lang.Object |
getData()
Part of the Data interface. |
boolean |
mayHaveChildren()
Part of the Element interface. |
Methods inherited from class oracle.ide.model.DefaultDisplayable |
getIcon, getLongLabel, getShortLabel, getToolTipText, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.ide.model.Displayable |
getIcon, getLongLabel, getShortLabel, getToolTipText, toString |
Constructor Detail |
public DefaultElement()
DefaultElement
instance.Subclasses that are designed to operate as a JavaBean must supply a default constructor.
Method Detail |
public java.lang.Object getData()
Data
interface. This implementation returns
this
.
getData
in interface Data
Data
instance.Data.getData()
public boolean mayHaveChildren()
Element
interface. This implementation always
returns false
.
mayHaveChildren
in interface Element
true
if this Element
may contain
child Element
s.Element.mayHaveChildren()
public java.util.Iterator getChildren()
Element
interface. This implementation always
returns null
.
getChildren
in interface Element
Iterator
over any child Element
s
contained by this Element
. If there are no children,
null
is returned.Element.getChildren()
public Attributes getAttributes()
Element
interface. This implementation always
returns ElementAttributes.DELETEABLE
.
getAttributes
in interface Element
Element.getAttributes()
|
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.