public abstract class AbstractEditorView<T extends EditorDocument> extends Object implements EditorView<T>
TITLE_PROPERTY
Constructor and Description |
---|
AbstractEditorView(String title,
Editor<T> editor,
String viewId) |
protected PropertyChangeSupport getPropertyChangeSupport()
public JComponent getComponent()
getComponent
in interface EditorView<T extends EditorDocument>
public String getViewId()
getViewId
in interface EditorView<T extends EditorDocument>
public void requestFocus()
requestFocus
in interface EditorView<T extends EditorDocument>
public abstract JComponent buildUI()
public boolean activate(EditorLocation<T> location)
activate
in interface EditorView<T extends EditorDocument>
public boolean deactivate()
deactivate
in interface EditorView<T extends EditorDocument>
public boolean isActive()
public String getTitle()
getTitle
in interface EditorView<T extends EditorDocument>
public void setTitle(String title)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
addPropertyChangeListener
in interface PropertyChangeNotifier
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface PropertyChangeNotifier
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface PropertyChangeNotifier
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
removePropertyChangeListener
in interface PropertyChangeNotifier
public T getDocument()
getDocument
in interface EditorView<T extends EditorDocument>
public void setDocument(T xmlDocument)
setDocument
in interface EditorView<T extends EditorDocument>
public void release()
release
in interface EditorView<T extends EditorDocument>
public void addLocationListener(EditorLocationListener<T> listener)
addLocationListener
in interface EditorView<T extends EditorDocument>
public void removeLocationListener(EditorLocationListener<T> listener)
removeLocationListener
in interface EditorView<T extends EditorDocument>
public void fireLocationChanged(EditorLocation<T> location)
public EditorLocation<T> getEditorLocation()
getEditorLocation
in interface EditorView<T extends EditorDocument>
public void setLocation(EditorLocation<T> location)
setLocation
in interface EditorView<T extends EditorDocument>
public void locationChanged(EditorLocation<T> location)
locationChanged
in interface EditorLocationListener<T extends EditorDocument>
public Editor<T> getEditor()
getEditor
in interface EditorView<T extends EditorDocument>
public void setEditable(boolean enabled)
setEditable
in interface EditorView<T extends EditorDocument>
Copyright © 2019. All Rights Reserved.