Package ghidra.app.util.viewer.options
Class ListingDisplayOptionsEditor
- java.lang.Object
-
- ghidra.app.util.viewer.options.ListingDisplayOptionsEditor
-
- All Implemented Interfaces:
OptionsEditor
public class ListingDisplayOptionsEditor extends java.lang.Object implements OptionsEditor
Class for editing Listing display properties.
-
-
Field Summary
Fields Modifier and Type Field Description static java.awt.FontDEFAULT_FONT
-
Constructor Summary
Constructors Constructor Description ListingDisplayOptionsEditor(Plugin ownerPlugin, Options options)Constructs a new ListingDisplayOptionsEditor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply()Apply the changes.voidcancel()Cancel the changes.voiddispose()Dispose this editorjavax.swing.JComponentgetEditorComponent(Options editableOptions, EditorStateFactory editorStateFactory)Get the editor component.booleanisResizable()Returns true if this component has "good" resizing behavior.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
-
dispose
public void dispose()
Description copied from interface:OptionsEditorDispose this editor- Specified by:
disposein interfaceOptionsEditor
-
apply
public void apply()
Apply the changes.- Specified by:
applyin interfaceOptionsEditor
-
cancel
public void cancel()
Description copied from interface:OptionsEditorCancel the changes.- Specified by:
cancelin interfaceOptionsEditor
-
reload
public void reload()
Description copied from interface:OptionsEditorA 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.- Specified by:
reloadin interfaceOptionsEditor
-
setOptionsPropertyChangeListener
public void setOptionsPropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface:OptionsEditorSets the options change listener- Specified by:
setOptionsPropertyChangeListenerin interfaceOptionsEditor- See Also:
OptionsEditor.setOptionsPropertyChangeListener(java.beans.PropertyChangeListener)
-
isResizable
public boolean isResizable()
Returns true if this component has "good" resizing behavior. Components that do not have this property will be placed in a scrolled pane.
-
getEditorComponent
public javax.swing.JComponent getEditorComponent(Options editableOptions, EditorStateFactory editorStateFactory)
Get the editor component.- Specified by:
getEditorComponentin interfaceOptionsEditor- Parameters:
editableOptions- The editable options that for which a GUI component will be creatededitorStateFactory- The factory that will provide state objects this options editor
-
-