com.eviware.soapui.support.editor.support
Class AbstractEditorView<T extends EditorDocument>

java.lang.Object
  extended by com.eviware.soapui.support.editor.support.AbstractEditorView<T>
All Implemented Interfaces:
EditorLocationListener<T>, EditorView<T>, PropertyChangeNotifier

public abstract class AbstractEditorView<T extends EditorDocument>
extends java.lang.Object
implements EditorView<T>

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
AbstractEditorView(java.lang.String title, Editor<T> editor, 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)
           
abstract  javax.swing.JComponent buildUI()
           
 boolean deactivate()
           
 void fireLocationChanged(EditorLocation<T> location)
           
 javax.swing.JComponent getComponent()
           
 T getDocument()
           
 Editor<T> getEditor()
           
 EditorLocation<T> getEditorLocation()
           
protected  java.beans.PropertyChangeSupport getPropertyChangeSupport()
           
 java.lang.String getTitle()
           
 java.lang.String getViewId()
           
 boolean isActive()
           
 void locationChanged(EditorLocation<T> location)
           
 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 setEditable(boolean enabled)
           
 void setLocation(EditorLocation<T> location)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEditorView

public AbstractEditorView(java.lang.String title,
                          Editor<T> editor,
                          java.lang.String viewId)
Method Detail

getPropertyChangeSupport

protected java.beans.PropertyChangeSupport getPropertyChangeSupport()

getComponent

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

getViewId

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

requestFocus

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

buildUI

public abstract javax.swing.JComponent buildUI()

activate

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

deactivate

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

isActive

public boolean isActive()

getTitle

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

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 EditorDocument>

setDocument

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

release

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

addLocationListener

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

removeLocationListener

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

fireLocationChanged

public void fireLocationChanged(EditorLocation<T> location)

getEditorLocation

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

setLocation

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

locationChanged

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

getEditor

public Editor<T> getEditor()
Specified by:
getEditor in interface EditorView<T extends EditorDocument>

setEditable

public void setEditable(boolean enabled)
Specified by:
setEditable in interface EditorView<T extends EditorDocument>


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