01: /*
02: * soapUI, copyright (C) 2004-2007 eviware.com
03: *
04: * soapUI is free software; you can redistribute it and/or modify it under the
05: * terms of version 2.1 of the GNU Lesser General Public License as published by
06: * the Free Software Foundation.
07: *
08: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
09: * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: * See the GNU Lesser General Public License for more details at gnu.org.
11: */
12:
13: package com.eviware.soapui.impl.wsdl.panels.request.components.editor;
14:
15: import javax.swing.JComponent;
16:
17: import com.eviware.soapui.support.PropertyChangeNotifier;
18:
19: /**
20: * Views available for the XmlDocument of a XmlEditor
21: *
22: * @author ole.matzura
23: */
24:
25: public interface XmlEditorView extends PropertyChangeNotifier,
26: XmlLocationListener {
27: public final static String TITLE_PROPERTY = XmlEditorView.class
28: .getName()
29: + "@title";
30:
31: public XmlEditor getEditor();
32:
33: public String getTitle();
34:
35: public JComponent getComponent();
36:
37: public boolean deactivate();
38:
39: public boolean activate(XmlLocation location);
40:
41: public XmlLocation getLocation();
42:
43: public void setLocation(XmlLocation location);
44:
45: public void setXmlDocument(XmlDocument xmlDocument);
46:
47: public XmlDocument getXmlDocument();
48:
49: public boolean saveDocument(boolean validate);
50:
51: public void addLocationListener(XmlLocationListener listener);
52:
53: public void removeLocationListener(XmlLocationListener listener);
54:
55: public void release();
56:
57: public boolean isInspectable();
58:
59: public void setEditable(boolean enabled);
60:
61: public String getViewId();
62:
63: public void requestFocus();
64: }
|