Package bibliothek.gui.dock.common
Class DefaultMultipleCDockable
java.lang.Object
bibliothek.gui.dock.common.intern.AbstractCDockable
bibliothek.gui.dock.common.intern.DefaultCDockable
bibliothek.gui.dock.common.DefaultMultipleCDockable
- All Implemented Interfaces:
CDockable,MultipleCDockable
@ClientOnly
public class DefaultMultipleCDockable
extends DefaultCDockable
implements MultipleCDockable
A
MultipleCDockable that contains a content-pane
where the client might add or remove as many Components as
it wishes.- Author:
- Benjamin Sigg
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class bibliothek.gui.dock.common.intern.DefaultCDockable
DefaultCDockable.Permissions -
Field Summary
Fields inherited from class bibliothek.gui.dock.common.intern.AbstractCDockable
listenerCollectionFields inherited from interface bibliothek.gui.dock.common.intern.CDockable
ACTION_KEY_CLOSE, ACTION_KEY_EXTERNALIZE, ACTION_KEY_MAXIMIZE, ACTION_KEY_MINIMIZE, ACTION_KEY_MINIMIZE_HOLD, ACTION_KEY_NORMALIZE, ACTION_KEY_UNEXTERNALIZE, ACTION_KEY_UNMAXIMIZE_EXTERNALIZED -
Constructor Summary
ConstructorsConstructorDescriptionDefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, CAction... actions) Creates a new dockableDefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Component content, CAction... actions) Creates a new dockable.DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, String title, CAction... actions) Creates a new dockable.DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, String title, Component content, CAction... actions) Creates a new dockable.DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Icon icon, CAction... actions) Creates a new dockable.DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Icon icon, IconHandling iconHandling, String title, Component content, DefaultCDockable.Permissions permissions, CAction... actions) Creates a new dockable.DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Icon icon, Component content, CAction... actions) Creates a new dockable.DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Icon icon, String title, CAction... actions) Creates a new dockable.DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Icon icon, String title, Component content, CAction... actions) Creates a new dockable.DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Icon icon, String title, Component content, DefaultCDockable.Permissions permissions, CAction... actions) Creates a new dockable. -
Method Summary
Modifier and TypeMethodDescriptionGets the factory that created this dockable.booleanTells whether thisMultipleCDockableshould be removed from theCControlwhen it is made invisible.voidsetControlAccess(CControlAccess control) Sets theCControlwhich is responsible for thisCDockable.voidsetRemoveOnClose(boolean removeOnClose) Sets whether this dockable will be removed from theCControlwhen made invisible.Methods inherited from class bibliothek.gui.dock.common.intern.DefaultCDockable
add, add, addAction, addSeparator, asStation, createCommonDockable, getAction, getActionCount, getContentPane, getTitleIcon, getTitleIconHandling, getTitleText, getTitleToolTip, insertAction, insertSeparator, intern, isCloseable, isExternalizable, isMaximizable, isMinimizable, isStackable, remove, removeAction, removeAction, setCloseable, setExternalizable, setLayout, setMaximizable, setMinimizable, setStackable, setTitleIcon, setTitleIconHandling, setTitleText, setTitleToolTipMethods inherited from class bibliothek.gui.dock.common.intern.AbstractCDockable
addCDockableLocationListener, addCDockablePropertyListener, addCDockableStateListener, addDoubleClickListener, addFocusListener, addKeyboardListener, addVetoClosingListener, control, getAction, getAndClearResizeRequest, getAutoBaseLocation, getBaseLocation, getClose, getColors, getControl, getControlAccess, getDefaultLocation, getDockableUniqueId, getExtendedMode, getFocusComponent, getFonts, getGrouping, getMinimizedSize, getParentStation, getWorkingArea, hasParent, init, isDockableVisible, isEnabled, isNormalizeable, isResizeLocked, isResizeLockedHorizontally, isResizeLockedVertically, isShowing, isSingleTabShown, isSticky, isStickySwitchable, isTitleShown, isVisible, propertyListeners, putAction, removeCDockableLocationListener, removeCDockablePropertyListener, removeCDockableStateListener, removeDoubleClickListener, removeFocusListener, removeKeyboardListener, removeVetoClosingListener, setDefaultLocation, setEnabled, setExtendedMode, setFocusComponent, setGrouping, setLocation, setLocationsAside, setLocationsAside, setLocationsAsideFocused, setMinimizedSize, setResizeLocked, setResizeLockedHorizontally, setResizeLockedVertically, setResizeRequest, setResizeRequest, setSingleTabShown, setSticky, setStickySwitchable, setTitleShown, setVisible, setWorkingArea, stateListeners, toFront, toFront, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface bibliothek.gui.dock.common.intern.CDockable
addCDockableLocationListener, addCDockablePropertyListener, addCDockableStateListener, addDoubleClickListener, addFocusListener, addKeyboardListener, addVetoClosingListener, asStation, getAction, getAndClearResizeRequest, getAutoBaseLocation, getBaseLocation, getColors, getControl, getControlAccess, getExtendedMode, getFocusComponent, getFonts, getGrouping, getMinimizedSize, getParentStation, getWorkingArea, hasParent, intern, isCloseable, isDockableVisible, isEnabled, isExternalizable, isMaximizable, isMinimizable, isNormalizeable, isResizeLockedHorizontally, isResizeLockedVertically, isShowing, isSingleTabShown, isStackable, isSticky, isStickySwitchable, isTitleShown, isVisible, removeCDockableLocationListener, removeCDockablePropertyListener, removeCDockableStateListener, removeDoubleClickListener, removeFocusListener, removeKeyboardListener, removeVetoClosingListener, setExtendedMode, setLocation, setLocationsAside, setLocationsAside, setLocationsAsideFocused, setMinimizedSize, setSticky, setStickySwitchable, setVisible, setWorkingArea
-
Constructor Details
-
DefaultMultipleCDockable
Creates a new dockable- Parameters:
factory- the factory which created or could create this kind of dockable. A value ofnullwill default ot theNullMultipleCDockableFactory.actions- the actions shown in the title, can benull. A separator is inserted for every entry that isnullof this array.
-
DefaultMultipleCDockable
public DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Component content, CAction... actions) Creates a new dockable.- Parameters:
factory- the factory which created or could create this kind of dockable. A value ofnullwill default ot theNullMultipleCDockableFactory.content- aComponentwhich will be shown in the middle of this dockable, can benull.actions- the actions shown in the title, can benull. A separator is inserted for every entry that isnullof this array.
-
DefaultMultipleCDockable
public DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, String title, Component content, CAction... actions) Creates a new dockable.- Parameters:
factory- the factory which created or could create this kind of dockable. A value ofnullwill default ot theNullMultipleCDockableFactory.title- the text shown in the title, can benullcontent- aComponentwhich will be shown in the middle of this dockable, can benull.actions- the actions shown in the title, can benull. A separator is inserted for every entry that isnullof this array.
-
DefaultMultipleCDockable
public DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Icon icon, Component content, CAction... actions) Creates a new dockable.- Parameters:
factory- the factory which created or could create this kind of dockable. A value ofnullwill default ot theNullMultipleCDockableFactory.icon- the icon shown in the title, can benullcontent- aComponentwhich will be shown in the middle of this dockable, can benull.actions- the actions shown in the title, can benull. A separator is inserted for every entry that isnullof this array.
-
DefaultMultipleCDockable
public DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Icon icon, String title, Component content, CAction... actions) Creates a new dockable.- Parameters:
factory- the factory which created or could create this kind of dockable. A value ofnullwill default ot theNullMultipleCDockableFactory.icon- the icon shown in the title, can benulltitle- the text shown in the title, can benullcontent- aComponentwhich will be shown in the middle of this dockable, can benull.actions- the actions shown in the title, can benull. A separator is inserted for every entry that isnullof this array.
-
DefaultMultipleCDockable
public DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, String title, CAction... actions) Creates a new dockable.- Parameters:
factory- the factory which created or could create this kind of dockable. A value ofnullwill default ot theNullMultipleCDockableFactory.title- the text shown in the title, can benullactions- the actions shown in the title, can benull. A separator is inserted for every entry that isnullof this array.
-
DefaultMultipleCDockable
public DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Icon icon, CAction... actions) Creates a new dockable.- Parameters:
factory- the factory which created or could create this kind of dockable. A value ofnullwill default ot theNullMultipleCDockableFactory.icon- the icon shown in the title, can benullactions- the actions shown in the title, can benull. A separator is inserted for every entry that isnullof this array.
-
DefaultMultipleCDockable
public DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Icon icon, String title, CAction... actions) Creates a new dockable.- Parameters:
factory- the factory which created or could create this kind of dockable. A value ofnullwill default ot theNullMultipleCDockableFactory.icon- the icon shown in the title, can benulltitle- the text shown in the title, can benullactions- the actions shown in the title, can benull. A separator is inserted for every entry that isnullof this array.
-
DefaultMultipleCDockable
public DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Icon icon, String title, Component content, DefaultCDockable.Permissions permissions, CAction... actions) Creates a new dockable.- Parameters:
factory- the factory which created or could create this kind of dockable. A value ofnullwill default ot theNullMultipleCDockableFactory.icon- the icon shown in the title, can benulltitle- the text shown in the title, can benullcontent- aComponentwhich will be shown in the middle of this dockable, can benull.permissions- what actions the user is allowed to do,nullwill be replaced byDefaultCDockable.Permissions.DEFAULT.actions- the actions shown in the title, can benull. A separator is inserted for every entry that isnullof this array.
-
DefaultMultipleCDockable
public DefaultMultipleCDockable(MultipleCDockableFactory<?, ?> factory, Icon icon, IconHandling iconHandling, String title, Component content, DefaultCDockable.Permissions permissions, CAction... actions) Creates a new dockable.- Parameters:
factory- the factory which created or could create this kind of dockable. A value ofnullwill default ot theNullMultipleCDockableFactory.icon- the icon shown in the title, can benulliconHandling- what to do ificonisnulltitle- the text shown in the title, can benullcontent- aComponentwhich will be shown in the middle of this dockable, can benull.permissions- what actions the user is allowed to do,nullwill be replaced byDefaultCDockable.Permissions.DEFAULT.actions- the actions shown in the title, can benull. A separator is inserted for every entry that isnullof this array.
-
-
Method Details
-
getFactory
Gets the factory that created this dockable.- Specified by:
getFactoryin interfaceMultipleCDockable- Returns:
- the factory, not
null
-
setControlAccess
Description copied from interface:CDockableSets theCControlwhich is responsible for thisCDockable. Subclasses must callCControlAccess.link(CDockable, CDockableAccess)to grant theCControlaccess to the internal properties of thisCDockable.linkcan also be used to revoke access.- Specified by:
setControlAccessin interfaceCDockable- Overrides:
setControlAccessin classAbstractCDockable- Parameters:
control- the new control ornull
-
isRemoveOnClose
public boolean isRemoveOnClose()Description copied from interface:MultipleCDockableTells whether thisMultipleCDockableshould be removed from theCControlwhen it is made invisible. If in doubt, returntrue.- Specified by:
isRemoveOnClosein interfaceMultipleCDockable- Returns:
trueif this dockable should be removed from the controller when made invisible.
-
setRemoveOnClose
public void setRemoveOnClose(boolean removeOnClose) Sets whether this dockable will be removed from theCControlwhen made invisible.- Parameters:
removeOnClose-trueif this element should be removed automatically.
-