@ClientOnly public class DefaultSingleCDockable extends DefaultCDockable implements SingleCDockable
DefaultSingleCDockable
is an element which has a
content-pane
where clients can add or remove as many
Component
s as they whish.SingleCDockable
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 |
---|
DefaultSingleCDockable(java.lang.String id,
CAction... actions)
Creates a new dockable
|
DefaultSingleCDockable(java.lang.String id,
java.awt.Component content,
CAction... actions)
Creates a new dockable.
|
DefaultSingleCDockable(java.lang.String id,
javax.swing.Icon icon,
CAction... actions)
Creates a new dockable.
|
DefaultSingleCDockable(java.lang.String id,
javax.swing.Icon icon,
java.awt.Component content,
CAction... actions)
Creates a new dockable.
|
DefaultSingleCDockable(java.lang.String id,
javax.swing.Icon icon,
IconHandling iconHandling,
java.lang.String title,
java.awt.Component content,
DefaultCDockable.Permissions permissions,
CAction... actions)
Creates a new dockable.
|
DefaultSingleCDockable(java.lang.String id,
javax.swing.Icon icon,
java.lang.String title,
CAction... actions)
Creates a new dockable.
|
DefaultSingleCDockable(java.lang.String id,
javax.swing.Icon icon,
java.lang.String title,
java.awt.Component content,
CAction... actions)
Creates a new dockable.
|
DefaultSingleCDockable(java.lang.String id,
javax.swing.Icon icon,
java.lang.String title,
java.awt.Component content,
DefaultCDockable.Permissions permissions,
CAction... actions)
Creates a new dockable.
|
DefaultSingleCDockable(java.lang.String id,
java.lang.String title,
CAction... actions)
Creates a new dockable.
|
DefaultSingleCDockable(java.lang.String id,
java.lang.String title,
java.awt.Component content,
CAction... actions)
Creates a new dockable.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUniqueId()
Gets the id of this dockable.
|
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, setControlAccess, 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, setControlAccess, setExtendedMode, setLocation, setLocationsAside, setLocationsAside, setLocationsAsideFocused, setMinimizedSize, setSticky, setStickySwitchable, setVisible, setWorkingArea
public DefaultSingleCDockable(java.lang.String id, CAction... actions)
id
- a unique id, not 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 DefaultSingleCDockable(java.lang.String id, java.awt.Component content, CAction... actions)
id
- the unique id, must not 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 DefaultSingleCDockable(java.lang.String id, java.lang.String title, java.awt.Component content, CAction... actions)
id
- the unique id, must not 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 DefaultSingleCDockable(java.lang.String id, javax.swing.Icon icon, java.awt.Component content, CAction... actions)
id
- the unique id, must not be null
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 DefaultSingleCDockable(java.lang.String id, javax.swing.Icon icon, java.lang.String title, java.awt.Component content, CAction... actions)
id
- the unique id, must not be null
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 DefaultSingleCDockable(java.lang.String id, java.lang.String title, CAction... actions)
id
- the unique id, must not 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 DefaultSingleCDockable(java.lang.String id, javax.swing.Icon icon, CAction... actions)
id
- the unique id, must not be null
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 DefaultSingleCDockable(java.lang.String id, javax.swing.Icon icon, java.lang.String title, CAction... actions)
id
- the unique id, must not be null
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 DefaultSingleCDockable(java.lang.String id, javax.swing.Icon icon, java.lang.String title, java.awt.Component content, DefaultCDockable.Permissions permissions, CAction... actions)
id
- the unique id, must not be null
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 DefaultSingleCDockable(java.lang.String id, javax.swing.Icon icon, IconHandling iconHandling, java.lang.String title, java.awt.Component content, DefaultCDockable.Permissions permissions, CAction... actions)
id
- the unique id, must not be null
icon
- the icon shown in the title, can be null
iconHandling
- how to behave 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 java.lang.String getUniqueId()
CControl
.getUniqueId
in interface SingleCDockable