public class DefaultDndAutoSelectStrategyRequest extends java.lang.Object implements DndAutoSelectStrategyRequest
DndAutoSelectStrategy
, it is based on TransferHandler.TransferSupport
.Constructor and Description |
---|
DefaultDndAutoSelectStrategyRequest(StackDockStation station,
Dockable dockable,
javax.swing.TransferHandler.TransferSupport transferSupport)
Creates a new request object.
|
Modifier and Type | Method and Description |
---|---|
java.awt.datatransfer.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.
|
java.awt.datatransfer.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, javax.swing.TransferHandler.TransferSupport transferSupport)
station
- the source of the eventdockable
- the dockable beneath the mousetransferSupport
- additional information about the eventpublic StackDockStation getStation()
DndAutoSelectStrategyRequest
getStation
in interface DndAutoSelectStrategyRequest
null
public Dockable getDockable()
DndAutoSelectStrategyRequest
Dockable
over whose tab the mouse currently hovers.getDockable
in interface DndAutoSelectStrategyRequest
null
public java.awt.datatransfer.DataFlavor[] getDataFlavors()
DndAutoSelectStrategyRequest
getDataFlavors
in interface DndAutoSelectStrategyRequest
public java.awt.datatransfer.Transferable getTransferable()
DndAutoSelectStrategyRequest
Transferable
associated with this transfer.getTransferable
in interface DndAutoSelectStrategyRequest
Transferable
associated with this transferpublic void toFront()
DndAutoSelectStrategyRequest
Dockable
beneath the mouse, moves it to the front and tries to focus it.toFront
in interface DndAutoSelectStrategyRequest