|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.dockable.AbstractDockable
bibliothek.gui.dock.station.AbstractDockableStation
bibliothek.gui.dock.FlapDockStation
bibliothek.gui.dock.common.intern.station.CFlapDockStation
public class CFlapDockStation
An implementation of FlapDockStation that also satisfies the
CommonDockStation interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class bibliothek.gui.dock.FlapDockStation |
|---|
FlapDockStation.Direction, FlapDockStation.DockableHandle, FlapDockStation.FlapDropOperation |
| Field Summary |
|---|
| Fields inherited from class bibliothek.gui.dock.FlapDockStation |
|---|
BUTTON_CONTENT, BUTTON_CONTENT_FILTER, BUTTON_TITLE_ID, DISPLAYER_ID, LAYOUT_MANAGER, MINIMUM_SIZE, WINDOW_FACTORY, WINDOW_TITLE_ID |
| Fields inherited from class bibliothek.gui.dock.station.AbstractDockableStation |
|---|
listeners |
| Constructor Summary | |
|---|---|
CFlapDockStation(Component expansion,
CommonStationDelegate<CFlapDockStation> delegate)
Creates a new station. |
|
| Method Summary | |
|---|---|
CommonDockable |
asDockable()
Returns this if this is an instance of
Dockable. |
CFlapDockStation |
asDockStation()
Returns this if this is an instance of
DockStation. |
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.Everytime the mouse is moved or released during a drag & drop operation, this method is called for all DockStations. |
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. |
| Methods inherited from class bibliothek.gui.dock.station.AbstractDockableStation |
|---|
accept, acceptable, acceptable, addDockStationListener, createTitleIcon, delegate, fireDockablesRepositioned, fireDockablesRepositioned, getIndirectActionOffers, getTheme, isChildShowing, isStationShowing, isStationVisible, removeDockStationListener, requestChildDisplayer, requestChildDockTitle, updateTheme |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bibliothek.gui.DockStation |
|---|
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 |
| Methods inherited from interface bibliothek.gui.dock.component.DockComponentRoot |
|---|
getComponentConfiguration, setComponentConfiguration |
| Constructor Detail |
|---|
public CFlapDockStation(Component expansion,
CommonStationDelegate<CFlapDockStation> delegate)
expansion - the Component which should define the size and location of
this station, can be nulldelegate - offers additional methods required by this station| Method Detail |
|---|
public String getFactoryID()
DockElementDockFactory which can read
and write elements of this type.
getFactoryID in interface CommonDockStation<FlapDockStation,CFlapDockStation>getFactoryID in interface DockElementgetFactoryID in class FlapDockStationCommonDockStation.getConverterID()public String getConverterID()
CommonDockStationDockFactory 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_IDpublic CDockable getDockable()
public DockActionSource[] getSources()
public CStation<CFlapDockStation> getStation()
CommonDockStation
getStation in interface CommonDockStation<FlapDockStation,CFlapDockStation>nullpublic FlapDockStation getDockStation()
CommonDockStationthis as S.
getDockStation in interface CommonDockStation<FlapDockStation,CFlapDockStation>thispublic CFlapDockStation asDockStation()
DockElementthis if this is an instance of
DockStation. Otherwise null is returned.
asDockStation in interface CommonElementasDockStation in interface CommonDockStation<FlapDockStation,CFlapDockStation>asDockStation in interface DockElementasDockStation in class AbstractDockableStationthis or null. Must not return null if DockElement.asDockable()
already returns nullpublic CommonDockable asDockable()
DockElementthis if this is an instance of
Dockable. Otherwise null is returned.
asDockable in interface CommonElementasDockable in interface DockElementasDockable in interface PlaceholderListItem<Dockable>asDockable in class AbstractDockablethis or null. Must not return null if DockElement.asDockable()
already returns null.public DockStationDropLayer[] getLayers()
DockStationDockStation can handle a drop event.DockStations. The returned DockStationDropLayers are then filtered and ordered, the resulting
order defines the order in which the method DockStation.prepareDrop(StationDropItem) is called.
getLayers in interface DockStationgetLayers in class FlapDockStationnull, must not contain null,
must not contain the same entry twice. The array or the DockStationDropLayers may be modified,
hence this method should always create new objects.protected FlapDockStation.DockableHandle createHandle(Dockable dockable)
FlapDockStationdockable, the wrapper is used as internal representation
of dockable.
createHandle in class FlapDockStationdockable - the element for which a new wrapper is created
nullpublic Rectangle getExpansionBounds()
FlapDockStation
getExpansionBounds in class FlapDockStationpublic void requestDockTitle(DockTitleRequest request)
AbstractDockable
requestDockTitle in interface DockablerequestDockTitle in class AbstractDockablerequest - which title is required. If this Dockable does not have
a special rule for the given request it just ignores the call
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||