bibliothek.gui.dock.common
Interface CControlRegister

All Known Subinterfaces:
MutableCControlRegister
All Known Implementing Classes:
DefaultCControlRegister

public interface CControlRegister

Grants access to the CDockables and other information that is associated with a CControl.

Author:
Benjamin Sigg

Method Summary
 CControl getControl()
          Gets the control for which this register is used.
 CDockable getDockable(int index)
          Gets the index'th dockable that is registered
 int getDockableCount()
          Gets the number of CDockables that are registered.
 List<CDockable> getDockables()
          Gets an unmodifiable list of all CDockables which are known to this register.
 Map<String,MultipleCDockableFactory<?,?>> getFactories()
          Gets an unmodifiable map of all MultipleCDockableFactorys that are known to this register.
 MultipleCDockableFactory<?,?> getFactory(String id)
          Searches the factory with identifier id.
 List<MultipleCDockable> getMultipleDockables()
          Gets an unmodifiable list of all MultipleCDockables which are known to this register.
 List<SingleCDockable> getSingleDockables()
          Gets an unmodifiable list of all SingleCDockables which are known to this register.
 List<CStation<?>> getStations()
          Gets an unmodifiable list of all CStations which are known to this register.
 List<CDockable> listDockablesInMode(ExtendedMode mode)
          Gets a list of all visible CDockables in the given mode.
 Set<String> listMultipleDockableFactories()
          Gets a list of identifiers of all MultipleCDockableFactorys which are currently registered.
 List<MultipleCDockable> listMultipleDockables(MultipleCDockableFactory<?,?> factory)
          Gets a list of all MultipleCDockables that are registered at this control and whose MultipleCDockable.getFactory() method returns factory.
 Set<String> listSingleBackupFactories()
          Gets a list of keys for all SingleCDockableBackupFactorys which are currently registered.
 Set<String> listSingleDockables()
          Gets a list of all identifiers of SingleCDockable for which the control has location information within the current setting.
 

Method Detail

getControl

CControl getControl()
Gets the control for which this register is used.

Returns:
the control

getDockableCount

int getDockableCount()
Gets the number of CDockables that are registered.

Returns:
the number of dockables

getDockable

CDockable getDockable(int index)
Gets the index'th dockable that is registered

Parameters:
index - the index of the element
Returns:
the selected dockable

getDockables

List<CDockable> getDockables()
Gets an unmodifiable list of all CDockables which are known to this register. The list might or might not be updated when the contents of this register changes.

Returns:
an unmodifiable list of elements

getSingleDockables

List<SingleCDockable> getSingleDockables()
Gets an unmodifiable list of all SingleCDockables which are known to this register. The list might or might not be updated when the contents of this register changes.

Returns:
an unmodifiable list of elements

getMultipleDockables

List<MultipleCDockable> getMultipleDockables()
Gets an unmodifiable list of all MultipleCDockables which are known to this register. The list might or might not be updated when the contents of this register change.

Returns:
an unmodifiable list of elements

getStations

List<CStation<?>> getStations()
Gets an unmodifiable list of all CStations which are known to this register. The list might or might not be updated when the content of this register changes.

Returns:
an unmodifiable list of elements

getFactories

Map<String,MultipleCDockableFactory<?,?>> getFactories()
Gets an unmodifiable map of all MultipleCDockableFactorys that are known to this register. The map may or may not be updated when the content of this register changes.

Returns:
the unmodifiable map of factories

getFactory

MultipleCDockableFactory<?,?> getFactory(String id)
Searches the factory with identifier id.

Parameters:
id - the id of the factory
Returns:
the factory or null

listSingleBackupFactories

Set<String> listSingleBackupFactories()
Gets a list of keys for all SingleCDockableBackupFactorys which are currently registered.

Returns:
the list of keys

listMultipleDockableFactories

Set<String> listMultipleDockableFactories()
Gets a list of identifiers of all MultipleCDockableFactorys which are currently registered.

Returns:
the list of factories

listMultipleDockables

List<MultipleCDockable> listMultipleDockables(MultipleCDockableFactory<?,?> factory)
Gets a list of all MultipleCDockables that are registered at this control and whose MultipleCDockable.getFactory() method returns factory.

Parameters:
factory - the factory to look out for
Returns:
the list of dockables, never null but might be empty

listDockablesInMode

List<CDockable> listDockablesInMode(ExtendedMode mode)
Gets a list of all visible CDockables in the given mode.

Parameters:
mode - the mode which each CDockable must have
Returns:
the list of CDockables

listSingleDockables

Set<String> listSingleDockables()
Gets a list of all identifiers of SingleCDockable for which the control has location information within the current setting.

Returns:
the list of ids, never null