public class SplitDropOperation extends Object implements StationDropOperation
StationDropOperation.| Constructor and Description |
|---|
SplitDropOperation(SplitDockAccess access,
PutInfo putInfo,
StationDropItem item,
boolean move)
Creates a new operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(StationDropOperation next)
Informs this operation that it is no longer used and that it should release any resources
it has acquired.
|
void |
draw()
Informs this operation that it is the current candidate, and that it should paint markings onto
the screen.
|
void |
execute()
Executes this operation.
|
CombinerTarget |
getCombination()
|
DisplayerCombinerTarget |
getDisplayerCombination()
Some
DockStations may use the combining feature of DockableDisplayers
(DockableDisplayer.prepareCombination(bibliothek.gui.dock.station.support.CombinerSource, bibliothek.gui.dock.station.support.Enforcement))
to combine some Dockables. |
Dockable |
getItem()
Gets the item that will be dropped onto
the target. |
DockStation |
getTarget()
Gets the target of the operation, this is the
DockStation that created this object. |
boolean |
isMove()
Tells whether this operation is a move operation.
|
public SplitDropOperation(SplitDockAccess access, PutInfo putInfo, StationDropItem item, boolean move)
access - access to the internal functions of a SplitDockStationputInfo - the desired location of the dropped Dockable.item - detailed information about the ongoing drag and drop operationmove - whether this operation is a move operation or notpublic boolean isMove()
StationDropOperationDockables parent does not change.isMove in interface StationDropOperationtrue if the Dockables parent remains the samepublic void draw()
StationDropOperationdraw in interface StationDropOperationpublic void destroy(StationDropOperation next)
StationDropOperationdestroy in interface StationDropOperationnext - the operation that replaces this operation, can be nullpublic DockStation getTarget()
StationDropOperationDockStation that created this object.getTarget in interface StationDropOperationnullpublic Dockable getItem()
StationDropOperationthe target.getItem in interface StationDropOperationnullpublic CombinerTarget getCombination()
StationDropOperationDockStations will use a Combiner to merge two Dockables into one. This method
returns the information that was provided by the Combiner.getCombination in interface StationDropOperationnull, null is always a valid resultpublic DisplayerCombinerTarget getDisplayerCombination()
StationDropOperationDockStations may use the combining feature of DockableDisplayers
(DockableDisplayer.prepareCombination(bibliothek.gui.dock.station.support.CombinerSource, bibliothek.gui.dock.station.support.Enforcement))
to combine some Dockables. This method returns the information that was provided by the displayer.StationDropOperation.getCombination() does not return null, then the result of
CombinerTarget.getDisplayerCombination() and this method should be the same.getDisplayerCombination in interface StationDropOperationnull, null is always a valid resultpublic void execute()
StationDropOperationexecute in interface StationDropOperationCopyright © 2017 Docking Frames. All rights reserved.