public abstract static class IlvDefaultDataContainer.AbstractNode extends Object implements IlvDefaultDataContainer.Node
IlvDefaultDataContainer.Node
interface to serve as a basis for implementing various kinds of nodes.Modifier | Constructor and Description |
---|---|
protected |
AbstractNode()
Constructs a new empty
AbstractNode . |
protected |
AbstractNode(String title)
Constructs a new
AbstractNode with the specified
title . |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptChild(String category)
Determines whether the node can have
a child added with the specified
category . |
boolean |
canRemoveChild(Object node)
Determines whether the specified child
node can be removed
from this parent node. |
abstract String |
getCategory()
Returns the category of the node.
|
Object |
getProperty(String propertyName)
Returns the value of the node property with the specified
propertyName . |
String |
getTitle()
Returns the title of this node.
|
Object |
setProperty(String propertyName,
Object value)
Sets a new value to the property of the node with the specified
propertyName . |
void |
setTitle(String title)
Sets a title for the node.
|
protected AbstractNode(String title)
AbstractNode
with the specified
title
.title
- The title of the node.getTitle()
,
setTitle(java.lang.String)
protected AbstractNode()
AbstractNode
.public String getTitle()
getTitle
in interface IlvDefaultDataContainer.Node
setTitle(java.lang.String)
public void setTitle(String title)
setTitle
in interface IlvDefaultDataContainer.Node
title
- The new title of the node.getTitle()
public abstract String getCategory()
getCategory
in interface IlvDefaultDataContainer.Node
public Object getProperty(String propertyName)
propertyName
.getProperty
in interface IlvDefaultDataContainer.Node
propertyName
- The name of the property to return the value from.setProperty(java.lang.String, java.lang.Object)
public Object setProperty(String propertyName, Object value)
propertyName
.setProperty
in interface IlvDefaultDataContainer.Node
propertyName
- The name of the property to change the value of.value
- The new value of the property.null
if this
property is not defined.getProperty(java.lang.String)
public boolean acceptChild(String category)
category
.acceptChild
in interface IlvDefaultDataContainer.Node
category
- The category.true
by default.public boolean canRemoveChild(Object node)
node
can be removed
from this parent node.canRemoveChild
in interface IlvDefaultDataContainer.Node
node
- The node to remove.true
by default.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.