|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MutableCControlRegister
A CControlRegister whose contents can be changed.
| Method Summary | |
|---|---|
void |
addContentArea(CContentArea area)
Adds a new content area to this register. |
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. |
CommonSingleDockableFactory |
getBackupFactory()
Gets the backup factory for missing SingleCDockables. |
CommonMultipleDockableFactory |
getCommonMultipleDockableFactory(String id)
Gets the factory with identifier id. |
List<CContentArea> |
getContentAreas()
Gets an unmodifiable list of all CContentAreas known
to this register. |
CContentArea |
getDefaultContentArea()
Gets the default content area. |
SingleCDockable |
getSingleDockable(String id)
Searches the one SingleCDockable whose unique id equals id. |
boolean |
isMultiId(String id)
Checks whether id could be created by toMultiId(String). |
boolean |
isSingleId(String id)
Checks whether id could be created by toSingleId(String). |
String |
multiToNormalId(String id)
Undoes the changes of toMultiId(String). |
void |
putCommonMultipleDockableFactory(String id,
CommonMultipleDockableFactory factory)
Adds factory to this register. |
CommonMultipleDockableFactory |
removeCommonMultipleDockableFactory(String id)
Removes the CommonMultipleDockableFactory with identifier id
rom this register. |
boolean |
removeContentArea(CContentArea area)
Removes area from 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. |
void |
setDefaultContentArea(CContentArea area)
Sets the default content area. |
String |
singleToNormalId(String id)
Undoes the changes of toSingleId(String). |
String |
toMultiId(String id)
Transforms an identifier to an identifier for a MultipleCDockable. |
String |
toSingleId(String id)
Transforms an identifier to an identifier for a SingleCDockable. |
| Methods inherited from interface bibliothek.gui.dock.common.CControlRegister |
|---|
getControl, getDockable, getDockableCount, getDockables, getFactories, getFactory, getMultipleDockables, getSingleDockables, getStations, listDockablesInMode, listMultipleDockableFactories, listMultipleDockables, listSingleBackupFactories, listSingleDockables |
| Method Detail |
|---|
List<CContentArea> getContentAreas()
CContentAreas known
to this register. The list might or might not be updated when the contents
of this register change.
void addContentArea(CContentArea area)
area - the new area
IllegalArgumentException - if area is already known
to this register
NullPointerException - if area is nullboolean removeContentArea(CContentArea area)
area from this register
area - the area to remove
true if area was known to this register
before, false if area could not be removed
because it was not in the listCContentArea getDefaultContentArea()
nullvoid setDefaultContentArea(CContentArea area)
area - the new areavoid addStation(CStation<?> station)
station to this register.
station - the new stationboolean removeStation(CStation<?> station)
station from this register.
station - the station to remove
true if station was removed, false
otherwiseCommonSingleDockableFactory getBackupFactory()
SingleCDockables.
nullvoid addSingleDockable(SingleCDockable dockable)
dockable to this register.
dockable - the new elementSingleCDockable getSingleDockable(String id)
SingleCDockable whose unique id equals id.
id - some id to search
void addMultipleDockable(MultipleCDockable dockable)
dockable to this register.
dockable - the new element
void putCommonMultipleDockableFactory(String id,
CommonMultipleDockableFactory factory)
factory to this register.
id - the id for the factoryfactory - the new factoryCommonMultipleDockableFactory getCommonMultipleDockableFactory(String id)
id.
id - the id of the factory
nullCommonMultipleDockableFactory removeCommonMultipleDockableFactory(String id)
CommonMultipleDockableFactory with identifier id
rom this register.
id - the identifier of the factory
nullboolean removeSingleDockable(SingleCDockable dockable)
dockable from this register.
dockable - the element to remove
true if dockable was removed,
false if notboolean removeMultipleDockable(MultipleCDockable dockable)
dockable from this register.
dockable - the element to remove
true if dockable was removed,
false if notString toSingleId(String id)
SingleCDockable.isMultiId(String).
id - some identifier
SingleCDockableboolean isSingleId(String id)
id could be created by toSingleId(String).
id - the id to check
true if there is an input for toSingleId(String)
that would result in idString singleToNormalId(String id)
toSingleId(String). It must be true
that singleToNormalId( toSingleId( id )) = id. The behavior
of this method is unspecified if isSingleId(String) returns
false for id.
id - some id create by toSingleId(String).
String toMultiId(String id)
MultipleCDockable.isSingleId(String).
id - some identifier
MultipleCDockableboolean isMultiId(String id)
id could be created by toMultiId(String).
id - the id to check
true if there is an input for toMultiId(String)
that would result in idString multiToNormalId(String id)
toMultiId(String). It must be true
that multiToNormalId( toMultiId( id )) = id. The behavior
of this method is unspecified if isMultiId(String) returns
false for id.
id - some id create by toMultiId(String).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||