public class DefaultDndAutoSelectStrategyRequest extends Object implements DndAutoSelectStrategyRequest
DndAutoSelectStrategy, it is based on TransferHandler.TransferSupport.| Constructor and Description |
|---|
DefaultDndAutoSelectStrategyRequest(StackDockStation station,
Dockable dockable,
TransferHandler.TransferSupport transferSupport)
Creates a new request object.
|
| Modifier and Type | Method and Description |
|---|---|
DataFlavor[] |
getDataFlavors()
Returns the data flavors for this transfer.
|
Dockable |
getDockable()
Gets the
Dockable over whose tab the mouse currently hovers. |
StackDockStation |
getStation()
Gets the station which detected the event.
|
Transferable |
getTransferable()
Returns the
Transferable associated with this transfer. |
void |
toFront()
Selects the
Dockable beneath the mouse, moves it to the front and tries to focus it. |
public DefaultDndAutoSelectStrategyRequest(StackDockStation station, Dockable dockable, TransferHandler.TransferSupport transferSupport)
station - the source of the eventdockable - the dockable beneath the mousetransferSupport - additional information about the eventpublic StackDockStation getStation()
DndAutoSelectStrategyRequestgetStation in interface DndAutoSelectStrategyRequestnullpublic Dockable getDockable()
DndAutoSelectStrategyRequestDockable over whose tab the mouse currently hovers.getDockable in interface DndAutoSelectStrategyRequestnullpublic DataFlavor[] getDataFlavors()
DndAutoSelectStrategyRequestgetDataFlavors in interface DndAutoSelectStrategyRequestpublic Transferable getTransferable()
DndAutoSelectStrategyRequestTransferable associated with this transfer.getTransferable in interface DndAutoSelectStrategyRequestTransferable associated with this transferpublic void toFront()
DndAutoSelectStrategyRequestDockable beneath the mouse, moves it to the front and tries to focus it.toFront in interface DndAutoSelectStrategyRequestCopyright © 2017 Docking Frames. All rights reserved.