ilog.views.appframe.docview.project
Class IlvDefaultDataContainer.AbstractNode

java.lang.Object
  extended by ilog.views.appframe.docview.project.IlvDefaultDataContainer.AbstractNode
All Implemented Interfaces:
IlvDefaultDataContainer.Node
Enclosing class:
IlvDefaultDataContainer

public abstract static class IlvDefaultDataContainer.AbstractNode
extends Object
implements IlvDefaultDataContainer.Node

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

IlvDefaultDataContainer.AbstractNode

protected IlvDefaultDataContainer.AbstractNode(String title)
Constructs a new AbstractNode with the specified title.

Parameters:
title - The title of the node.
See Also:
getTitle(), setTitle(java.lang.String)

IlvDefaultDataContainer.AbstractNode

protected IlvDefaultDataContainer.AbstractNode()
Constructs a new empty AbstractNode.

Method Detail

getTitle

public String getTitle()
Returns the title of this node.

Specified by:
getTitle in interface IlvDefaultDataContainer.Node
See Also:
setTitle(java.lang.String)

setTitle

public void setTitle(String title)
Sets a title for the node.

Specified by:
setTitle in interface IlvDefaultDataContainer.Node
Parameters:
title - The new title of the node.
See Also:
getTitle()

getCategory

public abstract String getCategory()
Returns the category of the node.

Specified by:
getCategory in interface IlvDefaultDataContainer.Node

getProperty

public Object getProperty(String propertyName)
Returns the value of the node property with the specified propertyName.

Specified by:
getProperty in interface IlvDefaultDataContainer.Node
Parameters:
propertyName - The name of the property to return the value from.
Returns:
The property value.
See Also:
setProperty(java.lang.String, java.lang.Object)

setProperty

public Object setProperty(String propertyName,
                          Object value)
Sets a new value to the property of the node with the specified propertyName.

Specified by:
setProperty in interface IlvDefaultDataContainer.Node
Parameters:
propertyName - The name of the property to change the value of.
value - The new value of the property.
Returns:
The previous value of the property or null if this property is not defined.
See Also:
getProperty(java.lang.String)

acceptChild

public boolean acceptChild(String category)
Determines whether the node can have a child added with the specified category.

Specified by:
acceptChild in interface IlvDefaultDataContainer.Node
Parameters:
category - The category.
Returns:
true by default.

canRemoveChild

public boolean canRemoveChild(Object node)
Determines whether the specified child node can be removed from this parent node.

Specified by:
canRemoveChild in interface IlvDefaultDataContainer.Node
Parameters:
node - The node to remove.
Returns:
true by default.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.