|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.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 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. |
Methods inherited from class bibliothek.gui.dock.station.AbstractDockableStation |
---|
accept, acceptable, acceptable, addDockStationListener, createTitleIcon, 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, canDrag, canReplace, changed, drag, drop, drop, getController, getDirectActionOffers, getDockable, getDockableCount, getDockableProperty, getFrontDockable, getIndirectActionOffers, getPlaceholders, getTheme, isChildShowing, isStationShowing, isStationVisible, isVisible, move, prepareDrag, prepareDrop, removeDockStationListener, replace, replace, requestChildDisplayer, requestChildDockTitle, setController, setFrontDockable, setPlaceholders, updateTheme |
Constructor Detail |
---|
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 stationMethod Detail |
---|
public 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
this
if this
is an instance of
DockStation
. Otherwise null
is returned.
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
this
if this
is an instance of
Dockable
. Otherwise null
is returned.
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.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 created
null
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |