FileDocCategorySizeDatePackage
TransferHelperFactory.javaAPI Docmp4parser 1.0-RC-171477Wed Dec 19 20:10:21 GMT 2012com.coremedia.iso.gui.transferhelper

TransferHelperFactory

public final class TransferHelperFactory extends Object
Created by IntelliJ IDEA. User: sannies Date: 11.11.2008 Time: 23:13:45 To change this template use File | Settings | File Templates.

Fields Summary
Constructors Summary
Methods Summary
public static TransferValuegetNumberTransferHelper(java.lang.Class aClass, com.coremedia.iso.boxes.Box box, java.lang.reflect.Method writeMethod, javax.swing.JFormattedTextField jftf)

        if (Byte.class == aClass || byte.class == aClass) {
            return new ByteTransferValue(jftf, box, writeMethod);
        } else if (Double.class == aClass || double.class == aClass) {
            return new DoubleTransferValue(jftf, box, writeMethod);
        } else if (Float.class == aClass || float.class == aClass) {
            return new FloatTransferValue(jftf, box, writeMethod);
        } else if (Integer.class == aClass || int.class == aClass) {
            return new IntegerTransferValue(jftf, box, writeMethod);
        } else if (Short.class == aClass || short.class == aClass) {
            return new ShortTransferValue(jftf, box, writeMethod);
        } else if (Long.class == aClass || long.class == aClass) {
            return new LongTransferValue(jftf, box, writeMethod);
        } else {
            throw new RuntimeException("unknown number class " + aClass);
        }