Example usage for com.google.gwt.dom.client InputElement setAccept

List of usage examples for com.google.gwt.dom.client InputElement setAccept

Introduction

In this page you can find the example usage for com.google.gwt.dom.client InputElement setAccept.

Prototype

public void setAccept(String accept) 

Source Link

Document

A comma-separated list of content types that a server processing this form will handle correctly.

Usage

From source file:org.kie.workbench.common.widgets.client.widget.AttachmentFileWidget.java

License:Apache License

private void setAccept(final String[] validFileExtensions) {
    this.validFileExtensions = validFileExtensions;
    final InputElement element = up.getElement().cast();
    element.setAccept(makeAcceptString(validFileExtensions));
}