Package net.plan99.payfile

Examples of net.plan99.payfile.Payfile$DataOrBuilder


        return CompletableFuture.supplyAsync(() ->
            evalUnchecked(() -> {
                final InetSocketAddress address = new InetSocketAddress(server.getHostText(), server.getPort());
                final Socket socket = new Socket();
                socket.connect(address, timeoutMsec);
                return new PayFileClient(socket, bitcoin.wallet());
            })
        );
    }
View Full Code Here


    private Wallet.SendResult sendResult;

    // Called by FXMLLoader
    public void initialize() {
        new BitcoinAddressValidator(Main.params, address, sendBtn);
    }
View Full Code Here

        this.params = params;
        this.nodes = nodes;

        // Handle the red highlighting, but don't highlight in red just when the field is empty because that makes
        // the example/prompt address hard to read.
        new TextFieldValidator(field, text -> text.isEmpty() || testAddr(text));
        // However we do want the buttons to be disabled when empty so we apply a different test there.
        field.textProperty().addListener((observableValue, prev, current) -> {
            toggleButtons(current);
        });
        toggleButtons(field.getText());
View Full Code Here

        this.params = params;
        this.nodes = nodes;

        // Handle the red highlighting, but don't highlight in red just when the field is empty because that makes
        // the example/prompt address hard to read.
        new TextFieldValidator(field, text -> text.isEmpty() || testAddr(text));
        // However we do want the buttons to be disabled when empty so we apply a different test there.
        field.textProperty().addListener((observableValue, prev, current) -> {
            toggleButtons(current);
        });
        toggleButtons(field.getText());
View Full Code Here

    public ProgressOutputStream(OutputStream sink, long bytesSoFar, long expectedSize) {
        super(sink);
        this.bytesSoFar = new AtomicLong(bytesSoFar);
        this.progress = new SimpleDoubleProperty();
        this.throttler = new ThrottledRunLater(() -> progress.set(this.bytesSoFar.get() / (double) expectedSize));
    }
View Full Code Here

TOP

Related Classes of net.plan99.payfile.Payfile$DataOrBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.