01: //The contents of this file are subject to the Mozilla Public License Version 1.1
02: //(the "License"); you may not use this file except in compliance with the
03: //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
04: //
05: //Software distributed under the License is distributed on an "AS IS" basis,
06: //WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
07: //for the specific language governing rights and
08: //limitations under the License.
09: //
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.config.subscribe;
17:
18: import org.columba.mail.command.MailFolderCommandReference;
19: import org.columba.mail.folder.IMailFolder;
20:
21: public class SubscribeCommandReference extends
22: MailFolderCommandReference {
23: private SubscribeDialog dialog;
24:
25: private String mailbox;
26:
27: /**
28: * @param folder
29: */
30: public SubscribeCommandReference(IMailFolder folder,
31: SubscribeDialog dialog) {
32: super (folder);
33:
34: this .dialog = dialog;
35: }
36:
37: /**
38: * @param folder
39: */
40: public SubscribeCommandReference(IMailFolder folder,
41: SubscribeDialog dialog, String mailbox) {
42: super (folder);
43:
44: this .dialog = dialog;
45: this .mailbox = mailbox;
46: }
47:
48: /**
49: * @return Returns the dialog.
50: */
51: public SubscribeDialog getDialog() {
52: return dialog;
53: }
54:
55: /**
56: * @param dialog
57: * The dialog to set.
58: */
59: public void setDialog(SubscribeDialog dialog) {
60: this .dialog = dialog;
61: }
62:
63: /**
64: * @return Returns the mailbox.
65: */
66: public String getMailbox() {
67: return mailbox;
68: }
69:
70: /**
71: * @param mailbox
72: * The mailbox to set.
73: */
74: public void setMailbox(String mailbox) {
75: this.mailbox = mailbox;
76: }
77: }
|