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.category;
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.gui.GUI;
27: import de.finix.contelligent.client.gui.text.XslGUI;
28: import de.finix.contelligent.client.i18n.Resources;
29:
30: public class TransformerGUI extends
31: AbstractGUIWithCommonRendererAndEditor {
32:
33: private static Logger logger = Logger
34: .getLogger(TransformerGUI.class.getName());
35:
36: public void init() {
37: setResourceMode(GUI.TEMPLATE);
38: }
39:
40: protected ComponentEditor createEditor(boolean editable) {
41: CategorySensitiveComposedEditor editor = new CategorySensitiveComposedEditor();
42: editor.setComponent(getComponent());
43: editor.setView(getView());
44: editor.setGUI(this );
45: editor.setGUIClass(XslGUI.class);
46: editor.setEditable(editable);
47: editor.init();
48: return editor;
49: }
50:
51: public boolean isSupported(int type) {
52: return (type == DEFAULT || type == TABLE);
53: }
54:
55: public String getName() {
56: return "XSL Template";
57: }
58:
59: public ImageIcon getIcon() {
60: return Resources.textGUI;
61: }
62: }
|