Package com._1c.g5.v8.dt.moxel
Class AbstarctMoxelTransfer
- java.lang.Object
-
- org.eclipse.swt.dnd.Transfer
-
- org.eclipse.swt.dnd.ByteArrayTransfer
-
- com._1c.g5.v8.dt.moxel.AbstarctMoxelTransfer
-
- Direct Known Subclasses:
MoxelTransferCells
,MoxelTransferDrawing
public abstract class AbstarctMoxelTransfer extends org.eclipse.swt.dnd.ByteArrayTransfer
The classMoxelTransfer
provides a basic platform-specific mechanism for converting both v8 spreadsheet document and v8 spreadsheet drawing represented as a javaSpreadsheetDocument
to a platform-specific representation of the data and vice versa.- See Also:
Transfer
-
-
Constructor Summary
Constructors Constructor Description AbstarctMoxelTransfer(org.eclipse.emf.ecore.EObject context)
Creates new instance ofAbstarctMoxelTransfer
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract int[]
getTypeIds()
Get array of available type idsprotected abstract String[]
getTypeNames()
Get array of available type namesvoid
javaToNative(Object object, org.eclipse.swt.dnd.TransferData transferData)
This implementation ofjavaToNative
converts Moxel Spreadsheet represented by a javaSpreadsheetDocument
to a platform specific representation.Object
nativeToJava(org.eclipse.swt.dnd.TransferData transferData)
This implementation ofnativeToJava
converts a platform specific representation of moxel document to a javaSpreadsheetDocument
.protected boolean
validate(Object object)
Validate incoming object
-
-
-
Constructor Detail
-
AbstarctMoxelTransfer
public AbstarctMoxelTransfer(org.eclipse.emf.ecore.EObject context)
Creates new instance ofAbstarctMoxelTransfer
- Parameters:
context
-
-
-
Method Detail
-
javaToNative
public void javaToNative(Object object, org.eclipse.swt.dnd.TransferData transferData)
This implementation ofjavaToNative
converts Moxel Spreadsheet represented by a javaSpreadsheetDocument
to a platform specific representation.- Overrides:
javaToNative
in classorg.eclipse.swt.dnd.ByteArrayTransfer
- Parameters:
object
- a javaSpreadsheetDocument
containing moxel documenttransferData
- an emptyTransferData
object that will be filled in on return with the platform specific format of the data- See Also:
Transfer.nativeToJava(org.eclipse.swt.dnd.TransferData)
-
nativeToJava
public Object nativeToJava(org.eclipse.swt.dnd.TransferData transferData)
This implementation ofnativeToJava
converts a platform specific representation of moxel document to a javaSpreadsheetDocument
.- Overrides:
nativeToJava
in classorg.eclipse.swt.dnd.ByteArrayTransfer
- Parameters:
transferData
- the platform specific representation of the data to be converted- Returns:
- a java
SpreadsheetDocument
containing moxel document if the conversion was successful; otherwise null - See Also:
Transfer.javaToNative(java.lang.Object, org.eclipse.swt.dnd.TransferData)
-
validate
protected boolean validate(Object object)
Validate incoming object- Overrides:
validate
in classorg.eclipse.swt.dnd.Transfer
- Parameters:
object
- - object to validate- Returns:
- result of validation
-
getTypeNames
protected abstract String[] getTypeNames()
Get array of available type names- Specified by:
getTypeNames
in classorg.eclipse.swt.dnd.Transfer
- Returns:
- array of available type names
-
getTypeIds
protected abstract int[] getTypeIds()
Get array of available type ids- Specified by:
getTypeIds
in classorg.eclipse.swt.dnd.Transfer
- Returns:
- array of available type ids
-
-