com.eviware.soapui.support.editor.views.xml.source
Class XmlSourceEditorView<T extends ModelItem>
java.lang.Object
com.eviware.soapui.support.editor.views.AbstractXmlEditorView<XmlDocument>
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
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, locationChanged, 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 |
isLocating
public boolean isLocating
XmlSourceEditorView
public XmlSourceEditorView(XmlEditor<XmlDocument> xmlEditor,
T modelItem)
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(XmlLocation location)
getEditorPopup
public javax.swing.JPopupMenu getEditorPopup()
hasFocus
public boolean hasFocus()
isInspectable
public boolean isInspectable()
getValidateXmlAction
public XmlSourceEditorView.ValidateMessageXmlAction getValidateXmlAction()
Copyright © 2005-2009 eviware.com. All Rights Reserved.