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

LongTransferValue

public class LongTransferValue extends Object implements TransferValue
Created by IntelliJ IDEA. User: sannies Date: 11.11.2008 Time: 23:12:43 To change this template use File | Settings | File Templates.

Fields Summary
JFormattedTextField
source
Method
writeMethod
com.coremedia.iso.boxes.Box
box
Constructors Summary
public LongTransferValue(JFormattedTextField source, com.coremedia.iso.boxes.Box box, Method writeMethod)

        this.source = source;
        this.writeMethod = writeMethod;
        this.box = box;
    
Methods Summary
public voidgo()

        try {
            writeMethod.invoke(box, ((Number) source.getFormatter().stringToValue(source.getText())).longValue());
        } catch (ParseException e) {
            throw new RuntimeException(e);
        } catch (InvocationTargetException e) {
            throw new RuntimeException(e);
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        }