KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openi > project > Overview


1 /*********************************************************************************
2  * The contents of this file are subject to the OpenI Public License Version 1.0
3  * ("License"); You may not use this file except in compliance with the
4  * License. You may obtain a copy of the License at
5  * http://www.openi.org/docs/LICENSE.txt
6  *
7  * Software distributed under the License is distributed on an "AS IS" basis,
8  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
9  * the specific language governing rights and limitations under the License.
10  *
11  * The Original Code is: OpenI Open Source
12  *
13  * The Initial Developer of the Original Code is Loyalty Matrix, Inc.
14  * Portions created by Loyalty Matrix, Inc. are
15  * Copyright (C) 2005 Loyalty Matrix, Inc.; All Rights Reserved.
16  *
17  * Contributor(s): ______________________________________.
18  *
19  ********************************************************************************/

20 package org.openi.project;
21
22 import java.util.LinkedList JavaDoc;
23 import java.util.List JavaDoc;
24
25 import org.apache.log4j.Logger;
26
27 /**
28  * Encapsulates an overview of links to analyses (useful for dashboard)
29  */

30 public class Overview {
31     private static Logger logger = org.apache.log4j.Logger.getLogger(Overview.class);
32     private String JavaDoc description;
33     private List JavaDoc links;
34     private int columns = 2;
35     private int thumbnailWidth = 320;
36     private int thumbnailHeight = 240;
37
38     /**
39      *
40      */

41     public Overview() {
42         super();
43         this.links = new LinkedList JavaDoc();
44     }
45
46     public String JavaDoc getDescription() {
47         return description;
48     }
49     public void setDescription(String JavaDoc description) {
50         this.description = description;
51     }
52     public List JavaDoc getLinks() {
53         return links;
54     }
55     public void setLinks(List JavaDoc links) {
56         this.links = links;
57     }
58     public void addLink(String JavaDoc link) {
59         this.links.add(link);
60     }
61     public void removeLink(String JavaDoc link) {
62         this.links.remove(link);
63     }
64
65     public int getColumns() {
66         return columns;
67     }
68
69     public void setColumns(int columns) {
70         this.columns = columns;
71     }
72
73     public int getThumbnailHeight() {
74         return thumbnailHeight;
75     }
76
77     public void setThumbnailHeight(int thumbnailHeight) {
78         this.thumbnailHeight = thumbnailHeight;
79     }
80
81     public int getThumbnailWidth() {
82         return thumbnailWidth;
83     }
84
85     public void setThumbnailWidth(int thumbnailWidth) {
86         this.thumbnailWidth = thumbnailWidth;
87     }
88 }
89
Popular Tags