Class JWTImportHandler
java.lang.Object
com.levigo.jadice.web.demo.enterprise.client.AbstractServerBasedImportHandler
com.levigo.jadice.web.demo.enterprise.client.dnd.JWTImportHandler
- All Implemented Interfaces:
ImportHandler
Handles drops between jwt instances in different browser tabs. That this handler is used the
following conditions need to apply:
- The drag was not invoked from the same thumbnail
- The datastore has a entry for
SelectPageTool.CLIENT_ID_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canImport
(DnDParameter parameter) This method is called right before either an import is dispatched (DropEvent
), or when aDragOverEvent
takes place.void
importDrop
(DnDParameter parameter) The method is responsible for handling the drop and the given data.Methods inherited from class com.levigo.jadice.web.demo.enterprise.client.AbstractServerBasedImportHandler
adjustDropEffect, dropDone, importDrop
-
Constructor Details
-
JWTImportHandler
public JWTImportHandler()
-
-
Method Details
-
canImport
Description copied from interface:ImportHandler
This method is called right before either an import is dispatched (DropEvent
), or when aDragOverEvent
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 interfaceImportHandler
- Overrides:
canImport
in classAbstractServerBasedImportHandler
- Parameters:
parameter
- The parameter containing the event.- Returns:
- Return true if this handler can handle the given event and contained types, false otherwise.
-
importDrop
Description copied from interface:ImportHandler
The method is responsible for handling the drop and the given data. It is called on aDropEvent
.- Parameters:
parameter
- The parameter containing the event.
-