@ClientOnly public class DefaultMultipleCDockable extends DefaultCDockable implements MultipleCDockable
MultipleCDockable
that contains a content-pane
where the client might add or remove as many Component
s as
it wishes.MultipleCDockable
DefaultCDockable.Permissions
listenerCollection
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 and Description |
---|
DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory,
CAction... actions)
Creates a new dockable
|
DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory,
Component content,
CAction... actions)
Creates a new dockable.
|
DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory,
Icon icon,
CAction... actions)
Creates a new dockable.
|
DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory,
Icon icon,
Component content,
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,
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.
|
DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory,
String title,
CAction... actions)
Creates a new dockable.
|
DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory,
String title,
Component content,
CAction... actions)
Creates a new dockable.
|
Modifier and Type | Method and Description |
---|---|
MultipleCDockableFactory<?,?> |
getFactory()
Gets the factory that created this dockable.
|
boolean |
isRemoveOnClose()
Tells whether this
MultipleCDockable should be removed from the
CControl when it is made invisible. |
void |
setControlAccess(CControlAccess control)
Sets the
CControl which is responsible for this CDockable . |
void |
setRemoveOnClose(boolean removeOnClose)
Sets whether this dockable will be removed from the
CControl when
made invisible. |
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, setTitleToolTip
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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
public DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory, CAction... actions)
factory
- the factory which created or could create this
kind of dockable. A value of null
will default ot the NullMultipleCDockableFactory
.actions
- the actions shown in the title, can be null
.
A separator is inserted for every entry that is null
of this array.public DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory, Component content, CAction... actions)
factory
- the factory which created or could create this
kind of dockable. A value of null
will default ot the NullMultipleCDockableFactory
.content
- a Component
which will be shown in the middle
of this dockable, can be null
.actions
- the actions shown in the title, can be null
.
A separator is inserted for every entry that is null
of this array.public DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory, String title, Component content, CAction... actions)
factory
- the factory which created or could create this
kind of dockable. A value of null
will default ot the NullMultipleCDockableFactory
.title
- the text shown in the title, can be null
content
- a Component
which will be shown in the middle
of this dockable, can be null
.actions
- the actions shown in the title, can be null
.
A separator is inserted for every entry that is null
of this array.public DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory, Icon icon, Component content, CAction... actions)
factory
- the factory which created or could create this
kind of dockable. A value of null
will default ot the NullMultipleCDockableFactory
.icon
- the icon shown in the title, can be null
content
- a Component
which will be shown in the middle
of this dockable, can be null
.actions
- the actions shown in the title, can be null
.
A separator is inserted for every entry that is null
of this array.public DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory, Icon icon, String title, Component content, CAction... actions)
factory
- the factory which created or could create this
kind of dockable. A value of null
will default ot the NullMultipleCDockableFactory
.icon
- the icon shown in the title, can be null
title
- the text shown in the title, can be null
content
- a Component
which will be shown in the middle
of this dockable, can be null
.actions
- the actions shown in the title, can be null
.
A separator is inserted for every entry that is null
of this array.public DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory, String title, CAction... actions)
factory
- the factory which created or could create this
kind of dockable. A value of null
will default ot the NullMultipleCDockableFactory
.title
- the text shown in the title, can be null
actions
- the actions shown in the title, can be null
.
A separator is inserted for every entry that is null
of this array.public DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory, Icon icon, CAction... actions)
factory
- the factory which created or could create this
kind of dockable. A value of null
will default ot the NullMultipleCDockableFactory
.icon
- the icon shown in the title, can be null
actions
- the actions shown in the title, can be null
.
A separator is inserted for every entry that is null
of this array.public DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory, Icon icon, String title, CAction... actions)
factory
- the factory which created or could create this
kind of dockable. A value of null
will default ot the NullMultipleCDockableFactory
.icon
- the icon shown in the title, can be null
title
- the text shown in the title, can be null
actions
- the actions shown in the title, can be null
.
A separator is inserted for every entry that is null
of this array.public DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory, Icon icon, String title, Component content, DefaultCDockable.Permissions permissions, CAction... actions)
factory
- the factory which created or could create this
kind of dockable. A value of null
will default ot the NullMultipleCDockableFactory
.icon
- the icon shown in the title, can be null
title
- the text shown in the title, can be null
content
- a Component
which will be shown in the middle
of this dockable, can be null
.permissions
- what actions the user is allowed to do, null
will be
replaced by DefaultCDockable.Permissions.DEFAULT
.actions
- the actions shown in the title, can be null
.
A separator is inserted for every entry that is null
of this array.public DefaultMultipleCDockable(MultipleCDockableFactory<?,?> factory, Icon icon, IconHandling iconHandling, String title, Component content, DefaultCDockable.Permissions permissions, CAction... actions)
factory
- the factory which created or could create this
kind of dockable. A value of null
will default ot the NullMultipleCDockableFactory
.icon
- the icon shown in the title, can be null
iconHandling
- what to do if icon
is null
title
- the text shown in the title, can be null
content
- a Component
which will be shown in the middle
of this dockable, can be null
.permissions
- what actions the user is allowed to do, null
will be
replaced by DefaultCDockable.Permissions.DEFAULT
.actions
- the actions shown in the title, can be null
.
A separator is inserted for every entry that is null
of this array.public MultipleCDockableFactory<?,?> getFactory()
getFactory
in interface MultipleCDockable
null
public void setControlAccess(CControlAccess control)
CDockable
CControl
which is responsible for this CDockable
. Subclasses
must call CControlAccess.link(CDockable, CDockableAccess)
to grant
the CControl
access to the internal properties of this
CDockable
. link
can also be used to revoke access.setControlAccess
in interface CDockable
setControlAccess
in class AbstractCDockable
control
- the new control or null
public boolean isRemoveOnClose()
MultipleCDockable
MultipleCDockable
should be removed from the
CControl
when it is made invisible. If in doubt, return
true
.isRemoveOnClose
in interface MultipleCDockable
true
if this dockable should be removed from
the controller when made invisible.public void setRemoveOnClose(boolean removeOnClose)
CControl
when
made invisible.removeOnClose
- true
if this element should be removed
automatically.