Package bibliothek.gui.dock.support.mode
Interface ModeSettingFactory<A>
- Type Parameters:
A- the kind of data used by theLocationModeManagerto store information
- All Known Implementing Classes:
NullModeSettingsFactory
public interface ModeSettingFactory<A>
A factory creating new
ModeSettings.- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a new, emptyModeSetting.Gets the unique identifier of theModewhich uses theModeSettingof this factory.
-
Method Details
-
getModeId
Path getModeId()Gets the unique identifier of theModewhich uses theModeSettingof this factory.- Returns:
- the unique identifier, not
null
-
create
ModeSetting<A> create()Creates a new, emptyModeSetting.- Returns:
- the new setting or
nullto indicate that there is nothing to store
-