Class DOCPVExportHandler
java.lang.Object
com.levigo.jadice.web.demo.enterprise.client.dnd.DOCPVExportHandler
- All Implemented Interfaces:
ExportHandler
This exportHandler generates data that can be used with a document platform instance. The data is
generated on the server and provided by the
DnDServlet
. The url to access the data is put
into the datastore of the event.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canExport
(DnDParameter parameter) This method is called when aDragStartEvent
is fired to decide which handler can export this drop.void
export
(DnDParameter parameter) This method is responsible for generating the data that should be transported with the event and putting them into it.void
exportDone
(DnDParameter parameter) This method is called when all exportHandler finished their exports.
-
Constructor Details
-
DOCPVExportHandler
public DOCPVExportHandler()
-
-
Method Details
-
canExport
Description copied from interface:ExportHandler
This method is called when aDragStartEvent
is fired to decide which handler can export this drop.- Specified by:
canExport
in interfaceExportHandler
- Parameters:
parameter
- The parameter containing the event.- Returns:
- True if the handler can export the drop, false otherwise.
-
export
Description copied from interface:ExportHandler
This method is responsible for generating the data that should be transported with the event and putting them into it. The data has to be set into the datastore of the event straight forward in this call. While this event is active is the only time we have write access to the datastore. If generating the data takes to long it may be better to store some kind of reference to the data in the event. That is also the reason why all registered export handler have to generate and write their data into the datastore at the beginning of the dragEvent.- Specified by:
export
in interfaceExportHandler
- Parameters:
parameter
- The parameter containing the event.
-
exportDone
Description copied from interface:ExportHandler
This method is called when all exportHandler finished their exports.- Specified by:
exportDone
in interfaceExportHandler
- Parameters:
parameter
- The parameter containing the event.
-