package org.kaffe.awt;

import java.awt.datatransfer.DataFlavor;

public class ObjectSelection
  extends ExportTransferable
{
	static DataFlavor[] objectFlavors;
	static FlavorConverter[] objectConverters;
	public static DataFlavor objectFlavor;

static {
	try {
		objectFlavor = new DataFlavor( Class.forName( "java.lang.Object"), 
		                                   "serialized Java object");
	}
	catch ( ClassNotFoundException x ) {}
	
	objectFlavors = new DataFlavor[1];
	objectFlavors[0] = objectFlavor;
	
	objectConverters = new FlavorConverter[1];
	objectConverters[0] = new SerializerConverter();
}

public ObjectSelection ( Object selData ) {
	super( selData, objectFlavors, objectConverters);
}
}
