SignatureFieldv8

Vaadin field to capture signatures.

License

License

Categories

Categories

Vaadin User Interface Web Frameworks
GroupId

GroupId

com.github.elhoce
ArtifactId

ArtifactId

vaadin-signaturefield-v8
Last Version

Last Version

2.0.9
Release Date

Release Date

Type

Type

bundle
Description

Description

SignatureFieldv8
Vaadin field to capture signatures.
Project URL

Project URL

https://github.com/elhoce/Vaadin-SignatureField
Project Organization

Project Organization

Hocine AMROUCHE
Source Code Management

Source Code Management

https://github.com/elhoce/Vaadin-SignatureField.git

Download vaadin-signaturefield-v8

Dependencies

compile (2)

Group / Artifact Type Version
com.vaadin : vaadin-compatibility-server jar 8.8.6
eu.maxschuster : dataurl jar 1.1.0

provided (1)

Group / Artifact Type Version
com.vaadin : vaadin-compatibility-client jar 8.8.6

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
javax.servlet : javax.servlet-api jar 3.0.1

Project Modules

There are no modules declared in this project.

SignatureField

Forked from Max Schuster component Thanks for Slawek Mikula contribution

A Vaadin Field<String> to capture signatures. Its value is the data url from the html canvas as simple String. signature_pad by Szymon Nowak is used to capture the signature at the client-side.

Requirements

  • Vaadin 8.8+

Usage

Simple

import com.adms.core.signaturefield.SignatureField;
import com.vaadin.ui.Button;
import com.vaadin.ui.VerticalLayout;

public class TestSignatureField extends VerticalLayout {
    private final SignatureField sign;
    private String currentSign = null;

    public TestSignatureField() {
        sign = new SignatureField();
        sign.setWidth(300, Unit.PIXELS);
        sign.setHeight(200, Unit.PIXELS);
        sign.setCaption("New signature");
        sign.addValueChangeListener(event -> currentSign = event.getValue());
        Button clear = new Button("refresh");
        clear.addClickListener(onClick -> sign.clear());
        addComponents(sign, clear);
    }
}

Licence

  • SignatureField Add-on: Apache License Version 2.0
  • signature_pad: MIT License

Versions

Version
2.0.9