uk.ac.man.bioinf.apps.optionable
Interface OptionHandler

All Known Implementing Classes:
NullOptionHandler, SaveableOptions

public interface OptionHandler

OptionHandler.java Objects implementing this interface should record all of Optionable object, storing and restoring their options as necessary Created: Mon Feb 01 18:10:52 1999

Version:
$Id: OptionHandler.java,v 1.7 2001/04/11 17:04:42 lord Exp $
Author:
Phillip Lord

Method Summary
 void addOptionable(Optionable optionable)
          Add an optionable object.
 void removeOptionable(Optionable optionable)
          Remove the following optionable object from the list
 void requestOptionUpdate(Optionable optionable)
          Request that the optionable object set the the options of the optionable object via its setOptions method.
 

Method Detail

addOptionable

public void addOptionable(Optionable optionable)
Add an optionable object. On adding the Optionhandler should set itself as the OptionHandler for the optionable object, and call requestOptionUpdate also.


removeOptionable

public void removeOptionable(Optionable optionable)
Remove the following optionable object from the list

Parameters:
optionable -

requestOptionUpdate

public void requestOptionUpdate(Optionable optionable)
Request that the optionable object set the the options of the optionable object via its setOptions method. This could be used for a variety of reasons, although the most obvious is a "revert to saved" option.

Parameters:
optionable - the optionable object
See Also:
Optionable.setOptions(java.lang.Object)