@Override protected boolean validate(Object object) { return checkFile(object); } }
@Override protected boolean validate(Object object) { return checkFile(object); } }
@Override protected boolean validate(Object object) { return checkFile(object); } }
@Override protected boolean validate(Object object) { return checkFile(object); } }
protected boolean validate( Object object ) { return checkFile( object ); } }
protected boolean validate(Object object) { return checkFile(object); } }
/** * This implementation of <code>javaToNative</code> converts a list of file * names represented by a java <code>String[]</code> to a platform specific * representation. Each <code>String</code> in the array contains the absolute * path for a single file or directory. * * @param object a java <code>String[]</code> containing the file names to be * converted * @param transferData an empty <code>TransferData</code> object that will be * filled in on return with the platform specific format of the data * @see Transfer#nativeToJava */ public void javaToNative( Object object, TransferData transferData ) { if( !checkFile( object ) || !isSupportedType( transferData ) ) { DND.error( DND.ERROR_INVALID_DATA ); } String[] fileNames = ( String[] )object; transferData.data = fileNames; transferData.result = 1; }
if (!checkFile(object) || !isSupportedType(transferData)) { DND.error(DND.ERROR_INVALID_DATA);
/** * This implementation of <code>javaToNative</code> converts a list of file names * represented by a java <code>String[]</code> to a platform specific representation. * Each <code>String</code> in the array contains the absolute path for a single * file or directory. * * @param object a java <code>String[]</code> containing the file names to be converted * @param transferData an empty <code>TransferData</code> object that will * be filled in on return with the platform specific format of the data * * @see Transfer#nativeToJava */ public void javaToNative(Object object, TransferData transferData) { if (!checkFile(object) || !isSupportedType(transferData)) { DND.error(DND.ERROR_INVALID_DATA); } String[] files = (String[])object; int length = files.length; NSMutableArray array = NSMutableArray.arrayWithCapacity(length); for (int i = 0; i < length; i++) { String fileName = files[i]; NSString string = NSString.stringWith(fileName); array.addObject(string); } transferData.data = array; } /**
public void javaToNative(Object object, TransferData transferData) { transferData.result = 0; if (!checkFile(object) || !isSupportedType(transferData)) { DND.error(DND.ERROR_INVALID_DATA);
public void javaToNative(Object object, TransferData transferData) { transferData.result = 0; if (!checkFile(object) || !isSupportedType(transferData)) { DND.error(DND.ERROR_INVALID_DATA);
public void javaToNative(Object object, TransferData transferData) { transferData.result = 0; if (!checkFile(object) || !isSupportedType(transferData)) { DND.error(DND.ERROR_INVALID_DATA);