Package ghidra.framework.options
Interface OptionsEditor
-
- All Known Implementing Classes:
ListingDisplayOptionsEditor
,ScrollableOptionsEditor
,SpecExtensionEditor
public interface OptionsEditor
Interface 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 void
apply()
Apply the changes.void
cancel()
Cancel the changes.void
dispose()
Dispose this editorjavax.swing.JComponent
getEditorComponent(Options options, EditorStateFactory editorStateFactory)
Get the editor component.void
reload()
A signal to reload the GUI widgets in the component created by this editor.void
setOptionsPropertyChangeListener(java.beans.PropertyChangeListener listener)
Sets the options change listener
-
-
-
Method Detail
-
apply
void apply() throws InvalidInputException
Apply 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
-
-