|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.common.intern.DefaultCControlRegister
public class DefaultCControlRegister
Standard implementation of CControlRegister.
| Constructor Summary | |
|---|---|
DefaultCControlRegister(CControl control)
Creates a new register |
|
| 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(java.lang.String id)
Gets the factory with identifier id. |
java.util.List<CContentArea> |
getContentAreas()
Gets an unmodifiable list of all CContentAreas known
to this register. |
CControl |
getControl()
Gets the control for which this register is used. |
CContentArea |
getDefaultContentArea()
Gets the default content area. |
CDockable |
getDockable(int index)
Gets the index'th dockable that is registered |
int |
getDockableCount()
Gets the number of CDockables that are registered. |
java.util.List<CDockable> |
getDockables()
Gets an unmodifiable list of all CDockables which are known to
this register. |
java.util.Map<java.lang.String,MultipleCDockableFactory<?,?>> |
getFactories()
Gets an unmodifiable map of all MultipleCDockableFactorys that
are known to this register. |
MultipleCDockableFactory<?,?> |
getFactory(java.lang.String id)
Searches the factory with identifier id. |
java.util.List<MultipleCDockable> |
getMultipleDockables()
Gets an unmodifiable list of all MultipleCDockables which are known to
this register. |
SingleCDockable |
getSingleDockable(java.lang.String id)
Searches the one SingleCDockable whose unique id equals id. |
java.util.List<SingleCDockable> |
getSingleDockables()
Gets an unmodifiable list of all SingleCDockables which are known to
this register. |
java.util.List<CStation<?>> |
getStations()
Gets an unmodifiable list of all CStations which are known to
this register. |
boolean |
isMultiId(java.lang.String id)
Checks whether id could be created by CControlRegister.toMultiId(String). |
boolean |
isSingleId(java.lang.String id)
Checks whether id could be created by CControlRegister.toSingleId(String). |
java.util.List<CDockable> |
listDockablesInMode(ExtendedMode mode)
Gets a list of all visible CDockables in the given mode. |
java.util.Set<java.lang.String> |
listMultipleDockableFactories()
Gets a list of identifiers of all MultipleCDockableFactorys
which are currently registered at this control. |
java.util.List<MultipleCDockable> |
listMultipleDockables(MultipleCDockableFactory<?,?> factory)
Gets a list of all MultipleCDockables that are registered at this
control and whose MultipleCDockable.getFactory() method returns
factory. |
java.util.Set<java.lang.String> |
listSingleBackupFactories()
Gets a list of keys for all SingleCDockableFactorys which
are currently registered at this control. |
java.util.Set<java.lang.String> |
listSingleDockables()
Gets a list of all identifiers of SingleCDockable for which
this control has location information within the current setting. |
java.lang.String |
multiToNormalId(java.lang.String id)
Undoes the changes of CControlRegister.toMultiId(String). |
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 |
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. |
java.lang.String |
singleToNormalId(java.lang.String id)
Undoes the changes of CControlRegister.toSingleId(String). |
java.lang.String |
toMultiId(java.lang.String id)
Transforms an identifier to an identifier for a MultipleCDockable. |
java.lang.String |
toSingleId(java.lang.String id)
Transforms an identifier to an identifier for a SingleCDockable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCControlRegister(CControl control)
control - the owner of this register| Method Detail |
|---|
public CControl getControl()
CControlRegister
getControl in interface CControlRegisterpublic java.util.List<CDockable> getDockables()
CControlRegisterCDockables which are known to
this register. The list might or might not be updated when the contents
of this register changes.
getDockables in interface CControlRegisterpublic java.util.List<MultipleCDockable> getMultipleDockables()
CControlRegisterMultipleCDockables which are known to
this register. The list might or might not be updated when the contents
of this register change.
getMultipleDockables in interface CControlRegisterpublic java.util.List<SingleCDockable> getSingleDockables()
CControlRegisterSingleCDockables which are known to
this register. The list might or might not be updated when the contents
of this register changes.
getSingleDockables in interface CControlRegisterpublic java.util.List<CStation<?>> getStations()
CControlRegisterCStations which are known to
this register. The list might or might not be updated when the content
of this register changes.
getStations in interface CControlRegisterpublic java.util.List<CContentArea> getContentAreas()
MutableCControlRegisterCContentAreas known
to this register. The list might or might not be updated when the contents
of this register change.
getContentAreas in interface MutableCControlRegisterpublic void addContentArea(CContentArea area)
MutableCControlRegister
addContentArea in interface MutableCControlRegisterarea - the new areapublic java.util.Set<java.lang.String> listSingleBackupFactories()
SingleCDockableFactorys which
are currently registered at this control.
listSingleBackupFactories in interface CControlRegisterpublic java.util.Set<java.lang.String> listMultipleDockableFactories()
MultipleCDockableFactorys
which are currently registered at this control.
listMultipleDockableFactories in interface CControlRegisterpublic java.util.List<MultipleCDockable> listMultipleDockables(MultipleCDockableFactory<?,?> factory)
MultipleCDockables that are registered at this
control and whose MultipleCDockable.getFactory() method returns
factory.
listMultipleDockables in interface CControlRegisterfactory - the factory to look out for
null but might be emptypublic java.util.List<CDockable> listDockablesInMode(ExtendedMode mode)
CDockables in the given mode.
listDockablesInMode in interface CControlRegistermode - the mode which each CDockable must have
CDockablespublic java.util.Set<java.lang.String> listSingleDockables()
SingleCDockable for which
this control has location information within the current setting.
listSingleDockables in interface CControlRegisternullpublic java.lang.String toSingleId(java.lang.String id)
CControlRegisterSingleCDockable.CControlRegister.isMultiId(String).
toSingleId in interface CControlRegisterid - some identifier
SingleCDockablepublic boolean isSingleId(java.lang.String id)
CControlRegisterid could be created by CControlRegister.toSingleId(String).
isSingleId in interface CControlRegisterid - the id to check
true if there is an input for CControlRegister.toSingleId(String)
that would result in idpublic java.lang.String singleToNormalId(java.lang.String id)
CControlRegisterCControlRegister.toSingleId(String). It must be true
that singleToNormalId( toSingleId( id )) = id. The behavior
of this method is unspecified if CControlRegister.isSingleId(String) returns
false for id.
singleToNormalId in interface CControlRegisterid - some id create by CControlRegister.toSingleId(String).
public java.lang.String toMultiId(java.lang.String id)
CControlRegisterMultipleCDockable.CControlRegister.isSingleId(String).
toMultiId in interface CControlRegisterid - some identifier
MultipleCDockablepublic boolean isMultiId(java.lang.String id)
CControlRegisterid could be created by CControlRegister.toMultiId(String).
isMultiId in interface CControlRegisterid - the id to check
true if there is an input for CControlRegister.toMultiId(String)
that would result in idpublic java.lang.String multiToNormalId(java.lang.String id)
CControlRegisterCControlRegister.toMultiId(String). It must be true
that multiToNormalId( toMultiId( id )) = id. The behavior
of this method is unspecified if CControlRegister.isMultiId(String) returns
false for id.
multiToNormalId in interface CControlRegisterid - some id create by CControlRegister.toMultiId(String).
public void addMultipleDockable(MultipleCDockable dockable)
MutableCControlRegisterdockable to this register.
addMultipleDockable in interface MutableCControlRegisterdockable - the new elementpublic void addSingleDockable(SingleCDockable dockable)
MutableCControlRegisterdockable to this register.
addSingleDockable in interface MutableCControlRegisterdockable - the new elementpublic SingleCDockable getSingleDockable(java.lang.String id)
MutableCControlRegisterSingleCDockable whose unique id equals id.
getSingleDockable in interface MutableCControlRegisterid - some id to search
public void addStation(CStation<?> station)
MutableCControlRegisterstation to this register.
addStation in interface MutableCControlRegisterstation - the new stationpublic CommonSingleDockableFactory getBackupFactory()
MutableCControlRegisterSingleCDockables.
getBackupFactory in interface MutableCControlRegisternullpublic CommonMultipleDockableFactory getCommonMultipleDockableFactory(java.lang.String id)
MutableCControlRegisterid.
getCommonMultipleDockableFactory in interface MutableCControlRegisterid - the id of the factory
nullpublic CContentArea getDefaultContentArea()
MutableCControlRegister
getDefaultContentArea in interface MutableCControlRegisternull
public void putCommonMultipleDockableFactory(java.lang.String id,
CommonMultipleDockableFactory factory)
MutableCControlRegisterfactory to this register.
putCommonMultipleDockableFactory in interface MutableCControlRegisterid - the id for the factoryfactory - the new factorypublic CommonMultipleDockableFactory removeCommonMultipleDockableFactory(java.lang.String id)
MutableCControlRegisterCommonMultipleDockableFactory with identifier id
rom this register.
removeCommonMultipleDockableFactory in interface MutableCControlRegisterid - the identifier of the factory
nullpublic boolean removeContentArea(CContentArea area)
MutableCControlRegisterarea from this register
removeContentArea in interface MutableCControlRegisterarea - 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 listpublic boolean removeMultipleDockable(MultipleCDockable dockable)
MutableCControlRegisterdockable from this register.
removeMultipleDockable in interface MutableCControlRegisterdockable - the element to remove
true if dockable was removed,
false if notpublic boolean removeSingleDockable(SingleCDockable dockable)
MutableCControlRegisterdockable from this register.
removeSingleDockable in interface MutableCControlRegisterdockable - the element to remove
true if dockable was removed,
false if notpublic boolean removeStation(CStation<?> station)
MutableCControlRegisterstation from this register.
removeStation in interface MutableCControlRegisterstation - the station to remove
true if station was removed, false
otherwisepublic void setDefaultContentArea(CContentArea area)
MutableCControlRegister
setDefaultContentArea in interface MutableCControlRegisterarea - the new areapublic CDockable getDockable(int index)
CControlRegister
getDockable in interface CControlRegisterindex - the index of the element
public int getDockableCount()
CControlRegisterCDockables that are registered.
getDockableCount in interface CControlRegisterpublic java.util.Map<java.lang.String,MultipleCDockableFactory<?,?>> getFactories()
CControlRegisterMultipleCDockableFactorys that
are known to this register. The map may or may not be updated when the
content of this register changes.
getFactories in interface CControlRegisterpublic MultipleCDockableFactory<?,?> getFactory(java.lang.String id)
CControlRegisterid.
getFactory in interface CControlRegisterid - the id of the factory
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||