public abstract class DesignerEditor extends UserDataHolderBase implements FileEditor
Disposable.Parent| Modifier and Type | Field and Description | 
|---|---|
| protected DesignerEditorPanel | myDesignerPanel | 
PROP_MODIFIED, PROP_VALID| Constructor and Description | 
|---|
| DesignerEditor(Project project,
              VirtualFile file) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addPropertyChangeListener(java.beans.PropertyChangeListener listener)Removes specified listener | 
| protected abstract DesignerEditorPanel | createDesignerPanel(Project project,
                   Module module,
                   VirtualFile file) | 
| void | deselectNotify()This method is invoked each time when the editor is deselected. | 
| void | dispose()Usually not invoked directly, see class javadoc. | 
| protected abstract Module | findModule(Project project,
          VirtualFile file) | 
| javax.swing.JComponent | getComponent() | 
| FileEditorLocation | getCurrentLocation()The method is optional. | 
| DesignerEditorPanel | getDesignerPanel() | 
| java.lang.String | getName() | 
| javax.swing.JComponent | getPreferredFocusedComponent()Returns component to be focused when editor is opened. | 
| FileEditorState | getState(FileEditorStateLevel level) | 
| boolean | isModified() | 
| boolean | isValid() | 
| void | removePropertyChangeListener(java.beans.PropertyChangeListener listener)Adds specified listener | 
| void | selectNotify()This method is invoked each time when the editor is selected. | 
| void | setState(FileEditorState state)Applies given state to the editor. | 
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBackgroundHighlighter, getFile, getStructureViewBuilder, setStategetUserData, putUserDataprotected final DesignerEditorPanel myDesignerPanel
public DesignerEditor(Project project, VirtualFile file)
protected abstract Module findModule(Project project, VirtualFile file)
protected abstract DesignerEditorPanel createDesignerPanel(Project project, Module module, VirtualFile file)
public final DesignerEditorPanel getDesignerPanel()
public final javax.swing.JComponent getComponent()
getComponent in interface FileEditornull.public final javax.swing.JComponent getPreferredFocusedComponent()
FileEditorgetPreferredFocusedComponent in interface FileEditorpublic java.lang.String getName()
getName in interface FileEditornull.public void dispose()
Disposabledispose in interface Disposablepublic void selectNotify()
FileEditorselectNotify in interface FileEditorpublic void deselectNotify()
FileEditordeselectNotify in interface FileEditorpublic boolean isValid()
isValid in interface FileEditorpublic boolean isModified()
isModified in interface FileEditorpublic FileEditorState getState(FileEditorStateLevel level)
getState in interface FileEditornull.public void setState(FileEditorState state)
FileEditorsetState in interface FileEditorstate - cannot be nullpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
FileEditoraddPropertyChangeListener in interface FileEditorlistener - to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
FileEditorremovePropertyChangeListener in interface FileEditorlistener - to be removedpublic FileEditorLocation getCurrentLocation()
FileEditorgetCurrentLocation in interface FileEditor