bibliothek.gui.dock.support.mode
Interface ModeSettingFactory<A>

Type Parameters:
A - the kind of data used by the LocationModeManager to store information
All Known Implementing Classes:
NullModeSettingsFactory

public interface ModeSettingFactory<A>

A factory creating new ModeSettings.

Author:
Benjamin Sigg

Method Summary
 ModeSetting<A> create()
          Creates a new, empty ModeSetting.
 Path getModeId()
          Gets the unique identifier of the Mode which uses the ModeSetting of this factory.
 

Method Detail

getModeId

Path getModeId()
Gets the unique identifier of the Mode which uses the ModeSetting of this factory.

Returns:
the unique identifier, not null

create

ModeSetting<A> create()
Creates a new, empty ModeSetting.

Returns:
the new setting or null to indicate that there is nothing to store