dist1.acb.ACBpoint
Class Topic

java.lang.Object
  extended bydist1.acb.ACBpoint.Topic

public class Topic
extends java.lang.Object

Abstract Type used to Represent A Tree node in the Topics Tree displayed in the Search and Publishing Panel

Author:
Lazar Adzigogov

Constructor Summary
Topic(int topicId, java.lang.String topicName)
          Creates a new instance of Topic
 
Method Summary
 Topic getChildAt(int i)
           
 int getChildCount()
           
 int getIndexOfChild(Topic kid)
           
 java.lang.String getName()
           
 Topic getParent()
           
 int getTopicId()
          Getter for property topicId.
static void linkFamily(Topic parentTopic, Topic[] kids)
          Link together all members of a Topic.
 void setTopicId(int topicId)
          Setter for property topicId.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Topic

public Topic(int topicId,
             java.lang.String topicName)
Creates a new instance of Topic

Method Detail

linkFamily

public static void linkFamily(Topic parentTopic,
                              Topic[] kids)
Link together all members of a Topic.

Parameters:
parentTopic - the parent Topic
kids - the subtopics

toString

public java.lang.String toString()

getName

public java.lang.String getName()

getParent

public Topic getParent()

getChildCount

public int getChildCount()

getChildAt

public Topic getChildAt(int i)

getIndexOfChild

public int getIndexOfChild(Topic kid)

getTopicId

public int getTopicId()
Getter for property topicId.

Returns:
Value of property topicId.

setTopicId

public void setTopicId(int topicId)
Setter for property topicId.

Parameters:
topicId - New value of property topicId.


Copyright © 2004 Phoenix Team (CMU/AIT). All Rights Reserved.