1
2
3
4
5
6
7
8
9
10
11
12
13 package com.eviware.soapui.support.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 EditorView<T extends EditorDocument> extends PropertyChangeNotifier, EditorLocationListener<T>
26 {
27 public final static String TITLE_PROPERTY = EditorView.class.getName() + "@title";
28
29 public Editor<T> getEditor();
30
31 public String getTitle();
32
33 public JComponent getComponent();
34
35 public boolean deactivate();
36
37 public boolean activate( EditorLocation<T> location );
38
39 public EditorLocation<T> getEditorLocation();
40
41 public void setLocation( EditorLocation<T> location );
42
43 public void setDocument( T document );
44
45 public T getDocument();
46
47 public void addLocationListener( EditorLocationListener<T> listener );
48
49 public void removeLocationListener( EditorLocationListener<T> listener );
50
51 public void release();
52
53 public void setEditable( boolean enabled );
54
55 public String getViewId();
56
57 public void requestFocus();
58 }