Example usage for com.vaadin.ui Upload setWidth

List of usage examples for com.vaadin.ui Upload setWidth

Introduction

In this page you can find the example usage for com.vaadin.ui Upload setWidth.

Prototype

@Override
    public void setWidth(String width) 

Source Link

Usage

From source file:org.lunifera.vaaclipse.ui.preferences.addon.internal.impexp.ImportPreferences.java

License:Open Source License

@Override
public Component getComponent(OptionDialog optionDialog) {

    CssLayout layout = new CssLayout();
    layout.addStyleName("import");

    Upload upload = new Upload("Select file with preferences for upload", this);
    upload.setWidth("100%");
    upload.setButtonCaption("Upload");
    upload.addSucceededListener(this);
    layout.addComponent(upload);/*from  ww w  .  j  av  a  2s . c  o m*/

    layout.addComponent(new Label("Select preferences to import"));
    createPreferencesTable(layout, new ArrayList<PreferencesPage>());

    createStatusLabel(layout, "Choose file with preferences");

    return layout;
}