Interface MutableCControlRegister
- All Superinterfaces:
CControlRegister
- All Known Implementing Classes:
DefaultCControlRegister
A
CControlRegister whose contents can be changed.- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMultipleDockable(MultipleCDockable dockable) Addsdockableto this register.voidaddSingleDockable(SingleCDockable dockable) Addsdockableto this register.voidaddStation(CStation<?> station) Addsstationto this register.voidaddStationContainer(CStationContainer container) Adds a new set ofCStations to this register.Gets the backup factory for missingSingleCDockables.Gets the factory with identifierid.Gets the default set ofCStations.Searches the oneSingleCDockablewhose unique id equalsid.voidAddsfactoryto this register.Removes theCommonMultipleDockableFactorywith identifieridrom this register.booleanremoveMultipleDockable(MultipleCDockable dockable) Removesdockablefrom this register.booleanremoveSingleDockable(SingleCDockable dockable) Removesdockablefrom this register.booleanremoveStation(CStation<?> station) Removesstationfrom this register.booleanremoveStationContainer(CStationContainer container) Removescontainerfrom this registry.voidsetDefaultContentArea(CContentArea container) Sets the default set ofCStations.Methods inherited from interface bibliothek.gui.dock.common.CControlRegister
getContainer, getControl, getDockable, getDockableCount, getDockables, getFactories, getFactory, getMultipleDockables, getSingleDockables, getStationContainers, getStations, isMultiId, isSingleId, listDockablesInMode, listMultipleDockableFactories, listMultipleDockables, listSingleBackupFactories, listSingleDockables, multiToNormalId, singleToNormalId, toMultiId, toSingleId
-
Method Details
-
addStationContainer
Adds a new set ofCStations to this register.- Parameters:
container- the new set of stations, notnull- Throws:
IllegalArgumentException- ifcontaineris already registered or another container with the same unique id was foundNullPointerException- ifcontainerisnull
-
removeStationContainer
Removescontainerfrom this registry.- Parameters:
container- the container to remove- Returns:
trueifcontainerwas known to this registry and was removed,falseotherwise
-
getDefaultContentArea
CContentArea getDefaultContentArea()Gets the default set ofCStations.- Returns:
- the container, can be
null
-
setDefaultContentArea
Sets the default set ofCStations. One of thisCStations will be used to show newCDockables if they do not have a location set.- Parameters:
container- the new container
-
addStation
Addsstationto this register.- Parameters:
station- the new station
-
removeStation
Removesstationfrom this register.- Parameters:
station- the station to remove- Returns:
trueifstationwas removed,falseotherwise
-
getBackupFactory
CommonSingleDockableFactory getBackupFactory()Gets the backup factory for missingSingleCDockables.- Returns:
- the factory, never
null
-
addSingleDockable
Addsdockableto this register.- Parameters:
dockable- the new element
-
getSingleDockable
Searches the oneSingleCDockablewhose unique id equalsid.- Parameters:
id- some id to search- Returns:
- a dockable with the same id
-
addMultipleDockable
Addsdockableto this register.- Parameters:
dockable- the new element
-
putCommonMultipleDockableFactory
Addsfactoryto this register.- Parameters:
id- the id for the factoryfactory- the new factory
-
getCommonMultipleDockableFactory
Gets the factory with identifierid.- Parameters:
id- the id of the factory- Returns:
- the factory or
null
-
removeCommonMultipleDockableFactory
Removes theCommonMultipleDockableFactorywith identifieridrom this register.- Parameters:
id- the identifier of the factory- Returns:
- the factory that was removed or
null
-
removeSingleDockable
Removesdockablefrom this register.- Parameters:
dockable- the element to remove- Returns:
trueifdockablewas removed,falseif not
-
removeMultipleDockable
Removesdockablefrom this register.- Parameters:
dockable- the element to remove- Returns:
trueifdockablewas removed,falseif not
-