All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jpedal.objects.acroforms.javafx.JavaFXDocumentListener Maven / Gradle / Ivy

/*
 * ===========================================
 * Java Pdf Extraction Decoding Access Library
 * ===========================================
 *
 * Project Info:  http://www.idrsolutions.com
 * Help section for developers at http://www.idrsolutions.com/support/
 *
 * (C) Copyright 1997-2017 IDRsolutions and Contributors.
 *
 * This file is part of JPedal/JPDF2HTML5
 *
 @LICENSE@
 *
 * ---------------
 * JavaFXDocumentListener.java
 * ---------------
 */


package org.jpedal.objects.acroforms.javafx;

import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.TextField;
import org.jpedal.objects.raw.FormObject;

public class JavaFXDocumentListener implements EventHandler {
    final TextField comp;
    final FormObject form;

    JavaFXDocumentListener(final TextField textcomp, final FormObject form) {
        this.comp = textcomp;
        this.form = form;
    }

    @Override
    public void handle(final ActionEvent t) {
        form.updateValue(comp.getText(), false, false);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy