01: /*
02: * Copyright (c) 2005 Einar Pehrson <einar@pehrson.nu>.
03: *
04: * This file is part of
05: * CleanSheets - a spreadsheet application for the Java platform.
06: *
07: * CleanSheets is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU General Public License as published by
09: * the Free Software Foundation; either version 2 of the License, or
10: * (at your option) any later version.
11: *
12: * CleanSheets 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
15: * GNU General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with CleanSheets; if not, write to the Free Software
19: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20: */
21: package csheets.core;
22:
23: import java.util.EventListener;
24:
25: /**
26: * A listener interface for receiving notification on events occurring in a
27: * workbook.
28: * @author Einar Pehrson
29: */
30: public interface WorkbookListener extends EventListener {
31:
32: /**
33: * Invoked when a spreadsheet has been inserted into a workbook.
34: * @param spreadsheet the spreadsheet that was inserted
35: * @param index the index at which the spreadsheet was inserted
36: */
37: public void spreadsheetInserted(Spreadsheet spreadsheet, int index);
38:
39: /**
40: * Invoked when a spreadsheet has been removed from a workbook.
41: * @param spreadsheet the spreadsheet that was removed
42: */
43: public void spreadsheetRemoved(Spreadsheet spreadsheet);
44:
45: /**
46: * Invoked when a spreadsheet in a workbook has been renamed.
47: * @param spreadsheet the spreadsheet that was renamed
48: */
49: public void spreadsheetRenamed(Spreadsheet spreadsheet);
50: }
|