|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.appframe.docview.project.IlvDefaultDataContainer.AbstractNode
public abstract static class IlvDefaultDataContainer.AbstractNode
An abstract implementation of the
IlvDefaultDataContainer.Node
interface to serve as a basis for implementing various kinds of nodes.
| Constructor Summary | |
|---|---|
protected |
IlvDefaultDataContainer.AbstractNode()
Constructs a new empty AbstractNode. |
protected |
IlvDefaultDataContainer.AbstractNode(String title)
Constructs a new AbstractNode with the specified
title. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected IlvDefaultDataContainer.AbstractNode(String title)
AbstractNode with the specified
title.
title - The title of the node.getTitle(),
setTitle(java.lang.String)protected IlvDefaultDataContainer.AbstractNode()
AbstractNode.
| Method Detail |
|---|
public String getTitle()
getTitle in interface IlvDefaultDataContainer.NodesetTitle(java.lang.String)public void setTitle(String title)
setTitle in interface IlvDefaultDataContainer.Nodetitle - The new title of the node.getTitle()public abstract String getCategory()
getCategory in interface IlvDefaultDataContainer.Nodepublic Object getProperty(String propertyName)
propertyName.
getProperty in interface IlvDefaultDataContainer.NodepropertyName - 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.NodepropertyName - 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.Nodecategory - The category.
true by default.public boolean canRemoveChild(Object node)
node can be removed
from this parent node.
canRemoveChild in interface IlvDefaultDataContainer.Nodenode - The node to remove.
true by default.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||