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

ShortTransferValue

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

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