public class CFlapDockStation extends FlapDockStation implements CommonDockStation<FlapDockStation,CFlapDockStation>
FlapDockStation
that also satisfies the
CommonDockStation
interface.FlapDockStation.Direction, FlapDockStation.DockableHandle, FlapDockStation.FlapDropOperation
BUTTON_CONTENT, BUTTON_CONTENT_FILTER, BUTTON_TITLE_ID, DISPLAYER_ID, LAYOUT_MANAGER, MINIMUM_SIZE, WINDOW_FACTORY, WINDOW_TITLE_ID
listeners
Constructor and Description |
---|
CFlapDockStation(Component expansion,
CommonStationDelegate<CFlapDockStation> delegate)
Creates a new station.
|
Modifier and Type | Method and Description |
---|---|
CommonDockable |
asDockable()
|
CFlapDockStation |
asDockStation()
|
protected FlapDockStation.DockableHandle |
createHandle(Dockable dockable)
Creates a new wrapper around
dockable , the wrapper is used as internal representation
of dockable . |
String |
getConverterID()
Gets the unique identifier of the
DockFactory that should be used by the CommonDockStationFactory
to actually write or read the layout. |
CDockable |
getDockable() |
FlapDockStation |
getDockStation()
Gets
this as S . |
Rectangle |
getExpansionBounds()
Gets the rectangle to which a flap-window will be attached.
|
String |
getFactoryID()
Gets the unique name of the
DockFactory which can read
and write elements of this type. |
DockStationDropLayer[] |
getLayers()
Gets a description of all the areas of the screen where this
DockStation can handle a drop event.Every time the mouse is moved or released during a drag & drop operation, this method is called for all DockStation s. |
DockActionSource[] |
getSources() |
CStation<CFlapDockStation> |
getStation()
Gets the model of this station.
|
void |
requestDockTitle(DockTitleRequest request)
The default behavior of this method is to do nothing.
|
add, add, addFlapDockStationListener, aside, callDockUiUpdateTheme, canDrag, canReplace, changed, combine, combine, createButtonPane, createFlapWindow, createHoldAction, createRootHandler, drag, drop, drop, drop, fireHoldChanged, getBorderSideSnapSize, getButton, getButtonVersion, getCombiner, getComponent, getCurrentFlapLayoutManager, getDefaultWindowSize, getDirectActionOffers, getDirection, getDisplayerFactory, getDisplayers, getDockable, getDockableCount, getDockableProperty, getFlapLayoutManager, getFlapWindow, getFrontDockable, getHandle, getMinimumSize, getPaint, getPlaceholderMapping, getPlaceholders, getPlaceholders, getPlaceholderStrategy, getTitleVersion, getWindowBorder, getWindowMinSize, getWindowSize, indexOf, init, isAutoDirection, isFlapWindow, isHold, isOverButtons, isSmallButtons, isVisible, move, orientation, prepareDrag, prepareDrop, recreateTitles, remove, remove, removeFlapDockStationListener, replace, replace, selfSetDirection, setAutoDirection, setBorderSideSnapSize, setController, setDefaultWindowSize, setDirection, setDockParent, setFlapLayoutManager, setFrontDockable, setHold, setMinimumSize, setPlaceholders, setPlaceholders, setPlaceholderStrategy, setSmallButtons, setWindowBorder, setWindowMinSize, setWindowSize, updateHold, updateWindowBounds, updateWindowSize
accept, acceptable, acceptable, addDockStationListener, createTitleIcon, delegate, fireDockablesRepositioned, fireDockablesRepositioned, getIndirectActionOffers, getTheme, isChildShowing, isStationShowing, isStationVisible, removeDockStationListener, requestChildDisplayer, requestChildDockTitle, updateTheme
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, setTitleIcon, setTitleIconHandling, setTitleText, setTitleToolTip, shouldFocus, shouldTransfersFocus, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, addDockStationListener, aside, canDrag, canReplace, changed, drag, drop, drop, getController, getDirectActionOffers, getDockable, getDockableCount, getDockableProperty, getFrontDockable, getIndirectActionOffers, getPlaceholderMapping, getPlaceholders, getTheme, isChildShowing, isStationShowing, isStationVisible, isVisible, move, prepareDrag, prepareDrop, removeDockStationListener, replace, replace, requestChildDisplayer, requestChildDockTitle, setController, setFrontDockable, setPlaceholders, updateTheme
getComponentConfiguration, setComponentConfiguration
public CFlapDockStation(Component expansion, CommonStationDelegate<CFlapDockStation> delegate)
expansion
- the Component
which should define the size and location of
this station, can be null
delegate
- offers additional methods required by this stationpublic String getFactoryID()
DockElement
DockFactory
which can read
and write elements of this type.getFactoryID
in interface CommonDockStation<FlapDockStation,CFlapDockStation>
getFactoryID
in interface DockElement
getFactoryID
in class FlapDockStation
CommonDockStation.getConverterID()
public String getConverterID()
CommonDockStation
DockFactory
that should be used by the CommonDockStationFactory
to actually write or read the layout. Usually the result of this method is the same result
as DockElement.getFactoryID()
(note: the factory id from the super class).getConverterID
in interface CommonDockStation<FlapDockStation,CFlapDockStation>
DockFactory
. Can be null
if
CommonDockStation.getFactoryID()
does not return CommonDockStationFactory.FACTORY_ID
public CDockable getDockable()
public DockActionSource[] getSources()
public CStation<CFlapDockStation> getStation()
CommonDockStation
getStation
in interface CommonDockStation<FlapDockStation,CFlapDockStation>
null
public FlapDockStation getDockStation()
CommonDockStation
this
as S
.getDockStation
in interface CommonDockStation<FlapDockStation,CFlapDockStation>
this
public CFlapDockStation asDockStation()
DockElement
asDockStation
in interface CommonElement
asDockStation
in interface CommonDockStation<FlapDockStation,CFlapDockStation>
asDockStation
in interface DockElement
asDockStation
in class AbstractDockableStation
this
or null
. Must not return null
if DockElement.asDockable()
already returns null
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 DockStationDropLayer[] getLayers()
DockStation
DockStation
can handle a drop event.DockStation
s. The returned DockStationDropLayer
s are then filtered and ordered, the resulting
order defines the order in which the method DockStation.prepareDrop(StationDropItem)
is called.getLayers
in interface DockStation
getLayers
in class FlapDockStation
null
, must not contain null
,
must not contain the same entry twice. The array or the DockStationDropLayer
s may be modified,
hence this method should always create new objects.DockStationDropLayerFactory
protected FlapDockStation.DockableHandle createHandle(Dockable dockable)
FlapDockStation
dockable
, the wrapper is used as internal representation
of dockable
.createHandle
in class FlapDockStation
dockable
- the element for which a new wrapper is creatednull
public Rectangle getExpansionBounds()
FlapDockStation
getExpansionBounds
in class FlapDockStation
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 call