com.levigo.jadice.swing.dnd
Class ImportParameters

java.lang.Object
  extended by com.levigo.jadice.swing.dnd.ImportParameters

public class ImportParameters
extends Object

A parameter object used to convey relevant context information to ImportHandlers.


Constructor Summary
ImportParameters(ViewComponent viewComponent, Document targetDocument, int targetIndex)
          Deprecated. 
ImportParameters(ViewComponent viewComponent, Document targetDocument, int targetIndex, Transferable transferable)
           
 
Method Summary
 Document getTargetDocument()
          Return the Document into which content is supposed to be imported.
 int getTargetIndex()
          Return the target page index at which imported content should be placed.
 Transferable getTransferable()
          The Transferable associated with this import.
 ViewComponent getViewComponent()
          The ViewComponent handling the import.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportParameters

@Deprecated
public ImportParameters(ViewComponent viewComponent,
                                   Document targetDocument,
                                   int targetIndex)
Deprecated. 


ImportParameters

public ImportParameters(ViewComponent viewComponent,
                        Document targetDocument,
                        int targetIndex,
                        Transferable transferable)
Method Detail

getViewComponent

public ViewComponent getViewComponent()
The ViewComponent handling the import. As an import may occur without ViewComponent involvement, this method may return null.


getTargetDocument

public Document getTargetDocument()
Return the Document into which content is supposed to be imported.


getTargetIndex

public int getTargetIndex()
Return the target page index at which imported content should be placed.


getTransferable

public Transferable getTransferable()
The Transferable associated with this import. Due to quirks in the D&D API, the Transferable may not be available and therefore null.

Returns:
the Transferable or null


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.