KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > mail > gui > table > model > TableModelChangedEvent


1 //The contents of this file are subject to the Mozilla Public License Version 1.1
2
//(the "License"); you may not use this file except in compliance with the
3
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
4
//
5
//Software distributed under the License is distributed on an "AS IS" basis,
6
//WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
7
//for the specific language governing rights and
8
//limitations under the License.
9
//
10
//The Original Code is "The Columba Project"
11
//
12
//The Initial Developers of the Original Code are Frederik Dietz and Timo Stich.
13
//Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003.
14
//
15
//All Rights Reserved.
16
package org.columba.mail.gui.table.model;
17
18 import org.columba.mail.folder.IMailFolder;
19 import org.columba.mail.message.IHeaderList;
20
21
22 /**
23  * @author freddy
24  *
25  * To change this generated comment edit the template variable "typecomment":
26  * Window>Preferences>Java>Templates.
27  * To enable and disable the creation of type comments go to
28  * Window>Preferences>Java>Code Generation.
29  */

30 public class TableModelChangedEvent {
31     public final static int UPDATE = 0;
32     public final static int SET = 1;
33     public final static int REMOVE = 2;
34     public final static int MARK = 3;
35     protected IMailFolder srcFolder;
36     protected Object JavaDoc[] uids;
37     protected int markVariant;
38     protected int eventType;
39     protected IHeaderList headerList;
40
41     /**
42  * Constructor for TableChangedEvent.
43  */

44     public TableModelChangedEvent(int eventType) {
45         this.eventType = eventType;
46     }
47
48     public TableModelChangedEvent(int eventType, IMailFolder srcFolder) {
49         this.eventType = eventType;
50         this.srcFolder = srcFolder;
51     }
52
53     public TableModelChangedEvent(int eventType, IMailFolder srcFolder,
54         Object JavaDoc[] uids) {
55         this.eventType = eventType;
56         this.srcFolder = srcFolder;
57         this.uids = uids;
58     }
59
60     public TableModelChangedEvent(int eventType, IMailFolder srcFolder,
61         IHeaderList headerList) {
62         this.eventType = eventType;
63         this.srcFolder = srcFolder;
64         this.headerList = headerList;
65     }
66
67     public TableModelChangedEvent(int eventType, IMailFolder srcFolder,
68         Object JavaDoc[] uids, int markVariant) {
69         this.eventType = eventType;
70         this.srcFolder = srcFolder;
71         this.uids = uids;
72         this.markVariant = markVariant;
73     }
74
75     /**
76  * Returns the markVariant.
77  * @return int
78  */

79     public int getMarkVariant() {
80         return markVariant;
81     }
82
83     /**
84  * Returns the srcFolder.
85  * @return FolderTreeNode
86  */

87     public IMailFolder getSrcFolder() {
88         return srcFolder;
89     }
90
91     /**
92  * Returns the uids.
93  * @return Object[]
94  */

95     public Object JavaDoc[] getUids() {
96         return uids;
97     }
98
99     /**
100  * Returns the eventType.
101  * @return int
102  */

103     public int getEventType() {
104         return eventType;
105     }
106
107     /**
108  * Returns the headerList.
109  * @return HeaderInterface[]
110  */

111     public IHeaderList getHeaderList() {
112         return headerList;
113     }
114 }
115
Popular Tags