Class DOCPVImportHandler

java.lang.Object
com.levigo.jadice.web.demo.enterprise.client.AbstractServerBasedImportHandler
com.levigo.jadice.web.demo.enterprise.client.dnd.DOCPVImportHandler
All Implemented Interfaces:
ImportHandler

public class DOCPVImportHandler extends AbstractServerBasedImportHandler
Handles drops from the document platform. That this handler is used the following conditions need to apply:
  • Constructor Details

    • DOCPVImportHandler

      public DOCPVImportHandler()
  • Method Details

    • canImport

      public boolean canImport(DnDParameter parameter)
      Description copied from interface: ImportHandler
      This method is called right before either an import is dispatched (DropEvent), or when a DragOverEvent takes place. Here can the in the parameters contained values be used to check if this handler can successfully handle a drop. From the registered ImportHandler only one should return true.
      Specified by:
      canImport in interface ImportHandler
      Overrides:
      canImport in class AbstractServerBasedImportHandler
      Parameters:
      parameter - The parameter containing the event.
      Returns:
      Return true if this handler can handle the given event and contained types, false otherwise.
    • importDrop

      public void importDrop(DnDParameter parameter)
      Description copied from interface: ImportHandler
      The method is responsible for handling the drop and the given data. It is called on a DropEvent.
      Parameters:
      parameter - The parameter containing the event.