Interface CommonDockStation<S extends DockStation,C extends CommonDockStation<S,C>>
- Type Parameters:
S- the kind of station this wrapsC- the kind ofCommonDockStationthis is
- All Superinterfaces:
CommonElement,DockComponentRoot,DockElement,DockStation
- All Known Implementing Classes:
CFlapDockStation,CScreenDockStation,CSplitDockStation
public interface CommonDockStation<S extends DockStation,C extends CommonDockStation<S,C>>
extends CommonElement, DockStation
An interface that can be implemented by classes that extend a
DockStation and
that represent a CStation.- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptionReturnsthisas station of typeC.Gets the unique identifier of theDockFactorythat should be used by theCommonDockStationFactoryto actually write or read the layout.GetsthisasS.Gets the unique identifier of theDockFactorythat stores and loads the layout of this station.Gets the model of this station.Methods inherited from interface bibliothek.gui.dock.common.intern.CommonElement
asDockableMethods inherited from interface bibliothek.gui.dock.component.DockComponentRoot
getComponentConfiguration, setComponentConfigurationMethods inherited from interface bibliothek.gui.DockStation
accept, addDockStationListener, aside, canDrag, canReplace, changed, drag, drop, drop, getController, getDirectActionOffers, getDockable, getDockableCount, getDockableProperty, getFrontDockable, getIndirectActionOffers, getLayers, getPlaceholderMapping, getPlaceholders, getTheme, isChildShowing, isStationShowing, isStationVisible, isVisible, move, prepareDrag, prepareDrop, removeDockStationListener, replace, replace, requestChildDisplayer, requestChildDockTitle, setController, setFrontDockable, setPlaceholders, updateTheme
-
Method Details
-
getDockStation
S getDockStation()GetsthisasS.- Returns:
this
-
asDockStation
C asDockStation()Returnsthisas station of typeC. This method is not allowed to returnnull.- Specified by:
asDockStationin interfaceCommonElement- Specified by:
asDockStationin interfaceDockElement- Returns:
this
-
getStation
Gets the model of this station.- Returns:
- the model, may not be
null
-
getFactoryID
String getFactoryID()Gets the unique identifier of theDockFactorythat stores and loads the layout of this station. ForCommonDockStations the result should always beCommonDockStationFactory.FACTORY_ID- Specified by:
getFactoryIDin interfaceDockElement- See Also:
-
getConverterID
String getConverterID()Gets the unique identifier of theDockFactorythat should be used by theCommonDockStationFactoryto actually write or read the layout. Usually the result of this method is the same result asDockElement.getFactoryID()(note: the factory id from the super class).- Returns:
- the unique identifier of a
DockFactory. Can benullifgetFactoryID()does not returnCommonDockStationFactory.FACTORY_ID
-