public interface NodeInfo
NodeInfo
is used to configure a generic
node class such as XMLDataNode
or XMLDataContainer
.
This approach is alternative to customizing the behavior of those
classes through subclassing.
A NodeInfo
instance also provides information that
allows the Node
to be displayed without first having to load
or create the wrapped data class.
Modifier and Type | Method and Description |
---|---|
Attributes |
getAttributes()
The attributes of the
Node . |
java.lang.Class |
getDataClass()
The data
Class , which must conform to the JavaBeans API. |
javax.swing.Icon |
getIcon()
The
Icon that is to be shown in association with the data
bean. |
java.lang.Class |
getNodeClass()
The design-time
Node Class . |
java.lang.String |
getXMLNamespaceURI()
Returns the string that identifies
|
java.lang.String |
getXMLRootElement()
The XML root element by which the data
Class can be
identified in an XML document. |
java.lang.Class getNodeClass()
Node
Class
.java.lang.Class getDataClass()
Class
, which must conform to the JavaBeans API.java.lang.String getXMLRootElement()
Class
can be
identified in an XML document.java.lang.String getXMLNamespaceURI()
javax.swing.Icon getIcon()
Icon
that is to be shown in association with the data
bean. 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. If the Icon
is
null
, then the Node
implementation may show
a default icon, or it may show no icon.Attributes getAttributes()
Node
.Element