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.gui;
19:
20: import java.awt.BorderLayout;
21:
22: import javax.swing.JComponent;
23:
24: import de.finix.contelligent.client.modules.ModuleInitException;
25: import de.finix.contelligent.client.util.ExceptionDialog;
26:
27: public class LibraryView extends AbstractView {
28:
29: public void init() throws ModuleInitException {
30: super .init();
31: setSize(200, 450);
32:
33: // GUI Panel contains the GUI of the views root component
34: GUI gui = GUIFactory.getInstance().getGUI(getRootComponent(),
35: this , new GUIDescription[] { getRootGUIDescription() })[0];
36: try {
37: add((JComponent) gui.getRenderer(GUI.DEFAULT),
38: BorderLayout.CENTER);
39: } catch (UnsupportedGUIException e) {
40: ExceptionDialog.show(e);
41: }
42: }
43: }
|