KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quikj > application > communicator > admin > controller > RelatedTasks


1 /*
2  * RelatedTasks.java
3  *
4  * Created on March 26, 2003, 5:45 PM
5  */

6
7 package com.quikj.application.communicator.admin.controller;
8
9
10 import java.util.*;
11
12 /**
13  *
14  * @author amit
15  */

16 public class RelatedTasks
17 {
18     
19     /** Holds value of property links. */
20     private ArrayList links = new ArrayList();
21     
22     /** Creates a new instance of RelatedTasks */
23     public RelatedTasks()
24     {
25     }
26     
27     /** Indexed getter for property links.
28      * @param index Index of the property.
29      * @return Value of the property at <CODE>index</CODE>.
30      *
31      */

32     public LinkAttribute getLink(int index)
33     {
34         return (LinkAttribute)this.links.get(index);
35     }
36     
37     /** Getter for property links.
38      * @return Value of property links.
39      *
40      */

41     public ArrayList getLinks()
42     {
43         return this.links;
44     }
45     
46     /** Indexed setter for property links.
47      * @param index Index of the property.
48      * @param links New value of the property at <CODE>index</CODE>.
49      *
50      */

51     public void setLink(int index, LinkAttribute link)
52     {
53         links.set(index, links);
54     }
55     
56     /** Setter for property links.
57      * @param links New value of property links.
58      *
59      */

60     public void setLinks(ArrayList links)
61     {
62         this.links = links;
63     }
64     
65     public void addLink (LinkAttribute link)
66     {
67         links.add(link);
68     }
69 }
70
Popular Tags