Package docking.options.editor
Class ScrollableOptionsEditor
- java.lang.Object
-
- docking.options.editor.ScrollableOptionsEditor
-
- All Implemented Interfaces:
OptionsEditor
public class ScrollableOptionsEditor extends java.lang.Object implements OptionsEditor
Panel that shows each property in an Options category or a Group in an Options category
-
-
Constructor Summary
Constructors Constructor Description ScrollableOptionsEditor(java.lang.String title)Creates a panel for editing options.ScrollableOptionsEditor(java.lang.String title, java.util.List<java.lang.String> optionNames)Creates a panel for editing options.
-
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.JComponentgetComponent()javax.swing.JComponentgetEditorComponent(Options options, EditorStateFactory factory)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
-
-
-
Constructor Detail
-
ScrollableOptionsEditor
public ScrollableOptionsEditor(java.lang.String title, java.util.List<java.lang.String> optionNames)Creates a panel for editing options. This version of the constructor allows the client to specify the option names to put them in some order other than the default alphabetical ordering.- Parameters:
title- The title of the options paneloptionNames- the names of the options for this panel
-
ScrollableOptionsEditor
public ScrollableOptionsEditor(java.lang.String title)
Creates a panel for editing options. This version of the constructor will get the options names from the options object whengetEditorComponent(Options, EditorStateFactory)is called.- Parameters:
title- the title for the panel
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:OptionsEditorDispose this editor- Specified by:
disposein interfaceOptionsEditor
-
apply
public void apply() throws InvalidInputExceptionDescription copied from interface:OptionsEditorApply the changes.- Specified by:
applyin interfaceOptionsEditor- Throws:
InvalidInputException
-
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
-
getEditorComponent
public javax.swing.JComponent getEditorComponent(Options options, EditorStateFactory factory)
Description copied from interface:OptionsEditorGet the editor component.- Specified by:
getEditorComponentin interfaceOptionsEditor- Parameters:
options- The editable options that for which a GUI component will be createdfactory- The factory that will provide state objects this options editor
-
setOptionsPropertyChangeListener
public void setOptionsPropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface:OptionsEditorSets the options change listener- Specified by:
setOptionsPropertyChangeListenerin interfaceOptionsEditor
-
getComponent
public javax.swing.JComponent getComponent()
-
-