Implementation of OptionsPanel

In order to give the user some adapter specific options you have to implement an OptionsPanel. This class has to extend AdapterOptionsPanel from XQuery.jar. The classname has to end in AdapterOptionsPanel. e.g. GalaxAdapterOptionsPanel. This Class has to overload two functions: _save() and _init(). _init() is called when the AdapterOptions are accessed and _save() is called when Apply or OK is clicked. You can add components by using one of the addComponent functions provided in OptionsPanel. We have however added two special functions:

Special about these two functions is that you do not need to provide any _save() code for them. Everything added with these two functions will be saved and called automatically. This means that options added with these two functions will be automatically remembered after quitting jEdit.