bibliothek.gui.dock.support.mode
Class NullModeSettingsFactory<A>

java.lang.Object
  extended by bibliothek.gui.dock.support.mode.NullModeSettingsFactory<A>
All Implemented Interfaces:
ModeSettingFactory<A>

public class NullModeSettingsFactory<A>
extends Object
implements ModeSettingFactory<A>

The create() method of this factory always returns null.

Author:
Benjamin Sigg

Constructor Summary
NullModeSettingsFactory(Path id)
          Creates a new factory.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullModeSettingsFactory

public NullModeSettingsFactory(Path id)
Creates a new factory.

Parameters:
id - the unique id of the Mode
Method Detail

getModeId

public Path getModeId()
Description copied from interface: ModeSettingFactory
Gets the unique identifier of the Mode which uses the ModeSetting of this factory.

Specified by:
getModeId in interface ModeSettingFactory<A>
Returns:
the unique identifier, not null

create

public ModeSetting<A> create()
Description copied from interface: ModeSettingFactory
Creates a new, empty ModeSetting.

Specified by:
create in interface ModeSettingFactory<A>
Returns:
the new setting or null to indicate that there is nothing to store