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.action;
19:
20: import java.util.logging.Logger;
21:
22: import javax.swing.ImageIcon;
23:
24: import de.finix.contelligent.client.gui.AbstractGUIWithCommonRendererAndEditor;
25: import de.finix.contelligent.client.gui.ComponentEditor;
26: import de.finix.contelligent.client.i18n.Resources;
27:
28: public class FActionGUI extends AbstractGUIWithCommonRendererAndEditor {
29:
30: private static Logger logger = Logger.getLogger(FActionGUI.class
31: .getName());
32:
33: protected ComponentEditor createEditor(boolean editable) {
34: FActionEditor editor = new FActionEditor();
35: editor.setComponent(getComponent());
36: editor.setView(getView());
37: editor.setEditable(editable);
38: editor.init();
39: return editor;
40: }
41:
42: public boolean hidesSubcomponents() {
43: return true;
44: }
45:
46: public boolean isSupported(int type) {
47: return (type == DEFAULT);
48: }
49:
50: public String getName() {
51: return Resources.getLocalString("action_gui");
52: }
53:
54: public ImageIcon getIcon() {
55: return Resources.actionGUI;
56: }
57: }
|