com.eviware.soapui.support.editor.views.xml.source
Class XmlSourceEditorView<T extends ModelItem>

java.lang.Object
  extended by com.eviware.soapui.support.editor.views.AbstractXmlEditorView<XmlDocument>
      extended by com.eviware.soapui.support.editor.views.xml.source.XmlSourceEditorView<T>
All Implemented Interfaces:
EditorLocationListener<XmlDocument>, EditorView<XmlDocument>, XmlEditorView<XmlDocument>, PropertyChangeNotifier, java.beans.PropertyChangeListener, java.util.EventListener
Direct Known Subclasses:
XmlSourceEditorViewFactory.WsdlMockRequestXmlSourceEditor, XmlSourceEditorViewFactory.WsdlMockResponseXmlSourceEditor, XmlSourceEditorViewFactory.WsdlRequestXmlSourceEditor, XmlSourceEditorViewFactory.WsdlResponseXmlSourceEditor

public class XmlSourceEditorView<T extends ModelItem>
extends AbstractXmlEditorView<XmlDocument>
implements java.beans.PropertyChangeListener

Default "XML" source editor view in soapUI

Author:
ole.matzura

Nested Class Summary
 class XmlSourceEditorView.ValidateMessageXmlAction
           
 
Field Summary
 boolean isLocating
           
 
Fields inherited from interface com.eviware.soapui.support.editor.EditorView
TITLE_PROPERTY
 
Constructor Summary
XmlSourceEditorView(XmlEditor<XmlDocument> xmlEditor, T modelItem)
           
 
Method Summary
 boolean activate(XmlLocation location)
           
protected  void buildPopup(javax.swing.JPopupMenu inputPopup, JXEditTextArea editArea)
           
protected  void buildUI()
           
 javax.swing.JComponent getComponent()
           
 int getCurrentColumn()
           
 int getCurrentLine()
           
 XmlLocation getEditorLocation()
           
 javax.swing.JPopupMenu getEditorPopup()
           
 javax.swing.JScrollPane getEditorScrollPane()
           
 JXEditTextArea getInputArea()
           
 T getModelItem()
           
 java.lang.String getText()
           
 XmlSourceEditorView.ValidateMessageXmlAction getValidateXmlAction()
           
 boolean hasFocus()
           
 boolean isInspectable()
           
 void locationChanged(EditorLocation<XmlDocument> location)
           
 void release()
           
 boolean saveDocument(boolean validate)
           
 void setEditable(boolean enabled)
           
 void setLocation(XmlLocation location)
           
 void setXml(java.lang.String xml)
           
 boolean validate()
           
protected  ValidationError[] validateXml(java.lang.String xml)
           
 
Methods inherited from class com.eviware.soapui.support.editor.views.AbstractXmlEditorView
activate, addLocationListener, addPropertyChangeListener, addPropertyChangeListener, deactivate, fireLocationChanged, getDocument, getEditor, getPropertyChangeSupport, getTitle, getViewId, getXml, isActive, isXmlChanged, propertyChange, removeLocationListener, removePropertyChangeListener, removePropertyChangeListener, requestFocus, setDocument, setLocation, setTitle, syncUpdates, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Field Detail

isLocating

public boolean isLocating
Constructor Detail

XmlSourceEditorView

public XmlSourceEditorView(XmlEditor<XmlDocument> xmlEditor,
                           T modelItem)
Method Detail

buildUI

protected void buildUI()

getEditorScrollPane

public javax.swing.JScrollPane getEditorScrollPane()

getModelItem

public T getModelItem()

buildPopup

protected void buildPopup(javax.swing.JPopupMenu inputPopup,
                          JXEditTextArea editArea)

release

public void release()
Specified by:
release in interface EditorView<XmlDocument>
Overrides:
release in class AbstractXmlEditorView<XmlDocument>

getInputArea

public JXEditTextArea getInputArea()

setEditable

public void setEditable(boolean enabled)
Specified by:
setEditable in interface EditorView<XmlDocument>

validateXml

protected ValidationError[] validateXml(java.lang.String xml)

activate

public boolean activate(XmlLocation location)

getComponent

public javax.swing.JComponent getComponent()
Specified by:
getComponent in interface EditorView<XmlDocument>

getEditorLocation

public XmlLocation getEditorLocation()
Specified by:
getEditorLocation in interface EditorView<XmlDocument>
Overrides:
getEditorLocation in class AbstractXmlEditorView<XmlDocument>

setLocation

public void setLocation(XmlLocation location)

getCurrentLine

public int getCurrentLine()

getCurrentColumn

public int getCurrentColumn()

getText

public java.lang.String getText()

validate

public boolean validate()

setXml

public void setXml(java.lang.String xml)
Specified by:
setXml in class AbstractXmlEditorView<XmlDocument>

saveDocument

public boolean saveDocument(boolean validate)
Specified by:
saveDocument in interface XmlEditorView<XmlDocument>

locationChanged

public void locationChanged(EditorLocation<XmlDocument> location)
Specified by:
locationChanged in interface EditorLocationListener<XmlDocument>
Overrides:
locationChanged in class AbstractXmlEditorView<XmlDocument>

getEditorPopup

public javax.swing.JPopupMenu getEditorPopup()

hasFocus

public boolean hasFocus()

isInspectable

public boolean isInspectable()

getValidateXmlAction

public XmlSourceEditorView.ValidateMessageXmlAction getValidateXmlAction()


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