public class DefaultCommonDockable extends DefaultDockable implements CommonDockable
CommonDockable
, based on a DefaultDockable
.Constructor and Description |
---|
DefaultCommonDockable(CDockable dockable,
DockActionSource... sources)
Creates a new dockable
|
Modifier and Type | Method and Description |
---|---|
CommonDockable |
asDockable()
|
CommonDockStation<?,?> |
asDockStation()
|
CActionSource |
getActions()
Gets the action source for actions that are added by the client.
|
CDockable |
getDockable()
Gets the model of this dockable.
|
DockActionSource[] |
getSources()
Gets a set of
DockActionSource s which are to be displayed
on this CommonDockable . |
CStation<?> |
getStation()
Gets the model of this dockable as station.
|
void |
requestDockTitle(DockTitleRequest request)
The default behavior of this method is to do nothing.
|
java.lang.String |
toString() |
add, add, createRootHandler, createTitleIcon, getClientComponent, getComponent, getComponent, getComponentCount, getContentPane, getFactoryID, remove, setController, setFactoryID, setLayout
accept, accept, addDockableListener, addDockableStateListener, addDockHierarchyListener, addKeyListener, addMouseInputListener, bind, configureDisplayerHints, fireTitleBound, fireTitleExchanged, fireTitleExchanged, fireTitleIconChanged, fireTitleTextChanged, fireTitleTooltipChanged, fireTitleUnbound, getComponentConfiguration, getConfigurableDisplayerHints, getController, getDockableStateListeners, getDockElementObserver, getDockParent, getElement, getGlobalActionOffers, getLocalActionOffers, getPopupLocation, getRootHandler, getTitleIcon, getTitleIconHandling, getTitleText, getTitleToolTip, isDockableShowing, isDockableVisible, isUsedAsTitle, listBoundTitles, removeDockableListener, removeDockableStateListener, removeDockHierarchyListener, removeKeyListener, removeMouseInputListener, requestDisplayer, resetTitleIcon, setActionOffers, setComponentConfiguration, setDockParent, setTitleIcon, setTitleIconHandling, setTitleText, setTitleToolTip, shouldFocus, shouldTransfersFocus, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFactoryID
accept, accept, addDockableListener, addDockableStateListener, addDockHierarchyListener, addMouseInputListener, bind, configureDisplayerHints, getComponent, getController, getDockParent, getGlobalActionOffers, getLocalActionOffers, getTitleIcon, getTitleText, getTitleToolTip, isDockableShowing, isDockableVisible, listBoundTitles, removeDockableListener, removeDockableStateListener, removeDockHierarchyListener, removeMouseInputListener, requestDisplayer, setController, setDockParent, unbind
getElement, getPopupLocation, isUsedAsTitle, shouldFocus, shouldTransfersFocus
getComponentConfiguration, setComponentConfiguration
public DefaultCommonDockable(CDockable dockable, DockActionSource... sources)
dockable
- the model of this elementsources
- action source which shows the close actionpublic CActionSource getActions()
null
public CDockable getDockable()
CommonDockable
getDockable
in interface CommonDockable
public CommonDockable asDockable()
DockElement
asDockable
in interface CommonElement
asDockable
in interface DockElement
asDockable
in interface PlaceholderListItem<Dockable>
asDockable
in class AbstractDockable
this
or null
. Must not return null
if DockElement.asDockable()
already returns null
.public CommonDockStation<?,?> asDockStation()
DockElement
asDockStation
in interface CommonElement
asDockStation
in interface DockElement
asDockStation
in class DefaultDockable
this
or null
. Must not return null
if DockElement.asDockable()
already returns null
public CStation<?> getStation()
CommonDockable
getStation
in interface CommonDockable
null
public DockActionSource[] getSources()
CommonDockable
DockActionSource
s which are to be displayed
on this CommonDockable
. Note that every call to this
method should return the same array of sources. Callers should not
modify the result.getSources
in interface CommonDockable
public void requestDockTitle(DockTitleRequest request)
AbstractDockable
requestDockTitle
in interface Dockable
requestDockTitle
in class AbstractDockable
request
- which title is required. If this Dockable does not have
a special rule for the given request it just ignores the callpublic java.lang.String toString()
toString
in class java.lang.Object