|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.control.relocator.MergeOperation
public class MergeOperation
Uses a Merger to merge two DockStations.
| Constructor Summary | |
|---|---|
MergeOperation(DockController controller,
Merger merger,
DockStation station,
StationDropOperation operation,
StationDropItem item)
Creates a new operation. |
|
| Method Summary | |
|---|---|
void |
destroy(RelocateOperation next)
Informs this operation that it will never be used (again) and that it should release any resources it has acquired. |
boolean |
execute(Dockable selection,
VetoableDockRelocatorListener listener)
Executes this operation. |
Dockable[] |
getImplicit(Dockable selection)
Gets the Dockables whose parent will change due to this operation. |
StationDropOperation |
getOperation()
Gets the operation that would be executed by the dock station. |
DockStation |
getStation()
Gets the station which is the target of this operation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MergeOperation(DockController controller,
Merger merger,
DockStation station,
StationDropOperation operation,
StationDropItem item)
controller - the controller in whose realm this operation worksmerger - the merger that will be used to merge the stationsstation - the target of this operationoperation - the operation that would be executed by the stationitem - information about the source of the operation| Method Detail |
|---|
public DockStation getStation()
RelocateOperation
getStation in interface RelocateOperationnullpublic StationDropOperation getOperation()
RelocateOperationdock station.
getOperation in interface RelocateOperationnullpublic void destroy(RelocateOperation next)
RelocateOperation
destroy in interface RelocateOperationnext - the operation that will be executed next, can be nullpublic Dockable[] getImplicit(Dockable selection)
RelocateOperationDockables whose parent will change due to this operation.
getImplicit in interface RelocateOperationselection - the element that is moved around
null but can be empty
public boolean execute(Dockable selection,
VetoableDockRelocatorListener listener)
RelocateOperationdragging and
dragged of listener, all other
methods will throw an IllegalStateException.
execute in interface RelocateOperationselection - the element that is moved aroundlistener - a listener to be informed about events happening because of this operation
true if the operation was a success, false if the operation was
canceled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||