01: /*
02: * Copyright (c) 2000, Jacob Smullyan.
03: *
04: * This is part of SkunkDAV, a WebDAV client. See http://skunkdav.sourceforge.net/
05: * for the latest version.
06: *
07: * SkunkDAV is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License as published
09: * by the Free Software Foundation; either version 2, or (at your option)
10: * any later version.
11: *
12: * SkunkDAV is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with SkunkDAV; see the file COPYING. If not, write to the Free
19: * Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20: * 02111-1307, USA.
21: */
22:
23: package org.skunk.dav.client.gui;
24:
25: import javax.swing.JComponent;
26:
27: /**
28: * an abstraction of something that gets docked into a View,
29: * for instance, an editing widget or an explorer.
30: */
31: public interface Buffer {
32: /**
33: * @return the buffer's visual component
34: */
35: JComponent getComponent();
36:
37: /**
38: * @return the buffer's name
39: */
40: String getName();
41:
42: /**
43: * set the buffer's name
44: */
45: void setName(String name);
46:
47: /**
48: * hook method, called when component is docked
49: */
50: void docking();
51:
52: /**
53: * hook method, called when component is undocked
54: */
55: void undocking();
56: }
57:
58: /* $Log: Buffer.java,v $
59: /* Revision 1.6 2000/12/19 22:06:15 smulloni
60: /* adding documentation.
61: /*
62: /* Revision 1.5 2000/12/03 23:53:26 smulloni
63: /* added license and copyright preamble to java files.
64: /*
65: /* Revision 1.4 2000/12/01 16:25:51 smullyan
66: /* improvements to look and feel; fixed NPE in DAVFile; new actions for text
67: /* editor
68: /*
69: /* Revision 1.3 2000/11/20 23:30:19 smullyan
70: /* more editor integration work.
71: /*
72: /* Revision 1.2 2000/11/16 20:45:17 smullyan
73: /* the start of editor integration.
74: /* */
|