Interface CControlAccess
Gives access to the internal methods of a
This class is not intended to be used by clients, using it wrongly can result in weird behavior of its owning
CControl.This class is not intended to be used by clients, using it wrongly can result in weird behavior of its owning
CControl.- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptionGrants access to the internal methods of aCDockable.createCloseAction(CDockable dockable) Gets an action that closesdockablewhen clicked.getAutoBaseLocation(CDockable dockable, boolean noBackwardTransformation) Gets the default result forCDockable.getAutoBaseLocation(boolean).getFactoryId(MultipleCDockableFactory<?, ?> factory) Gets the id offactory.Gets the manager that is responsible to change the extended mode of theDockables.getOwner()Gets the control to which this object gives access.Gets the mutable register of theCControl.booleanTells whetherdockablehas a parent and is registered.voidMakesdockableinvisible.booleanTells whetherdockableis visible or not.voidlink(CDockable dockable, CDockableAccess access) Gives or removes access to internal properties of anCDockable.shouldStore(CDockable dockable) Tells whether information aboutdockableshould remain stored even if the element is removed from theCControl.booleanshouldStore(String key) voidMakesdockablevisible.
-
Method Details
-
getOwner
CControl getOwner()Gets the control to which this object gives access.- Returns:
- the owner
-
show
Makesdockablevisible.- Parameters:
dockable- the element that will be made visible
-
hide
Makesdockableinvisible.- Parameters:
dockable- the element that will be made invisible
-
isVisible
Tells whetherdockableis visible or not.- Parameters:
dockable- the dockable whose visibility-state is in question- Returns:
trueifdockableis visible
-
hasParent
Tells whetherdockablehas a parent and is registered.- Parameters:
dockable- the dockable to check- Returns:
trueifdockableis in the tree and not a root
-
getFactoryId
Gets the id offactory.- Parameters:
factory- the factory to search- Returns:
- the id or
null
-
getLocationManager
CLocationModeManager getLocationManager()Gets the manager that is responsible to change the extended mode of theDockables.- Returns:
- the manager
-
createCloseAction
Gets an action that closesdockablewhen clicked.- Parameters:
dockable- the element to close- Returns:
- the action
-
link
Gives or removes access to internal properties of anCDockable.- Parameters:
dockable- the element which changes its accessaccess- the new access, might benull
-
access
Grants access to the internal methods of aCDockable.- Parameters:
dockable- the element whose access is searched- Returns:
- the access or
null
-
shouldStore
- Parameters:
key- the key for which a dockable might be stored- Returns:
trueif layout information forkeyshould be stored,falseotherwise
-
shouldStore
Tells whether information aboutdockableshould remain stored even if the element is removed from theCControl.- Parameters:
dockable- the element to check- Returns:
nullif nothing should be stored, the unique encoded identifier ofdockableif data should remain stored
-
getRegister
MutableCControlRegister getRegister()Gets the mutable register of theCControl. Note that clients should only query this register, but not change anything in it.- Returns:
- the register
-
getAutoBaseLocation
Gets the default result forCDockable.getAutoBaseLocation(boolean).- Parameters:
dockable- the element whose location is searchednoBackwardTransformation- iftrue, then noDockablePropertyshould be converted to aCLocation- Returns:
- the location or
nullif not available
-