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

DoubleTransferValue

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

Fields Summary
JFormattedTextField
source
Method
writeMethod
com.coremedia.iso.boxes.Box
box
Constructors Summary
public DoubleTransferValue(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())).doubleValue());
        } catch (ParseException e) {
            throw new RuntimeException(e);
        } catch (InvocationTargetException e) {
            throw new RuntimeException(e);
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        }