SPT Core API

com.sptci.jdo
Interface Treeable<T>

Type Parameters:
T - The object backing the tree.
All Superinterfaces:
Serializable
All Known Implementing Classes:
Category, Root

public interface Treeable<T>
extends Serializable

An interface that defines the methods that must be implemented to enable automatic generation and binding of echopointng.Tree components.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: Treeable.java 4618 2009-02-10 00:49:30Z rakesh $
Author:
Rakesh Vidyadharan 2007-05-02

Method Summary
 List<T> getChildren()
          The method that returns the children of this instance.
 String getDisplayName()
          The display name to display for the node corresponding to this instance.
 Object getObjectId()
          Return the ObjectId for the object instance.
 T getParent()
          The method that returns the parent object of this instance.
 

Method Detail

getParent

T getParent()
The method that returns the parent object of this instance.

Returns:
The parent of the current object.

getChildren

List<T> getChildren()
The method that returns the children of this instance.

Returns:
The children of the current object.

getDisplayName

String getDisplayName()
The display name to display for the node corresponding to this instance.

Returns:
The display name for this instance.

getObjectId

Object getObjectId()
Return the ObjectId for the object instance. This can be used to retrieve the model object used to back the tree model.

Returns:
The object id for this instance.

SPT Core API