bibliothek.gui.dock.station.stack
Class DnDAutoSelectSupport

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by bibliothek.gui.dock.station.stack.DnDAutoSelectSupport
All Implemented Interfaces:
StackDnDAutoSelectSupport, Serializable

@FrameworkOnly
public class DnDAutoSelectSupport
extends TransferHandler
implements StackDnDAutoSelectSupport

TransferHandler added to a StackDockComponent, will be informed if the mouse hovers over a tab, and forwards that information to the client.
This class extends TransferHandler, but it will always return false when calling TransferHandler#canImport(TransferSupport)).

Author:
Benjamin Sigg
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
 
Field Summary
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
 
Constructor Summary
DnDAutoSelectSupport()
           
 
Method Summary
 boolean canImport(TransferHandler.TransferSupport support)
           
 void install(StackDockStation station, StackDockComponent component)
          Called if a StackDockComponent has been bound to a DockController.
 void uninstall(StackDockComponent component)
          Called if a StackDockComponent has been removed from a DockController.
 
Methods inherited from class javax.swing.TransferHandler
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getSourceActions, getVisualRepresentation, importData, importData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DnDAutoSelectSupport

public DnDAutoSelectSupport()
Method Detail

install

public void install(StackDockStation station,
                    StackDockComponent component)
Description copied from interface: StackDnDAutoSelectSupport
Called if a StackDockComponent has been bound to a DockController.

Specified by:
install in interface StackDnDAutoSelectSupport
Parameters:
station - the station on which component is shown
component - the component that was bound

uninstall

public void uninstall(StackDockComponent component)
Description copied from interface: StackDnDAutoSelectSupport
Called if a StackDockComponent has been removed from a DockController.

Specified by:
uninstall in interface StackDnDAutoSelectSupport
Parameters:
component - the component that was removed

canImport

public boolean canImport(TransferHandler.TransferSupport support)
Overrides:
canImport in class TransferHandler