Example usage for com.google.gwt.gen2.selection.client DropDownListBox DropDownListBox

List of usage examples for com.google.gwt.gen2.selection.client DropDownListBox DropDownListBox

Introduction

In this page you can find the example usage for com.google.gwt.gen2.selection.client DropDownListBox DropDownListBox.

Prototype

public DropDownListBox(String buttonText) 

Source Link

Document

Constructor.

Usage

From source file:com.google.gwt.gen2.demo.dropdownlistbox.client.DropDownListBoxDemo.java

License:Apache License

/**
 * This is the entry point method./*www .  j  a v  a 2s.  c o  m*/
 */
public void onModuleLoad() {
    Window.setTitle("Loading...");

    VerticalPanel p = new VerticalPanel();
    RootPanel.get().add(p);

    p.setStyleName("demo-pane");
    p.setHeight("100%");

    final DropDownListBox<String> customBox = new DropDownListBox<String>("My family");
    fillInBox(customBox);
    p.add(hook);
    hook.setHeight("200px");
    p.add(new Stepper(customBox));
    Window.setTitle("DropDownListBox demo");
}