1
2
3
4
5
6
7
8
9
10
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, XmlLocationListener
26 {
27 public final static String TITLE_PROPERTY = XmlEditorView.class.getName() + "@title";
28
29 public XmlEditor getEditor();
30
31 public String getTitle();
32
33 public JComponent getComponent();
34
35 public boolean deactivate();
36
37 public boolean activate( XmlLocation location );
38
39 public XmlLocation getLocation();
40
41 public void setLocation( XmlLocation location );
42
43 public void setXmlDocument(XmlDocument xmlDocument);
44
45 public XmlDocument getXmlDocument();
46
47 public boolean saveDocument( boolean validate );
48
49 public void addLocationListener( XmlLocationListener listener );
50
51 public void removeLocationListener( XmlLocationListener listener );
52
53 public void release();
54
55 public boolean isInspectable();
56
57 public void setEditable( boolean enabled );
58
59 public String getViewId();
60
61 public void requestFocus();
62 }