01: /*
02: * Copyright 2001-2006 C:1 Financial Services GmbH
03: *
04: * This software is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License Version 2.1, as published by the Free Software Foundation.
07: *
08: * This software is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: * Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public
14: * License along with this library; if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
16: */
17:
18: package de.finix.contelligent.client.modules;
19:
20: import java.util.List;
21:
22: import javax.swing.Action;
23: import javax.swing.ImageIcon;
24:
25: import de.finix.contelligent.client.modules.event.ModuleListener;
26: import de.finix.contelligent.client.util.MenuAndToolbarComposer;
27:
28: public interface Module {
29:
30: /**
31: * This method will be called by the contelligent client to inform the
32: * module that it has been loaded into the system
33: *
34: */
35: public void init() throws ModuleInitException;
36:
37: public Action[] getActions();
38:
39: public ImageIcon getIcon();
40:
41: public void setModuleDescription(ModuleDescription description);
42:
43: public ModuleDescription getModuleDescription();
44:
45: public void setMenuAndToolbarComposer(
46: MenuAndToolbarComposer composer);
47:
48: public MenuAndToolbarComposer getMenuAndToolbarComposer();
49:
50: public void addModuleListener(ModuleListener listener);
51:
52: public void removeModuleListener(ModuleListener listener);
53:
54: public List getModuleListeners();
55:
56: public boolean isActive();
57:
58: public boolean isLightweightFrame();
59: }
|