public abstract class LibraryPropertiesEditorBase<P extends LibraryProperties,T extends LibraryType<P>> extends LibraryPropertiesEditor
Modifier and Type | Field and Description |
---|---|
protected LibraryEditorComponent<P> |
myEditorComponent |
protected T |
myLibraryType |
Modifier | Constructor and Description |
---|---|
protected |
LibraryPropertiesEditorBase(LibraryEditorComponent<P> editorComponent,
T libraryType,
java.lang.String editButtonText) |
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
createComponent()
Creates new Swing form that enables user to configure the settings.
|
protected abstract void |
edit() |
protected javax.swing.JPanel |
getMainPanel() |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
protected void |
setModified() |
protected void |
updateDescription() |
apply
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, disposeUIResources
protected final LibraryEditorComponent<P extends LibraryProperties> myEditorComponent
protected final T extends LibraryType<P> myLibraryType
protected LibraryPropertiesEditorBase(LibraryEditorComponent<P> editorComponent, T libraryType, java.lang.String editButtonText)
protected javax.swing.JPanel getMainPanel()
protected void updateDescription()
protected abstract void edit()
protected void setModified()
public javax.swing.JComponent createComponent()
UnnamedConfigurable
Also this place is designed to allocate resources (subscriptions/listeners etc.)
createComponent
in interface UnnamedConfigurable
createComponent
in class LibraryPropertiesEditor
null
if it cannot be createdUnnamedConfigurable.disposeUIResources()
public boolean isModified()
UnnamedConfigurable
true
if the settings were modified, false
otherwisepublic void reset()
UnnamedConfigurable