public interface MutableCControlRegister extends CControlRegister
CControlRegister
whose contents can be changed.Modifier and Type | Method and Description |
---|---|
void |
addMultipleDockable(MultipleCDockable dockable)
Adds
dockable to this register. |
void |
addSingleDockable(SingleCDockable dockable)
Adds
dockable to this register. |
void |
addStation(CStation<?> station)
Adds
station to this register. |
void |
addStationContainer(CStationContainer container)
Adds a new set of
CStation s to this register. |
CommonSingleDockableFactory |
getBackupFactory()
Gets the backup factory for missing
SingleCDockable s. |
CommonMultipleDockableFactory |
getCommonMultipleDockableFactory(java.lang.String id)
Gets the factory with identifier
id . |
CContentArea |
getDefaultContentArea()
Gets the default set of
CStation s. |
SingleCDockable |
getSingleDockable(java.lang.String id)
Searches the one
SingleCDockable whose unique id equals id . |
void |
putCommonMultipleDockableFactory(java.lang.String id,
CommonMultipleDockableFactory factory)
Adds
factory to this register. |
CommonMultipleDockableFactory |
removeCommonMultipleDockableFactory(java.lang.String id)
Removes the
CommonMultipleDockableFactory with identifier id
rom this register. |
boolean |
removeMultipleDockable(MultipleCDockable dockable)
Removes
dockable from this register. |
boolean |
removeSingleDockable(SingleCDockable dockable)
Removes
dockable from this register. |
boolean |
removeStation(CStation<?> station)
Removes
station from this register. |
boolean |
removeStationContainer(CStationContainer container)
Removes
container from this registry. |
void |
setDefaultContentArea(CContentArea container)
Sets the default set of
CStation s. |
getContainer, getControl, getDockable, getDockableCount, getDockables, getFactories, getFactory, getMultipleDockables, getSingleDockables, getStationContainers, getStations, isMultiId, isSingleId, listDockablesInMode, listMultipleDockableFactories, listMultipleDockables, listSingleBackupFactories, listSingleDockables, multiToNormalId, singleToNormalId, toMultiId, toSingleId
void addStationContainer(CStationContainer container)
CStation
s to this register.container
- the new set of stations, not null
java.lang.IllegalArgumentException
- if container
is already registered or
another container with the same unique id was foundjava.lang.NullPointerException
- if container
is null
boolean removeStationContainer(CStationContainer container)
container
from this registry.container
- the container to removetrue
if container
was known to this registry and
was removed, false
otherwiseCContentArea getDefaultContentArea()
CStation
s.null
void setDefaultContentArea(CContentArea container)
CStation
s. One of this CStation
s will be used
to show new CDockable
s if they do not have a location set.container
- the new containervoid addStation(CStation<?> station)
station
to this register.station
- the new stationboolean removeStation(CStation<?> station)
station
from this register.station
- the station to removetrue
if station
was removed, false
otherwiseCommonSingleDockableFactory getBackupFactory()
SingleCDockable
s.null
void addSingleDockable(SingleCDockable dockable)
dockable
to this register.dockable
- the new elementSingleCDockable getSingleDockable(java.lang.String id)
SingleCDockable
whose unique id equals id
.id
- some id to searchvoid addMultipleDockable(MultipleCDockable dockable)
dockable
to this register.dockable
- the new elementvoid putCommonMultipleDockableFactory(java.lang.String id, CommonMultipleDockableFactory factory)
factory
to this register.id
- the id for the factoryfactory
- the new factoryCommonMultipleDockableFactory getCommonMultipleDockableFactory(java.lang.String id)
id
.id
- the id of the factorynull
CommonMultipleDockableFactory removeCommonMultipleDockableFactory(java.lang.String id)
CommonMultipleDockableFactory
with identifier id
rom this register.id
- the identifier of the factorynull
boolean removeSingleDockable(SingleCDockable dockable)
dockable
from this register.dockable
- the element to removetrue
if dockable
was removed,
false
if notboolean removeMultipleDockable(MultipleCDockable dockable)
dockable
from this register.dockable
- the element to removetrue
if dockable
was removed,
false
if not