Interface CommonDockable
- All Superinterfaces:
CommonElement,Dockable,DockComponentRoot,DockElement,DockElementRepresentative,PlaceholderListItem<Dockable>
- All Known Implementing Classes:
CSplitDockStation,DefaultCommonDockable
- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptionGets the model of this dockable.Gets the identifier of theDockFactorywhich can store and load this dockable.Gets a set ofDockActionSources which are to be displayed on thisCommonDockable.CStation<?>Gets the model of this dockable as station.Methods inherited from interface bibliothek.gui.dock.common.intern.CommonElement
asDockable, asDockStationMethods inherited from interface bibliothek.gui.Dockable
accept, accept, addDockableListener, addDockableStateListener, addDockHierarchyListener, addMouseInputListener, bind, configureDisplayerHints, getComponent, getController, getDockParent, getGlobalActionOffers, getLocalActionOffers, getTitleIcon, getTitleText, getTitleToolTip, isDockableShowing, isDockableVisible, listBoundTitles, removeDockableListener, removeDockableStateListener, removeDockHierarchyListener, removeMouseInputListener, requestDisplayer, requestDockTitle, setController, setDockParent, unbindMethods inherited from interface bibliothek.gui.dock.component.DockComponentRoot
getComponentConfiguration, setComponentConfigurationMethods inherited from interface bibliothek.gui.dock.DockElementRepresentative
getElement, getPopupLocation, isUsedAsTitle, shouldFocus, shouldTransfersFocusMethods inherited from interface bibliothek.gui.dock.station.support.PlaceholderListItem
asDockable
-
Method Details
-
getDockable
CDockable getDockable()Gets the model of this dockable.- Returns:
- the model
-
getStation
CStation<?> getStation()Gets the model of this dockable as station.- Returns:
- the model, may be
null
-
getSources
DockActionSource[] getSources()Gets a set ofDockActionSources which are to be displayed on thisCommonDockable. Note that every call to this method should return the same array of sources. Callers should not modify the result.- Returns:
- the action sources, can be an empty array
-
getFactoryID
String getFactoryID()Gets the identifier of theDockFactorywhich can store and load this dockable.CommonDockables which show aSingleCDockableshould returnCommonSingleDockableFactory.BACKUP_FACTORY_IDand the others should return the id ofMultipleCDockable.getFactory().
If the subclass implementsCommonDockStation, thenCommonDockStationFactory.FACTORY_IDshould be returned.- Specified by:
getFactoryIDin interfaceDockElement- Returns:
- the name of the factory
-