com.eviware.soapui.support.editor.views
Class AbstractXmlEditorView<T extends XmlDocument>

java.lang.Object
  extended by com.eviware.soapui.support.editor.views.AbstractXmlEditorView<T>
All Implemented Interfaces:
EditorLocationListener<T>, EditorView<T>, XmlEditorView<T>, PropertyChangeNotifier, java.beans.PropertyChangeListener, java.util.EventListener
Direct Known Subclasses:
RawXmlEditor, RestHtmlResponseView, RestJsonResponseView, RestRequestContentView, XmlSourceEditorView

public abstract class AbstractXmlEditorView<T extends XmlDocument>
extends java.lang.Object
implements XmlEditorView<T>, java.beans.PropertyChangeListener

Abstract base-class to be extended by XmlViews

Author:
ole.matzura

Field Summary
 
Fields inherited from interface com.eviware.soapui.support.editor.EditorView
TITLE_PROPERTY
 
Constructor Summary
AbstractXmlEditorView(java.lang.String title, XmlEditor<T> xmlEditor, java.lang.String viewId)
           
 
Method Summary
 boolean activate(EditorLocation<T> location)
           
 void addLocationListener(EditorLocationListener<T> listener)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
           
 boolean deactivate()
           
 void fireLocationChanged(EditorLocation<T> location)
           
 T getDocument()
           
 XmlEditor<T> getEditor()
           
 EditorLocation<T> getEditorLocation()
           
protected  java.beans.PropertyChangeSupport getPropertyChangeSupport()
           
 java.lang.String getTitle()
           
 java.lang.String getViewId()
           
 java.lang.String getXml()
           
 boolean isActive()
           
 boolean isXmlChanged()
           
 void locationChanged(EditorLocation<T> location)
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void release()
           
 void removeLocationListener(EditorLocationListener<T> listener)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
           
 void requestFocus()
           
 void setDocument(T xmlDocument)
           
 void setLocation(EditorLocation<T> location)
           
 void setTitle(java.lang.String title)
           
abstract  void setXml(java.lang.String xml)
           
 void syncUpdates()
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eviware.soapui.support.editor.xml.XmlEditorView
saveDocument
 
Methods inherited from interface com.eviware.soapui.support.editor.EditorView
getComponent, setEditable
 

Constructor Detail

AbstractXmlEditorView

public AbstractXmlEditorView(java.lang.String title,
                             XmlEditor<T> xmlEditor,
                             java.lang.String viewId)
Method Detail

getPropertyChangeSupport

protected java.beans.PropertyChangeSupport getPropertyChangeSupport()

getViewId

public java.lang.String getViewId()
Specified by:
getViewId in interface EditorView<T extends XmlDocument>

activate

public boolean activate(EditorLocation<T> location)
Specified by:
activate in interface EditorView<T extends XmlDocument>

update

public void update()

isXmlChanged

public boolean isXmlChanged()

deactivate

public boolean deactivate()
Specified by:
deactivate in interface EditorView<T extends XmlDocument>

isActive

public boolean isActive()

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface EditorView<T extends XmlDocument>

setTitle

public void setTitle(java.lang.String title)

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface PropertyChangeNotifier

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface PropertyChangeNotifier

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface PropertyChangeNotifier

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String propertyName,
                                         java.beans.PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface PropertyChangeNotifier

getDocument

public T getDocument()
Specified by:
getDocument in interface EditorView<T extends XmlDocument>

setDocument

public void setDocument(T xmlDocument)
Specified by:
setDocument in interface EditorView<T extends XmlDocument>

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

setXml

public abstract void setXml(java.lang.String xml)

release

public void release()
Specified by:
release in interface EditorView<T extends XmlDocument>

addLocationListener

public void addLocationListener(EditorLocationListener<T> listener)
Specified by:
addLocationListener in interface EditorView<T extends XmlDocument>

removeLocationListener

public void removeLocationListener(EditorLocationListener<T> listener)
Specified by:
removeLocationListener in interface EditorView<T extends XmlDocument>

fireLocationChanged

public void fireLocationChanged(EditorLocation<T> location)

getEditorLocation

public EditorLocation<T> getEditorLocation()
Specified by:
getEditorLocation in interface EditorView<T extends XmlDocument>

getXml

public java.lang.String getXml()

setLocation

public void setLocation(EditorLocation<T> location)
Specified by:
setLocation in interface EditorView<T extends XmlDocument>

locationChanged

public void locationChanged(EditorLocation<T> location)
Specified by:
locationChanged in interface EditorLocationListener<T extends XmlDocument>

syncUpdates

public void syncUpdates()

getEditor

public XmlEditor<T> getEditor()
Specified by:
getEditor in interface EditorView<T extends XmlDocument>

requestFocus

public void requestFocus()
Specified by:
requestFocus in interface EditorView<T extends XmlDocument>


Copyright © 2005-2008 eviware.com. All Rights Reserved.