Package ghidra.framework.options
Interface OptionsEditor
-
- All Known Implementing Classes:
ListingDisplayOptionsEditor,ScrollableOptionsEditor,SpecExtensionEditor
public interface OptionsEditorInterface to define methods for an editor that supplies its own component to be displayed in the OptionsDialog.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply()Apply the changes.voidcancel()Cancel the changes.voiddispose()Dispose this editorjavax.swing.JComponentgetEditorComponent(Options options, EditorStateFactory editorStateFactory)Get the editor component.voidreload()A signal to reload the GUI widgets in the component created by this editor.voidsetOptionsPropertyChangeListener(java.beans.PropertyChangeListener listener)Sets the options change listener
-
-
-
Method Detail
-
apply
void apply() throws InvalidInputExceptionApply the changes.- Throws:
InvalidInputException
-
cancel
void cancel()
Cancel the changes.
-
reload
void reload()
A signal to reload the GUI widgets in the component created by this editor. This will happen when the options change out from under the editor, such as when the user restores the default options values.
-
setOptionsPropertyChangeListener
void setOptionsPropertyChangeListener(java.beans.PropertyChangeListener listener)
Sets the options change listener- Parameters:
listener-
-
getEditorComponent
javax.swing.JComponent getEditorComponent(Options options, EditorStateFactory editorStateFactory)
Get the editor component.- Parameters:
options- The editable options that for which a GUI component will be creatededitorStateFactory- The factory that will provide state objects this options editor
-
dispose
void dispose()
Dispose this editor
-
-